mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 12:09:43 +00:00
$server global
This commit is contained in:
parent
549ad5eff1
commit
251859921d
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue