BossAPI

BossAPI is a Points, Texthandling and Data Storage API with the aim to ease the work of Developers.

Why BossAPI?

The goal of BossAPI is to make the life of Developers easier - and the life of server owners!

Features

  • User Management
    • BossAPI creates one little storage file per player which can be accessed by any other plugin
    • A custom "User" class allows Developers to store data per player
    • Custom Events (Join, Save and Leave) allow easier data handling per player
  • Points Plugin API (Optional)
  • Configuration File API
  • Text Handler: Easier management of symbols and colour codes

Plugins often have to store data for players (Like Money, Achievements, Permissions, etc.). In the past my server had four folders which all contained tons of player files. The more players you have, the more annoying this is. You probably know that problem. As plugin developer you have following options:

  1. Either store the data of all players in one single file (This will cause lag if there are too many players in the file)
  2. Or create one storage file per player (Owners of big servers hate that)
  3. Or use a database like MySQL (Not many people use that)

Solution

A storage file per player which is used by multiple plugins at the same time. And exactly this is, what BossAPI provides!



Commands

  • None



Permissions

  • None



Hooking into BossAPI

Don't forget to add softdepend: [BossAPI] to your plugins.yml

private BossAPI bossapi;

@Override
public void onEnable(){
		Plugin plugin = getServer().getPluginManager().getPlugin("BossAPI");
		if(plugin==null){
			getLogger().severe("BossAPI was not found... You need it in order to run <Name of Plugin>! Get it here: http://dev.bukkit.org/bukkit-plugins/bossapi");
			getLogger().severe("Disabling...");
			getPluginLoader().disablePlugin(this);
			return;
		}
		bossapi = (BossAPI) plugin;

}

You can find more code examples here: Link

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

  • 3 comments
  • Avatar of MineCrafterCity MineCrafterCity Dec 09, 2014 at 15:44 UTC - 0 likes

    Not compatible with the newest version of spigot.

  • Avatar of matter_44 matter_44 Aug 03, 2014 at 05:51 UTC - 0 likes

    Would it be possible to use this for an enjin point economy alongside vault?

    Hello there friend how are you? Fuedal Lands Minecraft server
  • Avatar of confuserr confuserr Feb 16, 2014 at 11:24 UTC - 1 like

    A maven repo to add this as a dependency would be great :)

  • 3 comments

Facts

Date created
Feb 07, 2014
Categories
Last update
Feb 08, 2014
Development stage
Release
License
GNU General Public License version 3 (GPLv3)
Curse link
BossAPI
Downloads
1,164
Recent files
  • R: v1.0.1 for CB 1.7.2-R0.2 Feb 08, 2014
  • R: v1.0.0 for CB 1.7.2-R0.2 Feb 07, 2014

Authors