mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
/give command
This commit is contained in:
parent
f23c2f894d
commit
f0393f9b93
2 changed files with 35 additions and 10 deletions
|
|
@ -33,7 +33,6 @@ class EntityAPI{
|
|||
|
||||
public function init(){
|
||||
$this->server->addHandler("player.death", array($this, "handle"), 1);
|
||||
$this->server->api->console->register("give", "Give items to a player [DUMMY]", array($this, "commandHandler"));
|
||||
}
|
||||
|
||||
public function handle($data, $event){
|
||||
|
|
@ -61,15 +60,6 @@ class EntityAPI{
|
|||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
public function commandHandler($cmd, $params){
|
||||
switch($cmd){
|
||||
case "give":
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public function get($eid){
|
||||
if(isset($this->server->entities[$eid])){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue