在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):confuser/BarAPI开源软件地址(OpenSource Url):https://github.com/confuser/BarAPI开源编程语言(OpenSource Language):Java 100.0%开源软件介绍(OpenSource Introduction):Server OwnersThis plugin does nothing on its own. It is simply an API for other plugins to implement with. DevelopersSimply add BarAPI.jar to your project build path. This plugin makes use of reflection and therefore "shouldn't" break on craftbukkit updates. LimitationsThe 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. ExamplesBarAPI.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. TutorialsSourceMaven<repositories> <repository> <id>confuser-repo</id> <url>https://ci.frostcast.net/plugin/repository/everything</url> </repository> </repositories> UpdaterThis 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
Plugins Using BarAPIMetricsTo 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. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论