mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 00:07:30 +00:00
Fixed setting the difficulty via command
This commit is contained in:
parent
ce1e95195b
commit
5a168836c5
@ -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…
x
Reference in New Issue
Block a user