Getting the MOTD and online players of another server

Discussion in 'Plugin Development' started by Bench3, Apr 24, 2013.

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

    Bench3

    Hey guys,
    Just wondering if anybody knows how to get the MOTD and amount of online players on a different server.

    Thanks for any help!

    -Ben
     
  2. Offline

    RROD

    You could:
    • Store these variables in a MySQL database and have the other server retrieve them.
    • Store them in flatfile on a Web Server and retrieve them that way.
    • Set up a direct connection to the server using networking (not the best idea)
     
  3. Offline

    Bench3

    How would I go around creating a FlatFile?
     
  4. Offline

    skipperguy12

  5. Offline

    SimplyNolan

    If you are making a plugin but erhmm there's a plugin ou that can ping servers TabAPI and TabConfig =D Hope I helped.



    ServerListPingEvent (final InetAddress address, final String motd, final int numPlayers, final int maxPlayers)

    InetAddress getAddress ()
    Get the address the ping is coming from.

    String getMotd ()
    Get the message of the day message.

    void setMotd (String motd)
    Change the message of the day message.

    int getNumPlayers ()
    Get the number of players sent.

    int getMaxPlayers ()
    Get the maximum number of players sent.

    void setMaxPlayers (int maxPlayers)
    Set the maximum number of players sent.

    HandlerList
    getHandlers ()
    Source:http://jd.bukkit.org/rb/doxygen/d0/..._1event_1_1server_1_1ServerListPingEvent.html
     
Thread Status:
Not open for further replies.

Share This Page