ScoreBoardAnnouncer
ScoreBoardAnnouncer
ScoreBoardAnnouncer
Announce messages using the ScoreBoards feature!
Features
- Send your players messages using the scoreboard feature added in Minecraft 1.5!
- A configurable scoreboard title!
- Complete automation!
- A reload command (/sba reload)!
- Configurable interval!
- Support for colours!
- An unlimited amount of messages!
What does it look like?
How do I set it up?
Follow these steps:
- Step one: go to the config.yml file.
- Step two: fill in how long you want the messages to stay at "stayForHowLong". This is in seconds.
- Step three: fill in what interval you want between the messages at "intervalBetweenMessages". This is also in seconds. It is very important that you make sure this number is bigger than "stayForHowLong". If you fail to do this, this might result in client crashes.
- Step four: write down your messages. An example of how to do that is given when you first open the config.yml. You must make sure that you follow the rules specified below.
Important notes & tips for messages
Every user of this is recommended to follow the following rules when writing messages. Not following these rules will probably cause client crashes - sometimes for every online player. So, pay attention to these:
- In the config.yml, you can setup an announcement with the following form (// starts a new line).
- Title Line//Last Line//Second Line//First Line//.
- Of course, you can have more than 3 single lines + the title line. This example just illustrates the order of the messages.
- A single line may not be longer than 16 characters (including spaces and colour codes). Not following this rule will result in client crashes.
- You can add colour codes by using the basic Minecraft colour codes format. That can be found over here. You must start a colour code with a '&' character. So, for example, if I wanted a red line, I'd use: "&cThis is a red line!".
Commands and permission
In the latest update (version 1.1) I've added some permissions and a command. The plugin now contains the following:
- scoreboardannouncer.see - Required to receive the messages that the plugin is sending with the ScoreBoard feature. Every player has this permission by default.
- scoreboardannouncer.command - Required to use any command starting with "/sba" or with "/scoreboardannouncer". Every player has this by default. Note: this permission is pointless on itselves - you'll need other permission, such as "scoreboardannouncer.reload" to actually be able to use those command features.
- scoreboardannouncer.reload - Required to use the "/sba reload" command. With this command, you can reload the plugin.
Questions?
Feel free to ask them in the comments.
@TomYaMee
@bestlike2
@LenkaTim
I've updated the plugin. It works with 1.5.1 now. The file I just uploaded can be found under the 'Files' section - the BukkitDev staff still have to approve it before it shows up at the main page.
I've also added the requested reload command. This is "/sba reload" now. You will need the permission "sba.command" (everyone has this by default) and "sba.reload" (only OPs have this by default).
Another thing that I've added is a permission for seeing the messages the plugin is sending. This is the "scoreboardannouncer.see" permission. Everyone has this by default, so it is not necesarry to use a permissions plugins for using this.
Please Update it to 1.5.1!
pls update
@Rprrr
1.5.1 breaks the plugin...
@EncryptedCurse
Seems very interesting. I have no idea on how to do it, but I could try...
P.S.: I'm gonna release an update with some requested features tomorrow.
I have a request: could you make a plugin that utilizes the "belowname" display slot?
http://www.minecraftwiki.net/wiki/Scoreboard
@Seaboiii
Adrenalineq is right about that.
@LeakCraft
I'll certainly add a reload command, I'm still thinking about how to to do messages / messagelists with permissions. Thanks for the suggestions. :)
@Seaboiii
Update your craftbukkit ... it need 1.5 craftbukkit
I got this error. Someone help?
[SEVERE] Could not load 'plugins\SBA.jar' in folder 'plugins' org.bukkit.plugin.InvalidPluginException: java.lang.NoClassDefFoundError: net/minecraft/server/v1_5_R1/IObjective at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:184) at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:305) at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:230) at org.bukkit.craftbukkit.v1_4_R1.CraftServer.loadPlugins(CraftServer.java:239) at org.bukkit.craftbukkit.v1_4_R1.CraftServer.<init>(CraftServer.java:217) at net.minecraft.server.v1_4_R1.PlayerList.<init>(PlayerList.java:55) at net.minecraft.server.v1_4_R1.DedicatedPlayerList.<init>(SourceFile:11) at net.minecraft.server.v1_4_R1.DedicatedServer.init(DedicatedServer.java:104) at net.minecraft.server.v1_4_R1.MinecraftServer.run(MinecraftServer.java:399) at net.minecraft.server.v1_4_R1.ThreadServerApplication.run(SourceFile:849) Caused by: java.lang.NoClassDefFoundError: net/minecraft/server/v1_5_R1/IObjective at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:173) ... 9 more Caused by: java.lang.ClassNotFoundException: net.minecraft.server.v1_5_R1.IObjective at org.bukkit.plugin.java.PluginClassLoader.findClass0(PluginClassLoader.java:70) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:53) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) ... 12 more
Would you please consider adding permission support for each individual message, as well as /sba reload so I don't have to reboot the server or reload for each update I do? Thank you. :)
EDIT: Also, I doubt you'll do this, but could you consider replacing with |? It's easier to read. :)
Those that have Bungeecord servers, be warned the last message on your screen when switching servers will stay there.
Is there any way to get source code?
@Icefuzion
@BenRush
Thanks for the suggestions. I'll certainly look into it, should all be possible!
Feature suggest: - permission based (eg. all players with permission sba.guestrules get guest messages) - Triggers (!!) ie getting notified when typing a certain command, when passing a certain worldguard area, when logging on (for the first time), etc. Similar to rTriggers. - Worldguard compatibility eg trigger when entering WG region
Feature suggest: Add these messages then players joins region (worldguard) Give admin ingame command to inform players about events ant etc.
@TomYaMee
Correct, I've added it to the description.
@Rprrr
Btw, the maximum of 16 characters included color codes
@S1lverK3y
I'll experiment with that. Thanks for the suggestion, I'll let you know if it works. :)
Edit: nope, it doesn't work. It simply shows the full number.
@Rprr would setting the numbers to a ridiculous amount work?
Just like in xp level where it gets invisible after like 25000
@TomYaMee
Removing the numbers is not possible at all. :(
About editing the numbers - I could add that, but the numbers are the only way the messages can be sorted. The messages with the highest scores are at the top. However, if the number (score) is equal to another score, the two messages would be sorted alphabetically. So you wouldn't really be able to create a proper message with your own numbers, because they have to be in order or the message gets ruined.