mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 08:17:34 +00:00
$server global
This commit is contained in:
parent
549ad5eff1
commit
251859921d
@ -17,11 +17,11 @@
|
||||
$this->assertTrue(Utils::readLong("\x41\x02\x03\x04\x05\x06\x07\x08") === "4684309878217770760", "Utils::readLong");
|
||||
|
||||
//PocketMine-MP server startup
|
||||
global $server;
|
||||
$server = new ServerAPI();
|
||||
$server->load();
|
||||
$this->assertTrue(is_integer($server->event("server.start", array($this, "hook"))));
|
||||
$server->init();
|
||||
exit(0);
|
||||
}
|
||||
|
||||
public function hook(){
|
||||
|
Loading…
x
Reference in New Issue
Block a user