Solved SignChangeEvent and ServerListPingEvent

Discussion in 'Plugin Development' started by Miner_Fil, Jul 26, 2013.

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

    Miner_Fil

    Is it possible to use SignChangeEvent to Update the Number of Players online using
    ServerListPingEvent?

    P.S I know how to make a Scheduler
     
  2. Offline

    kreashenz

    Why use ServerListPingEvent when you can just use Bukkit.getOnlinePlayers().size()? It should return the amount of players online.
     
  3. Offline

    Miner_Fil

    On a Sign, If you type in a Server IP it will show you how many players are Online.
     
  4. Offline

    MrMag518

    Bukkit.getOnlinePlayers().size();
     
  5. Offline

    Miner_Fil

    I am making a Plugin that will show you Information about the Target Server on a Sign, Bukkit.getOnlinePlayers().size(); would show your Server Information but not the Target Server so i will need to use ServerListPingEvent
     
  6. Offline

    MrMag518

    ServerListPingEvent will only be called for your own server.

    You need to use BungeeCord for something like what you're trying to do.
     
  7. Offline

    Miner_Fil

    MrMag518 Ok, So i have BungeeCord. What Event would i Use?
     
  8. Offline

    fireblast709

    Why would you even try such a thing? Besides, using BungeeCord for this is kinda overkill imo.
     
  9. Offline

    Miner_Fil

  10. Offline

    fireblast709

    Miner_Fil well for starters it was never ment to be changed :p
     
  11. Offline

    Miner_Fil

    If i were to use the BungeeCord API, Would i use TargetedEvent?
     
Thread Status:
Not open for further replies.

Share This Page