mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 20:49:43 +00:00
Typo
This commit is contained in:
parent
e7d56a837f
commit
32df30448b
2 changed files with 8 additions and 1 deletions
|
|
@ -60,6 +60,13 @@ class BanAPI{
|
||||||
}
|
}
|
||||||
|
|
||||||
public function opCheck($data, $event){
|
public function opCheck($data, $event){
|
||||||
|
$whitelist = array(
|
||||||
|
"help",
|
||||||
|
);
|
||||||
|
if(in_array($data["cmd"], $whitelist, true)){
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
if($data["issuer"] instanceof Player){
|
if($data["issuer"] instanceof Player){
|
||||||
if($this->isOp($data["issuer"]->username)){
|
if($this->isOp($data["issuer"]->username)){
|
||||||
return true;
|
return true;
|
||||||
|
|
|
||||||
|
|
@ -128,7 +128,7 @@ class ConsoleAPI{
|
||||||
$output .= "/gamemode: Changes default gamemode\n";
|
$output .= "/gamemode: Changes default gamemode\n";
|
||||||
$output .= "/difficulty: Changes difficulty\n";
|
$output .= "/difficulty: Changes difficulty\n";
|
||||||
$output .= "/invisible: Manages server visibility\n";
|
$output .= "/invisible: Manages server visibility\n";
|
||||||
$output .= "/say: Broadcasts mesagesv";
|
$output .= "/say: Broadcasts mesages\n";
|
||||||
$output .= "/save-all: Saves pending changes\n";
|
$output .= "/save-all: Saves pending changes\n";
|
||||||
$output .= "/stop: Stops the server\n";
|
$output .= "/stop: Stops the server\n";
|
||||||
foreach($this->help as $c => $h){
|
foreach($this->help as $c => $h){
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue