Undo 128 chats in scoreboard

This commit is contained in:
Fabrizio La Rosa 2020-07-13 16:27:21 +02:00
parent 5142c0015a
commit 6d0696b64c

View File

@ -74,10 +74,8 @@ public class Scoreboard {
int max; int max;
if(ServerVersion.isServerVersion(ServerVersion.V1_8)) { if(ServerVersion.isServerVersion(ServerVersion.V1_8)) {
max = 16; max = 16;
} else if(ServerVersion.isServerVersionBelow(ServerVersion.V1_13)) {
max = 32;
} else { } else {
max = 128; max = 32;
} }
if (formattedDisplayName.length() > max) { if (formattedDisplayName.length() > max) {
obj.setDisplayName(ChatColor.RED + "Too long..."); obj.setDisplayName(ChatColor.RED + "Too long...");