MessageBarAPI
MessageBarAPI
What it does
This plugin on it's own does absolutely nothing but waste CPU cycles. You can however use this plugin together with another plugin that supports it (or within it's own plugin) to create some pretty slick stuff.
How to use it in your own plugin
Simply listen for a MessageBarSetEvent in your plugin, and add the depend line in plugin.yml.
Use MessageBarSetEvent.setMessage(String), to set the message for your players.
You could end up with something slick looking like this :o
http://dev.bukkit.org/bukkit-plugins/bar-api/ is a more updated version of this, and the one that you are probably looking for.
@Cryices You can show an Integer! Use:
@Poopnose565
This plugin does never and is for plugin develepers. BarAPI is also does nothing and makes other plugins work. They are the same thing.
needs an update
The plugin will not work for me... The bar and message will not appear and im using BarAPI
Maybe try to make it so you can show an integer?
I would appreciate it if (if you used my tutorial as an aid) you gave me some credit in the description :)
I have made a small plugin that uses this API, It includes a config option for setting the message and also a permission so that people can see it.
Once I upload on Bukkit, I will message the author and see if he wants to place it on his page.
If anyone actually wants to use this, chasechocolate released this in the resources forum.
Was actually going to do something like this myself as I currently have conflicts between plugins using similar methods, so this will save me some time.
Just a few questions.
Is this NMS dependant, or is it using reflection or even protocolLib?
Can you add in an option to set a timer? Eg. show message for X ticks or seconds and for the health to lower after each second. The amount of health lowered would be based on the maximum health and the amount of time the message displays for. E.g if max health is 300, timer is 10 seconds, 30 health would be taken off each second. It would also be helpful if there was a method that ran right before the health lowered to manipulate the message.
How do you clear the message when you don't want it to show any more?
Can you add the option to set the message for a particular Player and an ArrayList of players rather than every online player?
Is the source on a repo somewhere? If so, I'd like to take a look and contribute some of the changes I've mentioned above if your happy for me to do so.
@Bjarnootjuh
This is already done, check my plugins.
Anbody know a plugin that uses this! this seems very interesting!
@gamingnl
I'm already making one! :)
People should make a auto messager with it but instead of heaving all those messages in the chat have it on the boss health
Works on 1.5.2?
Uhm, what's this about? The Boss Mob's health bar? oO Nice man.