mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-14 15:35:31 +00:00
Changed automatic init to manual startup
This commit is contained in:
parent
ff4970578a
commit
56fdc87e9b
@ -22,8 +22,9 @@ class ServerSuiteTest extends PHPUnit_Framework_TestCase{
|
|||||||
|
|
||||||
//PocketMine-MP server startup
|
//PocketMine-MP server startup
|
||||||
$this->server = new ServerAPI();
|
$this->server = new ServerAPI();
|
||||||
|
$this->server->load();
|
||||||
$this->assertTrue(is_integer($this->server->event("server.start", array($this, "hook"))));
|
$this->assertTrue(is_integer($this->server->event("server.start", array($this, "hook"))));
|
||||||
$this->server->start();
|
$this->server->init();
|
||||||
|
|
||||||
kill(getmypid()); //Fix for ConsoleAPI being blocked
|
kill(getmypid()); //Fix for ConsoleAPI being blocked
|
||||||
exit(0);
|
exit(0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user