Godmode check changes to tick counting (more permissive now)

Permission sorting in output of "nocheat permlist" improved (again)
This commit is contained in:
Evenprime 2011-11-02 19:24:54 +01:00 committed by Evenprime
parent 666a52bf73
commit fa1f7cfc06
3 changed files with 6 additions and 6 deletions

View File

@ -3,7 +3,7 @@ name: NoCheat
author: Evenprime
main: cc.co.evenprime.bukkit.nocheat.NoCheat
version: 2.15
version: 2.15a
commands:
nocheat:

View File

@ -51,13 +51,13 @@ public class TimedCheck {
// difference
data.timed.ticksBehind -= (difference - tickTime);
// Reduce violation level over time
data.timed.godmodeVL *= 0.90D;
data.timed.godmodeVL *= 0.9D;
} else if(difference >= tickTime / 2) {
// close enough, let it pass
data.timed.ticksBehind -= tickTime/2;
// Reduce violation level over time
data.timed.godmodeVL *= 0.95D;
data.timed.godmodeVL *= 0.9D;
} else {
// That's a bit suspicious, why is the player more than half the
// ticktime behind? Keep that in mind

View File

@ -75,11 +75,11 @@ public class CommandHandler {
return 0;
if(name1.startsWith(name2)) {
return -1;
return 1;
}
if(name2.startsWith(name1)) {
return 1;
return -1;
}
return name1.compareTo(name2);