Include countdowns in scoreboard, chat, XP-Bar and titles
Single players can hide their scoreboard
Support for the PlaceholderAPI
Setting text in the tab bar
Remove player names from the tab bar
If you have ideas for more features please open an issue here:
If this is not possible just write it into the comments below or send me a PM here: Profile - YottaFLOPS - Sponge Forums
Setup
Place the plugin file in the mods folder of you Sponge server
Start the server
Edit the config file (config/de_yottaflops_easyscoreboard.conf)
Reload the scoreboard (/sponge plugins reload)
Optional: Setup for the PlaceholderAPI
The PlaceholderAPI by rojo8399 adds many built-in placeholders and enables other plugins to add some as well. To use these placeholders you have to follow the next few steps.
Move the plugin into the mods folder of your sponge server
Add placeholders to the scoreboard by editing the config file. Here is a list of built-in placeholders. (You can also
add plugins that add even more placeholders to the API.)
But in case you found one or you have a new stunning feature that must be included, please open an issue here, just write it into the comments below or send me a PM here
Good plugins. I recommend other it show money of player from EconomyLite or Total economy plugins. show all number online in server. update status of money or etc every one second.
Interesting concept! A couple of code suggestions:
Instead of using System.out.println(), it is encouraged to @Inject an org.slf4j.Logger, and to info() or error() it, in order to a: output to everything reading the console instead of only the main command prompt, and b: to automatically add appropriate prefixes and locations.
Make sure to throw a CommandException in your execute() if anything goes wrong (e.g. if they make a line more than 38 characters, if they use more than 15 lines, etc.). This causes the supplied Text argument to be shown to the player, execution to stop, and no successes to be written.
If handleConfig() goes directly into a switch() statement, why not just have separate methods? And if it has to be one method, why use a String[] instead of a String? And if it must be an array, why not use String… instead of String[] so that you don’t have to do new String[]{} each time?
Lastly, a bigger one: I’m not sure how getCurrentPath() works, but don’t use it. Different implementations have different locations and etc. It is highly recommended to @Inject a @DefaultConfig File. If you insist on having a different config name, @Inject a @ConfigDir File instead.
The first step to a proper scoreboard system. all that is missing is proper placeholders! Keep up the nice work. hope to see good things from this plugin.
How would this countdown be activated? Through a command or an event? And in case of an event: The same countdown for everybody or should everybody have his own countdown?