project uses tabs instead of spaces(as in CONTRIBUTING.md)

This commit is contained in:
GameHerobrine 2022-12-26 07:01:28 +03:00
parent f00318b6ed
commit 62571f26cd
115 changed files with 2291 additions and 2364 deletions

View file

@ -25,13 +25,13 @@ class ConsoleAPI{
$this->cmdWhitelist("help");
$this->cmdWhitelist("status");
}
/**
* Whitelists a CMD so everyone can issue it - Even non OPs.
* @param string $cmd Command to Whitelist
*/
public function cmdWhitelist($cmd){
$this->server->api->ban->cmdWhitelist[strtolower(trim($cmd))] = true;
$this->server->api->ban->cmdWhitelist[strtolower(trim($cmd))] = true;
}
public function register($cmd, $help, $callback){
@ -304,11 +304,11 @@ class ConsoleLoop extends Thread{
}
while(!$this->stop){
$this->line = $this->readLine();
$this->synchronized(function($t) {
$this->wait();
$this->line = false;
}, $this);
$this->line = $this->readLine();
$this->synchronized(function($t) {
$this->wait();
$this->line = false;
}, $this);
}
if(!extension_loaded("readline")){