Add support for PaperServerListPingEvent (#880)
* Add support for PaperServerListPingEvent
PaperServerListPingEvent is an extended version of Bukkit's standard
ServerListPingEvent, but allows full control over the status response.
This makes it possible to change the player sample, modify the server
version and many other things.
Until now, this was only possible by using ProtocolLib to modify
the packets directly. With this event, it can be also done on
Glowstone where ProtocolLib isn't working (yet).
* Avoid shuffling entire list if only a few players are needed
* Use Arrays.asList
* No need to shuffle if we're sending the whole list
* Update comment
* Revert "Use Arrays.asList"
This reverts commit 0c3a50a908fc16abdba6388c1c1ac4156052abd7.
* Add stub implementations for new methods added upstream
8 files changed