i use: PHP: $load = Utils::curl_get("http://website/plugin.php");$this->api->plugin->load($load); and this not work!
@Falk So then I need to use Code: $this->api->plugin->load(https://raw.github.com/PocketMine/SimpleAuth/master/SimpleAuth.php); to load (For example) SimpleAuth from web and not from a saved file? or that doesn't work?
@Falk then: Code: $this->api->plugin->load("https://raw.github.com/PocketMine/SimpleAuth/master/SimpleAuth.php");
@Falk How can I get the number of players online? I used Code: $this->api->player->getAll() >= 10 to start a function only if there are 10 or more players on, but it doesn't work, the function also start with 0 players online, any ideas?
Another question: I want to change the value of a variable named $timer, I have this: Code: public function commandHandler($cmd, $params, $issuer, $alias){ $output .= ""; if(!($issuer instanceof Player)){ switch($params[0]){ case "": $output .="Use: /hg set"; break; case "set": $this->tiemer = $params[0]; $output .= "Tiempo cambiado"; break; } } return $output; } it change the value and stop the server, what I need to do? EDIT: I only changed Code: $this->timer = $params[0]; to [1] and now work
is imposible to read online plugins becuz always there will be html code that it wont let load or just if it downloads the plugin may load it
Does this method work with Linux? I know that file_get_contents() doesn't work on Linux for web addresses.