mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Added commands to whitelist
This commit is contained in:
parent
82a789687c
commit
f7de979de1
2 changed files with 4 additions and 0 deletions
|
|
@ -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){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue