Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Get content from other Servers

Comments in 'Plugin Development' started by Survingo, Apr 21, 2016.

  1. Survingo
    Offline

    Survingo Active Member

    Joined:
    Dec 6, 2015
    Posts:
    221
    Hello community :D

    I just found an other problem:
    I want to make a 'Dynamic Server Sign' plugin. E.g. getting online players, or if the Server is online.
    But I can't connect to other servers (getting contents).

    I am using the Utils::getURL(ServerIP) function (ServerIP = IP Adress of the server like 120.48.19.10).

    Anyone can help?
  2. Primus
    Offline

    Primus Notable Member

    Joined:
    Apr 7, 2015
    Posts:
    1,470
    Minecraft User:
    PrimusLV
    PHP-Minecraft-Query @williamtdr made it work for LBSG but I never made it work for my self :p

    Alternative for query: Create plugin which updates server info on MySQL database and use that data
  3. Gamecrafter
    Offline

    Gamecrafter

    Joined:
    Nov 20, 2014
    Posts:
    978
    Plugins:
    9
    Utils::getURL() is for sending HTTP GET requests. You would have to use a query in this case. Look at my QueryFacade for an example of how this is used. Also, use an AsyncTask. Or else it'll cause a significant amount of lag on your server.
    Last edited: Apr 21, 2016
    Primus likes this.

Share This Page

Advertisement