Add developer mode, other small fixes

This commit is contained in:
h31ix committed 2013-03-28 22:21:21 -04:00
1 parent cb1959d2c0
commit 8d13e964ae
6 files changed
+39 -17

No files matched your search

@@ -274,9 +274,10 @@ public class Backend {
nofallViolation.put(name, nofallViolation.get(player.getName()) + 1);
}
if (nofallViolation.get(name) >= magic.NOFALL_LIMIT) {
int i = nofallViolation.get(name);
if (i >= magic.NOFALL_LIMIT) {
nofallViolation.put(player.getName(), 1);
return new CheckResult(Result.FAILED, player.getName()+" tried to avoid fall damage (fall distance = 0 "+nofallViolation.get(name)+" times in a row, max=+"+magic.NOFALL_LIMIT+")");
return new CheckResult(Result.FAILED, player.getName()+" tried to avoid fall damage (fall distance = 0 "+i+" times in a row, max="+magic.NOFALL_LIMIT+")");
} else {
return PASS;
}