mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-22 19:06:35 +00:00
Typo
This commit is contained in:
parent
e7d56a837f
commit
32df30448b
@ -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…
x
Reference in New Issue
Block a user