mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2025-03-02 10:31:25 +01:00
Godmode check changes to tick counting (more permissive now)
Permission sorting in output of "nocheat permlist" improved (again)
This commit is contained in:
parent
666a52bf73
commit
fa1f7cfc06
@ -3,7 +3,7 @@ name: NoCheat
|
||||
author: Evenprime
|
||||
|
||||
main: cc.co.evenprime.bukkit.nocheat.NoCheat
|
||||
version: 2.15
|
||||
version: 2.15a
|
||||
|
||||
commands:
|
||||
nocheat:
|
||||
|
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user