Hide OnlineUser amount

Discussion in 'Plugin Development' started by blargh, Apr 3, 2012.

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

    blargh

    Is is possible to hide OnlineUser amount or atleast to change that? Im working on a Plugin, that simulates more than one Server, but i have no idea how to remove this nasty thing.
     
  2. Offline

    zhuowei

    Which OnlineUser amount are you talking about?
    For the amount that comes when you do /list, I guess you can write your own custom /list command that displays the real number of users.
    For the amount displayed in the Minecraft Server list of the client, listen for ServerListPingEvent and change the users online sent to the client.
    For the tab list, I do not know of a good way to send extra users to it.
     
  3. Offline

    blargh

    Thank you. Could you please be more precise, or could you post a example for ServerListPingEvents? I dont really get how to change the Amount sended to the Client.
     
  4. Offline

    CorrieKay

    check this out: http://jd.bukkit.org/apidocs/org/bukkit/event/server/ServerListPingEvent.html

    listen for that event, and you can modify various things, although it looks like you cant SET the number of players, only the max count... which is very odd o3o
     
  5. Offline

    blargh

    CorrieKay ye i thought the same. Not cool..
    But thank you anyway both of you.

    PS: Pinkie Pie?^^
     
  6. Offline

    CorrieKay

    aye :3
     
Thread Status:
Not open for further replies.

Share This Page