Spoofing the Number of Players Online?

Discussion in 'Plugin Development' started by jbman223, Jan 2, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    jbman223

    Is it possible to spoof the number of players online sent by the ServerListPing event? Is there a special packet I would need to edit? Thanks!
     
  2. Offline

    fireblast709

    Not possible, unless you want to screw around with the online players list in the ServerConfiguration classes of net.minecraft.server
     
  3. Offline

    jbman223

    And how would I go about doing that?
     
  4. Offline

    fireblast709

    You would have to get it via CraftServer (cast Bukkit.getServer() to CraftServer), and call .getServer().getPlayerList(). (which returns you an instance of the PlayerList class. Here you find the List which size is used for the ping. Don't blame me for any crashes or corrupt data
     
  5. Offline

    jbman223

    It is just for a testing server/proof of concept, so don't worry about any blame :)
     
  6. Offline

    morshu9001

    Which file exactly do you do this modification in?
     
  7. Offline

    Tirelessly

    In a plugin..
     
Thread Status:
Not open for further replies.

Share This Page