mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
project uses tabs instead of spaces(as in CONTRIBUTING.md)
This commit is contained in:
parent
f00318b6ed
commit
62571f26cd
115 changed files with 2291 additions and 2364 deletions
|
|
@ -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")){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue