mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Rewrite /defaultgamemode command to allow multiple values
This commit is contained in:
parent
d0d8d281d2
commit
269e63ab50
2 changed files with 24 additions and 24 deletions
|
|
@ -146,7 +146,7 @@ class PlayerAPI{
|
|||
$player = $this->server->api->player->get($params[1]);
|
||||
}
|
||||
if(!($player instanceof Player) or !isset($gms[strtolower($params[0])])){
|
||||
$output .= "Usage: /$cmd <survival | creative | adventure> [player]\n";
|
||||
$output .= "Usage: /$cmd <mode> [player]\n";
|
||||
break;
|
||||
}
|
||||
if($player->setGamemode($gms[strtolower($params[0])])){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue