Skip to content

Commit

Permalink
Lift LP weight limit from 999 to 9999
Browse files Browse the repository at this point in the history
  • Loading branch information
Xitee1 committed Jul 23, 2023
1 parent e553f8c commit 694e1e6
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/main/java/de/xite/scoreboard/utils/Teams.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,14 @@ public Teams(Player p, String prefix, String suffix, ChatColor nameColor, String
return;
}

if(weight < 0 || weight > 999) {
if(weight < 0 || weight > 9999) {
PowerBoard.pl.getLogger().warning("---------------------------------------------------------------------------------------------------------------------------");
PowerBoard.pl.getLogger().warning("Warning! You cannot use negative or above 999 weights! Player \""+p.getName()+"\". This will cause issues with the tablist sorting.");
PowerBoard.pl.getLogger().warning("Warning! You cannot use negative or above 9999 weights! Player \""+p.getName()+"\". This will cause issues with the tablist sorting.");
PowerBoard.pl.getLogger().warning("---------------------------------------------------------------------------------------------------------------------------");
}

TeamCount++;
this.teamName = String.format("%03d", weight)
+"t-"
+TeamCount;
this.teamName = String.format("%04d", weight) +"t-" + TeamCount;
}

public static Teams addPlayer(Player p, String prefix, String suffix, ChatColor nameColor, String chatPrefix, String placeholderName, String playerListName, int weight) {
Expand Down

0 comments on commit 694e1e6

Please sign in to comment.