- Tested Minecraft Versions:
- 1.8
- 1.9
- 1.10
- 1.11
- 1.12
Did you ever have troubles while installing multiple scoreboard plugins to have different features such as health-bar, colored tags, scoreboards? KustomBoard has built in multiple features so you only need 1 plugin to have maximum compatibility.
- Great Performance without flickering.
- Scoreboard
- HealthBar
- Countdown display system (Only visible when needed)
- Faction Colored Tags
- PlaceholderAPI Support
- Custom support for other plugins (explained below)
- Strong developer API.
- 32 Char limit.
Code (Text):
/Kustomboard toggle >> KustomBoard.toggle
/kustomboard reload >> KustomBoard.reload
/kustomboard version >> KustomBoard.version
Aliases: Scoreboard, sb, kb
- PlaceholderAPI
- KoTH (by subside)
- %kustom_kothname%
- %kustom_kothcapper%
- %kustom_kothlocation%
- %kustom_kothtime%
- Factions (Normal or UUID)
Pictures:- GoldenAppleControl
- %kustom_enchantedgapple%
- %kustom_gapple%
- HealthBar
Do you have a plugin and need support for it? MD me and lets see if I can give support to it.
You have two ways to create placeholders:- With the update event:
With the methods of the event you can replace your your placeholders. You'll have to check yourself if the text contains your placeholders and if so replace them.
Example:
Code (Text):
@EventHandler
public void onSbTextUpdateEvent(ScoreboardUpdateEvent event) {
if ((event.getText() != null) && ((event.getText().contains("%kustom_player_rank%")) || (event.getText().contains("%kustom_player_status%")))) {
String rank;
if (event.getPlayer().getName().equalsIgnoreCase("ByteMagic")){
rank = "OWNER";
}else{
rank = "MEMBER";
}
String text = event.getText();
if (text.contains("%kustom_player_rank%")) {
text = text.replace("%kustom_player_rank%", rank);
}
if (text.contains("%kustom_player_status%")) {
text = text.replace("%kustom_player_status%", event.getPlayer().isDead() ? "DEAD" : "ALIVE");
}
event.setText(text);
}
}
- With classes that extend "PlaceHolderReplacer":
Code (Text):
public String apply(String target, Player player) {}
The placeholders will always have the format: %kustom_{yourplaceholdername}%
Example:
Code (Text):
public class TestPlaceholder extends PlaceHolderReplacer{
public TestPlaceholder(){
super("playername");
}
@Override
public String apply(String target, Player player) {
return ChatColor.RED + player.getName();
}
}
the placeholder created here will be:
Code (Text):
%kustom_playername%
Then in your onEnable method you create the instance like this:
Code (Text):
@Override
public void onEnable() {
new TestPlaceholder();
}
In any case, if you return null the line wont be added to the scoreboard, you can use this if you only want to show things for a limited time. You can get information of the User with the class
Code (Text):
KustomBoardAPI
If you don't have the plugin bought, don't worry, you still can use the api with this jar that contains shared classes.
https://drive.google.com/open?id=1IygCfD7SFt6Q-mAfem0IXusPXM1XmSDp