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