public interface ScoreboardIoService
Implemented by classes to provide a way of saving and loading scoreboards to external storage
| Modifier and Type | Method and Description |
|---|---|
GlowScoreboard |
readMainScoreboard()
Loads the main scoreboard.
|
void |
save() |
void |
unload()
Unload the service, performing any cleanup necessary.
|
void |
writeMainScoreboard(GlowScoreboard scoreboard)
Writes the main scoreboard.
|
GlowScoreboard readMainScoreboard() throws IOException
GlowScoreboard The GlowScoreboard read from storageIOException - if an I/O error occurs.void writeMainScoreboard(GlowScoreboard scoreboard) throws IOException
scoreboard - The GlowScoreboard to write.IOException - if an I/O error occurs.void unload()
throws IOException
IOException - if an I/O error occurs.void save() throws IOException
IOExceptionCopyright © 2021. All rights reserved.