Merge with Spigot

da32fe1d549 <- Increase max scoreboard objective size
This commit is contained in:
Zach Brown 2014-12-03 18:13:06 -06:00
parent c78777957f
commit 110b463d27

View file

@ -13,7 +13,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
public Score getScore(String entry) throws IllegalArgumentException, IllegalStateException {
Validate.notNull(entry, "Entry cannot be null");
+ if (entry.length() > 16) throw new IllegalArgumentException("Entry cannot be longer than 16 characters!"); // Spigot
+ if (entry.length() > 40) throw new IllegalArgumentException("Entry cannot be longer than 40 characters!"); // Spigot
CraftScoreboard scoreboard = checkState();
return new CraftScore(this, entry);