mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-04 00:59:51 +00:00
Fixed /difficulty
This commit is contained in:
parent
3374bbcc9e
commit
d26d657b95
@ -97,7 +97,7 @@ class ConsoleAPI{
|
||||
break;
|
||||
case "difficulty":
|
||||
$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";
|
||||
break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user