mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Map saving, breaking blocks. Huge rewrite
This commit is contained in:
parent
72c4cc7a30
commit
3a2010696f
15 changed files with 423 additions and 484 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue