Minecraft BarAPI mod 2026 download
logo
minecraft mod BarAPI

BarAPI

Game Version: 1.10
Total Downloads: 2,141,357
Updated: Nov 4, 2016
Created: Sep 1, 2013
Download BarAPIDownload Earlier Versions

Earlier Versions

Name Size Uploaded Game Version Downloads
BarAPI v3.5 release 55.89 KB Nov 4, 2016 1.10 568,627 download BarAPI BarAPI v3.5 releaseDownload
BarAPI v3.4 release 55.89 KB Mar 19, 2016 1.9 542,535 download BarAPI BarAPI v3.4 releaseDownload
BarAPI v3.3 release 52.18 KB Dec 19, 2014 1.8 612,929 download BarAPI BarAPI v3.3 releaseDownload
BarAPI v3.2 release 48.81 KB Nov 10, 2014 CB 1.7.9-R0.2 118,510 download BarAPI BarAPI v3.2 releaseDownload
BarAPI v3.1 release 43.36 KB Apr 19, 2014 CB 1.7.2-R0.3 241,791 download BarAPI BarAPI v3.1 releaseDownload
BarAPI v3.0 release 42.83 KB Jan 24, 2014 1.7.4 33,403 download BarAPI BarAPI v3.0 releaseDownload
BarAPI v2.0 release 18.30 KB Dec 7, 2013 1.7.2 15,900 download BarAPI BarAPI v2.0 releaseDownload
BarAPI v1.0 release 11.30 KB Sep 1, 2013 CB 1.6.2-R0.1 7,662 download BarAPI BarAPI v1.0 releaseDownload

Description

Share this:

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.

Comments

Add a comment