mirror of
https://github.com/PaperMC/Paper.git
synced 2025-02-20 22:42:10 +01:00
SPIGOT-7772: Include hidden / non-sampled players in player count
By: md_5 <git@md-5.net>
This commit is contained in:
parent
542f38bbd0
commit
97750e6387
@ -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(
|
||||
+ CraftChatMessage.fromString(event.getMotd(), true)[0],
|
||||
|
Loading…
Reference in New Issue
Block a user