This plugin does nothing on its own. It is simply an API for other plugins to implement with.
Simply add BarAPI.jar to your project build path.
This plugin makes use of reflection and therefore "shouldn't" break on craftbukkit updates.
The message can not be more than 64 characters. If it is more, BarAPI will automatically cut it to 64 characters to prevent the client from crashing.
This is a client limitation and cannot be changed.
BarAPI.setMessage(Player player, String message)
Set a message for the player. It will remain there until the player logs off or another plugin overrides it.
BarAPI.setMessage(Player player, String message, float percent)
Same as above except you can set the % of the health bar. 100 shows the entire health bar, 50 shows half the health bar and so on.
BarAPI.setMessage(final Player player, String message, int seconds)
Sets a timed message for the player. It will remain until the timer runs out. The health automatically reduces based on how long the timer is.
Pretty self explanatory, returns a boolean.
Also pretty self explanatory.
BarAPI.setHealth(Player player, float percent)
Allows you to modify the health of an existing bar. If the player has no bar, this does nothing.
<repositories> <repository> <id>confuser-repo</id> <url>http://ci.frostcast.net/plugin/repository/everything</url> </repository> </repositories> <dependencies> <dependency> <groupId>me.confuser</groupId> <artifactId>BarAPI</artifactId> <version>3.0</version> </dependency> </dependencies>
These builds have not been approved by BukkitDev staff, therefore, use at your own risk.
This plugin contains an auto updater which is enabled by default. If you do not wish to automatically download new updates, edit BarAPI/config.yml and set autoUpdate to false.
- Scroll messages if string is greater than 64 characters.
Plugins Using BarAPI
To determine popularity and usage of BarAPI, plugin installs are automatically tracked by the Metrics plugin tracking system. Your Java version, OS, player count, server country location and plugin & server versions are collected. This is used to determine what environments are using the plugin to ensure full compatibility. This collection is anonymous. If you don't want this tracking, edit plugins/PluginMetrics/config.yml and set opt-out to true.
Here is a 1.12.2 update, this has been tested and works. I'm only posting it here since it feels wrong to make my own post. I'm not taking credit for this plugin (obviously), I just wanted to use it, but since it hasn't been updated, I decided to do so. Here is proof that it works in 1.12.2 if you don't believe me: https://imgur.com/KID9VEU
And if you want to download it, you can do so here: https://www.dropbox.com/s/672lgr7zhocu6dp/BarAPI.jar?dl=1
In reply to tntcreeperkingmc2:
I need version to 1.10.2, please!!!
30.07 19:04:48 [Server] ERROR Could not load 'plugins/BarAPI.jar' in folder 'plugins'
Do you have an option to donate for this plugin?
MobHunting does now use BarAPI. I use your API to show the players "MobHunting learning messages", instead of spamming the chat.
Thank you for a great API - easy to use and implement!
Yes, this plugin is NMS based. It does break between versions. As 1.9 adds a new Bukkit API for boss bars, the next update for this plugin adding 1.9 support will be it's last. It will be primarily to support backwards compatibility and give time for devs to move over to the new Bukkit API methods in 1.9.
In reply to confuser:
In reply to DrkMatr1984:
I think there's an issue with 1.9 , saw load log complaining :)
It seems to work ok, but it sometimes glitches into your face for a couple ms and when a player turns quickly, it takes a second for the dragon to be moved. And this is not lag since I am running it on my VPS (Specs: 6GB of RAM given to this single minecraft server with nothing else on besides the BarAPI and my simple plugin just to add the bar, and Xeon v3 1231)
Seems to be fixed now
It fails for me too, because the jar isn't available in the repo. :(
Ummmm... When I used this it spawn =ed an ender dragon that cant be killed. Is this a glitch? The ender dragon is not damaging anything, so I woudnt be annoyed if people could still see the bossbar. Unfortunately, the dragon is so far away that noone is able to see the bar D=. PLS help
Is it just me or do others get errors with the Maven repository? I realised that the version should be 3.4-SNAPSHOT, but that doesn't seem to help, error seems to be to do with net.gravitydevelopment.updater.
Any help would be great Thanks
It would be nice if i could choose the height or where the enderdragon is, because i have a skyblock server and the stuff is well.. in the sky and the enderdragon is in the middle of all of it... Thanks.
WTB Kcauldron 1.7.10 compatible version
Having the same error
I Get This Everytime i try to do a BossBar Message Before you ask, yes i have BarApi, and the only command i can do ingame related to bossbar is /sb bossbar start or Stop Nothing more, Besides that great Plugin but i need this Fixed any Solution???
Part of Console When Using BossBar: Cauldron http://pastie.org/10642518
After Talking To The Creator of SimpleBroadcast I was told to come here to get help