Fake Ping

Discussion in 'Spigot Plugin Development' started by ByMN1, May 15, 2015.

  1. How do I show two solid players up the ping ?


    Real: 1/100
    Other: 2/100

    Code (Text):
          public void a(ServerListPingEvent e){
            int i = e.getNumPlayers();
            e.setMaxPlayers(i + 1);
    I could not , I would be glad if you help.
    ( I apologize for the bad english . :) )
  2. What I did was listen to outgoing ping packets, create essentially a clone of the original packet with properties modified to my liking, and sent the new packet instead.
  3. Are you trying to fake player count?
  4. "e.setMaxPlayers(i + 1);"
    He wants to increase his max player count by current players + 1, similar to mineplex.
  6. Wow. I completely misread OP.
  7. "e.setMaxPlayers(i + 1);"

    He want to do like mineplex, the the online player count + 1 is the max players.

    Sorry for my bad english