A simple NameTags API for bukkit created by MTR.
- PacketEvents 2.8.0 (or higher)
- A minecraft server (obviously)
- A brain (some people don't have that. MAKE SURE YOU DO)
In your main class, you need to register the Aroze class.
@Override
public void onEnable() {
new Aroze(this, new Adapter());
}The adapter class is a class that allows you to set the prefix, suffix and priority of the player.
public class ArozeExample implements ArozeAdapter {
@Override
public String getPrefix(Player player) {
return "test "; // Make sure there is a space here, because it doesn't seperate from the name.
}
@Override
public String getSuffix(Player player) {
return " a"; // Same here...
}
@Override
public int getSorting(Player player) {
if (player.getName().equalsIgnoreCase("EmpireMTR")) {
return 1;
}
return 0; // The higher the sorting is, the higher you will be in tablist.
}
}I don't care if you guys wanna be cringe and skid this.
If you guys like it, you can use it.