PingAPI 1.3.3

Listen for and modify outgoing ping responses

  1. Skionz
    Native Minecraft Version:
    1.14
    Tested Minecraft Versions:
    • 1.7
    • 1.8
    • 1.9
    • 1.10
    • 1.11
    • 1.12
    • 1.13
    • 1.14
    Contributors:
    Skionz
    [​IMG]
    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)
    Usage
    Make sure to add 'depend: [PingAPI]' to your plugin.yml file
    Check out the source on GitHub

    Images

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

Recent Reviews

  1. Viki_Master2
    Viki_Master2
    5/5,
    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.
  2. noemi1998_
    noemi1998_
    1/5,
    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
  3. Scholler
    Scholler
    2/5,
    Version: 1.3.3
    Will change my review if you do a tutorial on how to use the API with Maven.
    ----
  4. Malacaritaa
    Malacaritaa
    4/5,
    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
  5. FECoder
    FECoder
    5/5,
    Version: 0.1.5
    A good plugin thanks.
  6. Sunique
    Sunique
    4/5,
    Version: 0.1.5
    Please add a example of a animation in the description of the plugin :(
  7. Firebreath15
    Firebreath15
    5/5,
    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.
  8. Lmmb74
    Lmmb74
    5/5,
    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);
  9. leo
    leo
    5/5,
    Version: 0.1.5
    Great plugin but, how can i do animations please? Scheduler? Pm me please ;)
  10. Sunique
    Sunique
    5/5,
    Version: 0.1.2
    How do I do Animated? PM me :)