BarAPI

BarAPI

Server Owners

This plugin does nothing on its own. It is simply an API for other plugins to implement with.

Developers

Simply add BarAPI.jar to your project build path.

This plugin makes use of reflection and therefore "shouldn't" break on craftbukkit updates.

Limitations

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.

Examples

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.

BarAPI.hasBar(Player player)

Pretty self explanatory, returns a boolean.

BarAPI.removeBar(Player player)

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.

Tutorials

German - DerFeliix

Source

GitHub

Maven

<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>

Developer Builds

These builds have not been approved by BukkitDev staff, therefore, use at your own risk.

Frostcast CI

Updater

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.

To Dos

  • Scroll messages if string is greater than 64 characters.

Plugins Using BarAPI

WelcomeBar

Parkour

QuickSupport

BossBroadcast

BossMessage

PvPGames Automated

BossEventScheduler

Infernal Mobs

MythicMobs

MultiKill

PlayerBoss

BossAds

Item Lore Stats

BossBarPro

VIPLobby

Battle Of Blocks

BossBroadcaster

SilkSpawners

BarJoin

JoinGlobalMessages

Metrics

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.

You must login to post a comment. Don't have an account? Register to get one!

  • Avatar of gpotter2 gpotter2 Apr 14, 2015 at 17:04 UTC - 0 likes

    @SwaG1KinG: Go

    OMG, again ?

    The plugin is having issues with 1.8...

    The plugin may print error codes... And may not works...

    please read the "known issues":

    Due to a client side bug with 1.8, the bar is only visible to a player if they are looking at the enderdragon. This means players will be able to see an enderdragon in the distance
    

    You may follow the error here:

    https://bugs.mojang.com/browse/MC-68062

    Last edited Apr 23, 2015 by gpotter2

    Code is code, it is not pizza...

    MY PLUGINS

    ZBDHce8fa6626dc8fdf73e4afa75004d47a1

  • Avatar of SwaG1KinG SwaG1KinG Apr 08, 2015 at 18:32 UTC - 0 likes

    Plugin MEGA Spam || Issues

    The plugin is spamming my console like CRAZY. And the most important the dragon get spawns not far from the players and they can see him...

    Can someone please help me? (Yes i am using the spigot 1.8.x & 1.7.x server version and the config has that enabled!)

    Thanks in advance.

    ZBDHf5842d90b0cb1b5c9b03f522a10d4149

  • Avatar of gpotter2 gpotter2 Apr 07, 2015 at 11:20 UTC - 0 likes

    @ferrago: Go

    Right...

  • Avatar of ferrago ferrago Apr 06, 2015 at 15:36 UTC - 0 likes

    @gpotter2: Go

    We also know the fix won't be distributed till 1.9 which is ass

    CQR|CQR BFAK:90678341,d162341bd70f9d48ee9bedc969773e3b0744d0a6da70e240520c96318ec8557b

  • Avatar of gpotter2 gpotter2 Apr 02, 2015 at 15:48 UTC - 0 likes

    Hey !

    Look what i found:

    https://twitter.com/Dinnerbone/status/557169156408492032

    That would be AMAZING (when 1.9 will be relased) to add it :)

    And anyway, with this:

    https://bugs.mojang.com/browse/MC-68062

    We know it has been resolved...

  • Avatar of TheRealDiamondPortal TheRealDiamondPortal Mar 31, 2015 at 02:05 UTC - 0 likes

    It wont work on my Spigot 1.8.3 server

  • Avatar of Pugmatt Pugmatt Mar 25, 2015 at 01:56 UTC - 0 likes

    I'm usually one to say "It's better than nothing", but being able to see the enderdragon + hearing its wings is a bit overkill. Thanks for your hard work though.

    Last edited Mar 25, 2015 by Pugmatt

    BFAK:90737006,d5d2b0eca8bdbb7e5acbdcbde3a75080d60154316ff122331c6e1916f3420fb1

  • Avatar of technowix technowix Mar 15, 2015 at 13:07 UTC - 0 likes

    Possible to spawn the dragon under the ground ?

  • Avatar of CNLY CNLY Mar 14, 2015 at 09:18 UTC - 0 likes

    @Roxas156: Go

    Your server is too old for the plugin. Use 1.7.10 or up for BarAPI v3.3.

  • Avatar of Ancard Ancard Mar 09, 2015 at 07:33 UTC - 0 likes

    BarAPI UFO BUG

    xD WTF!? This scared me the first time ... accompanied by the noise of aliens ... but it was awesome ... then I get disconnected when the light came to me ... you can create some plugin to add aliens? I have no idea how to repeat the bug. but I know comes from barAPI. because the bar appeared and disappeared quickly. This light seemed to move arbitrarily. and when he was near started to hear the noise of ender dragon wings flapping very quickly and could see the smoke of thousands of small explosions of ender dragon.

    Last edited Mar 09, 2015 by Ancard

Facts

Date created
Sep 01, 2013
Category
Last update
Dec 19, 2014
Development stage
Release
License
Creative Commons Attribution-NonCommercial-ShareAlike 2.0 UK: England & Wales
Curse link
BarAPI
Downloads
755,148
Recent files

Authors