mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 10:22:56 +00:00
Map saving, breaking blocks. Huge rewrite
This commit is contained in:
@ -31,11 +31,14 @@ class ConsoleAPI{
|
||||
$this->help = array();
|
||||
$this->server = $server;
|
||||
$this->input = fopen(FILE_PATH."console.in", "w+b");
|
||||
}
|
||||
|
||||
public function init(){
|
||||
$this->event = $this->server->event("onTick", array($this, "handle"));
|
||||
}
|
||||
|
||||
function __destroy(){
|
||||
$this->server->deleteEvent("onTick", $this->event);
|
||||
$this->server->deleteEvent($this->event);
|
||||
fclose($this->input);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user