To use this api you need to shade it into your plugin. THIS IS NOT A PLUGIN!
The zip contains the API and the API Docs that you can find below too.
Code (Java):
/** * Get the bukkit scoreboard * @return bukkit scoreboard */ public Scoreboard getBukkitScoreboard
();
/** * Create a new better scoreboard. Do not use this, instead use ScoreboardManager.createNewBetterScoreboard(String name, TextComponent title); * @param name the name of the better scoreboard * @param title the title of the better scoreboard */ public BetterScoreboard
(String name,
TextComponent title
);
/** * Change the scoreboard title * @param title the new scoreboard title */ publicvoid setTitle
(TextComponent title
);
/** * apply the scoreboard to a player * @param p the player to apply the scoreboard */ publicvoid applyToPlayer
(Player p
);
/** * Add a not variable (static) line to the scoreboard under the last line * @param content the content of the line * @return true if action is successfully completed */ publicboolean addStaticLine
(String content
);
/** * Add an editable line to hte scoreboard under the last line * @param name the name of the editable line (useful to edit the line further) * @param content the content of the line (max 32 chars) * @return true if action is successfully completed */ publicboolean addEditableLine
(String name,
String content
);
/** * Change the content of an editable line * @param name the name of the editable line * @param content the new content of the editable line * @return true if the action is successfully completed */ publicboolean setEditableLine
(String name,
String content
);
/** * Totally clear the scoreboard * @return true if the action is successfully completed */ publicboolean resetScoreboard
();
Code (Java):
/** * Get a previously created better scoreboard * @param name the name of the better scoreboard * @return the better scoreboard */ publicstatic BetterScoreboard getBetterScoreboard
(String name
);
/** * Create a new better scoreboard * @param name the name of the better scoreboard * @param title the title of the better scoreboard * @return the better scoreboard */ publicstatic BetterScoreboard createNewBetterScoreboard
(String name,
TextComponent title
);
/** * Delete a better scoreboard * @param name the name of the better scoreboard * @return true if the action is successfully completed */ publicstaticboolean deleteBetterScoreboard
(String name
);
/** * delete a better scoreboard * @param scoreboard the better scoreboard * @return true if the action is successfully completed */ publicstaticboolean deleteBetterScoreboard
(BetterScoreboard scoreboard
);