PingAPI 1.3.3

Listen for and modify outgoing ping responses

  1. Skionz
    Native Minecraft Version:
    Tested Minecraft Versions:
    • 1.7
    • 1.8
    • 1.9
    • 1.10
    • 1.11
    • 1.12
    • 1.13
    • 1.14
    PingAPI gives developers more control over how they reply to ping requests. Simply put it provides an improvement to Bukkit's ServerListPingEvent. The Javadocs can be found here.

    It has been a few years since I have worked on this project, but I decided to update it for newer versions of CraftBukkit and keep backwards compatibility. I will try to keep it maintained and up to date from now on. The most important change to note is that creating animations is no longer possible for servers running newer versions of CraftBukkit.

    What can it do?
    • Modify the online player count and the max players
    • Change the player sample (list of players shown when hovering over the player count)
    • Fake the protocol name and version to display text instead of the player count
    • Create server list animations (1.8.3 or earlier)
    Make sure to add 'depend: [PingAPI]' to your plugin.yml file
    Check out the source on GitHub


    1. image.png
    Danijel72, Chaka, Flamedek and 4 others like this.

Recent Reviews

  1. CapuzDE
    Version: 1.3.3
    Very good, but don't work for Paperspigot.
    Its really helpfull, for me an my friends as Developer.
    But please Paperspigot support
  2. Stefanus
    Version: 1.3.3
    Works great on my 1.13.2 server! No errors and spam console. Thanks, keep it up!឵឵឵឵឵឵឵឵឵឵឵឵឵឵឵឵឵឵឵឵឵
  3. Viki_Master2
    Version: 1.3.3
    Great API! Well documented and functional.

    I only have one slight problem with #setPlayerSample:
    When I have the online players set to say 50 and then set a List<String> as the player sample it adds a line at the end saying "... and 46 more ...".
    The List<String> was of length 4, so I assume it thought the list had displayed 4 player names instead of custom message lines? Any help would be appreciated, thanks!
    1. Skionz
      Author's Response
      Unfortunately I don't think there is a way around that. I believe it is built into the client to display that extra message.
  4. noemi1998_
    Version: 1.3.3
    I put it in my server plugins folder but it doesn't created a API folder in plugins folder, server said the plugin is loaded
    1. Skionz
      Author's Response
      Why would it create an API folder? This is a tool for developers not server owners
  5. Scholler
    Version: 1.3.3
    Will change my review if you do a tutorial on how to use the API with Maven.
  6. Malacaritaa
    Version: 0.1.7
    Works, but the animation system only work on 1.7 ;-; old good times
    Pls remove the gif :( its very sad

    100 characters
  7. FECoder
    Version: 0.1.5
    A good plugin thanks.
  8. Sunique
    Version: 0.1.5
    Please add a example of a animation in the description of the plugin :(
  9. Firebreath15
    Version: 0.1.5
    PingAPI wins 5/5 stars from me. It's really simple to use, and by using a Bukkit.getScheduler().scheduleSyncDelayedTask method, animations are even possible. FOR FREE. Great plugin, highly recommended.
  10. Lmmb74
    Version: 0.1.5
    Excellent api, but could you explain how to make the animation?
    1. Skionz
      Author's Response
      Create a bunch of delayed tasks on the ping event, but make sure to cancel the pong with PingEvent#cancelPong(true) until the animation is complete. Pass the event to your delayed task, use PingEvent#createNewPacket(PingEvent#getReply()), set the reply's MOTD, invoke ServerInfoPacket#send(). This will send the PacketStatusOutServerInfo packet to the client, but it will keep the connection open until you send the pong packet. To uncancel the pong when your animation is finished use PingEvent#cancelPong(false);