mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Fixed setting the difficulty via command
This commit is contained in:
parent
ce1e95195b
commit
5a168836c5
1 changed files with 1 additions and 1 deletions
|
|
@ -97,7 +97,7 @@ class ConsoleAPI{
|
|||
break;
|
||||
case "difficulty":
|
||||
$s = trim(array_shift($params));
|
||||
if($s == "" or (((int) $s) !== 0 and ((int) $s) !== 1)){
|
||||
if($s == "" or (((int) $s) <= 3 and ((int) $s) >= 0)){
|
||||
$output .= "Usage: /difficulty <0|1|2|3>\n";
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue