mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 08:44:01 +00:00
Added commands to whitelist
This commit is contained in:
parent
82a789687c
commit
f7de979de1
@ -34,6 +34,8 @@ class ChatAPI{
|
||||
public function init(){
|
||||
$this->server->api->console->register("tell", "Sends a private message to a player", array($this, "commandHandler"));
|
||||
$this->server->api->console->register("me", "Broadcast an action", array($this, "commandHandler"));
|
||||
$this->server->api->ban->cmdWhitelist("tell");
|
||||
$this->server->api->ban->cmdWhitelist("me");
|
||||
}
|
||||
|
||||
public function commandHandler($cmd, $params, $issuer, $alias){
|
||||
|
@ -41,6 +41,8 @@ class PlayerAPI{
|
||||
$this->server->api->console->register("tp", "Teleports a player to another player", array($this, "commandHandler"));
|
||||
$this->server->api->console->register("lag", "Measure your connection lag", array($this, "commandHandler"));
|
||||
$this->server->api->console->alias("suicide", "kill");
|
||||
$this->server->api->ban->cmdWhitelist("list");
|
||||
$this->server->api->ban->cmdWhitelist("lag");
|
||||
}
|
||||
|
||||
public function handle($data, $event){
|
||||
|
Loading…
x
Reference in New Issue
Block a user