ServerListPingEvent change player count

Discussion in 'Plugin Development' started by MinecraftShamrock, May 28, 2013.

Thread Status:
Not open for further replies.
  1. Hi there.
    Is there a way how I could modify the displayed player count of the server using the serverlistping event?
     
  2. Offline

    BajanAmerican

    What do you mean? The player count updates automatically.. Are you saying that you want to modify that number so it doesn't display the number of all the players in that server? Like an int variable you made that is updated on the server ping?
     
  3. Offline

    Garris0n

    You can't do this with the bukkit api, you can only modify the max players and the motd. I'd assume this is to prevent abuse.

    I'm sure there's a way to do it with the gamecode though.
     
  4. I mean that i want to be able to modify the displayed player count as an int when listening on the ServerListPing event

    Where could I request that feature?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 1, 2016
  5. Offline

    ZeusAllMighty11

    You don't.

    Modifying your players list is cheating, and just all around low...



    Also, you bug out services like Votifier web stuff
     
    Anrza likes this.
  6. Offline

    Garris0n

    This is exactly why it's not in the API :p
     
    BajanAmerican likes this.
  7. Garris0n TheGreenGamerHD
    But why don't they simply add the mothod to the event class?!
    I mean the purpose of bukkit is to make mc servers endless extendable!
    So why don't add it?
     
  8. Offline

    Hoolean

    MinecraftShamrock

    Because one of Bukkit's other original purposes was to be approved of by Mojang and things like that effect that.

    Modifying the player count (if to increase it) is downright low and dirty, although you can do it with packets.

    Maybe you could tell us why you need to do it? :)
     
  9. Offline

    GermanCrafter

    Because
     
  10. Hoolean
    I need to do that because I'm creating a mini-server that is only supposed to let people connect their minecraft account with their account on my website.
    This is not Game-Related at all so I don't want to show any player count because the players won't see other players at all.

    What do you mean by saying I can do it with packets?
     
  11. Offline

    Hoolean

    MinecraftShamrock

    By intercepting packets with a library such as ProtocolLib (google it) you can modify everything about them, including player count. :)
     
    MinecraftShamrock likes this.
Thread Status:
Not open for further replies.

Share This Page