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

quarygen - libcommon

Comments in 'Plugin Development' started by Radix, Aug 13, 2015.

  1. Radix
    Offline

    Radix Active Member

    Joined:
    Jul 2, 2015
    Posts:
    211
    Minecraft User:
    Dicks123
    Anyway I can get this to display all players on each server
    PHP:
    public function onEnable(){
           
    $this->players = [];
           
    $this->maxplayers = [];
           foreach ([
    "5.9.155.4:19145","5.9.155.4:19190","5.9.155.4:19138","5.9.155.4:19192","5.9.155.4:19145","5.9.155.4:19146"] as $cfg) {
             
    $r explode(":",$cfg,2);
             if (!isset(
    $r[1])) $r[1] = 19132;
             list(
    $host,$port) = $r;
             
    $this->launchQuery($host,$port);
           }
  2. Radix
    Offline

    Radix Active Member

    Joined:
    Jul 2, 2015
    Posts:
    211
    Minecraft User:
    Dicks123
    anybody
  3. Radix
    Offline

    Radix Active Member

    Joined:
    Jul 2, 2015
    Posts:
    211
    Minecraft User:
    Dicks123
    Our any quary?
  4. Gamecrafter
    Offline

    Gamecrafter

    Joined:
    Nov 20, 2014
    Posts:
    978
    Plugins:
    9
    Learn PHP. Period.
    Legoboy0215 likes this.

Share This Page

Advertisement