Fixed /difficulty

This commit is contained in:
Shoghi Cervantes 2013-08-20 01:16:24 +02:00
parent 3374bbcc9e
commit d26d657b95

View File

@ -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;
} }