SPIGOT-7772: Include hidden / non-sampled players in player count

This commit is contained in:
md_5 2024-06-22 08:07:02 +10:00
parent 3153debc5f
commit cbd95a6b35
No known key found for this signature in database
GPG Key ID: E8E901AC7C617C11

View File

@ -110,7 +110,7 @@
+ } + }
+ } + }
+ +
+ ServerPing.ServerPingPlayerSample playerSample = new ServerPing.ServerPingPlayerSample(event.getMaxPlayers(), profiles.size(), (server.hidesOnlinePlayers()) ? Collections.emptyList() : profiles); + ServerPing.ServerPingPlayerSample playerSample = new ServerPing.ServerPingPlayerSample(event.getMaxPlayers(), event.getNumPlayers(), (server.hidesOnlinePlayers()) ? Collections.emptyList() : profiles);
+ +
+ ServerPing ping = new ServerPing( + ServerPing ping = new ServerPing(
+ CraftChatMessage.fromString(event.getMotd(), true)[0], + CraftChatMessage.fromString(event.getMotd(), true)[0],