API now compiles successfully

This commit is contained in:
Jake Potrebic
2022-06-07 13:31:10 -07:00
parent a22a744368
commit da15f7cfbc
6 changed files with 9 additions and 11 deletions

View File

@@ -3257,7 +3257,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ // Paper start
+ public ServerListPingEvent(@NotNull final InetAddress address, @NotNull final net.kyori.adventure.text.Component motd, final int numPlayers, final int maxPlayers) {
+ super(true);
+ Validate.isTrue(numPlayers >= 0, "Cannot have negative number of players online", numPlayers);
+ Preconditions.checkArgument(numPlayers >= 0, "Cannot have negative number of players online (%s)", numPlayers);
+ this.address = address;
this.motd = motd;
+ this.numPlayers = numPlayers;