Get all scoreboards

Discussion in 'Spigot Plugin Development' started by Oberdiah, May 5, 2015.

  1. Hello, I have created a bunch of scoreboards, one per player, but I have no idea how to get them back to edit them once I have reloaded the server. They still exist on players' SIDEBAR etc, but there is no way that I can see of getting them back.

    I have tried saving them to the config before the reload with config.set("scoreboards", scoreboards);, but it does not save them in a way I can receive them again.

    How can I get a list of all scoreboards currently saved into the scoreboard manager, and/or how can I save scoreboards to the config file?
  2. Bump? Does anyone have at least an opinion on this?
  3. Save the scoreboards in a file?
    Or remove the scoreboard on leave event.
  4. I don't think you quite understand what I mean. I tried to save them, with config.set(), but they couldn't be recalled, not enough data was saved.

    I have no idea what you mean about removing the scoreboard on leave event
  5. On the leave event remove the scoreboard from the user.
    So when they join you can remake a scoreboard so you can modify it.
  6. Oh ... Ok.

    I store a lot of data in the scoreboards though, so I'd only do that as a last resort, as I'd have to read and write all of the data on reload.

    Is there really no way of doing it?
  7. Im pretty sure plugins like FeatherBoard, ScoreboardStats all use the remove on leave and reimplement.