Afforess/CraftBukkitPlusPlus — pull request #25 by jkcclemens (2012-08-31 01:21:33+00:00)
Title: Implement setNumPlayers() from ServerListPingEvent

The method setNumPlayers() exists in ServerListPingEvent, but it doesn't actually get implemented in CraftBukkit++. This just teases developers who use (C)B++, because no changes made using setNumPlayers() actually show.

The reason for this is that CB doesn't get the number of players for the ping from the event; it gets it from the server itself. This change will simply use the event's getNumPlayers() to get the number to send in the packet.

I've used this myself for quite a while now, and it works flawlessly. I'm simply tired of having to compile my own CB++ every time I want to update.