Dead people are ignored by the godmode check

This commit is contained in:
Evenprime 2011-10-26 16:39:00 +02:00
parent de16694698
commit 70d5bc48f2
2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -21,8 +21,8 @@ public class TimedCheck {
public void check(Player player, int tickTime, ConfigurationCache cc) { public void check(Player player, int tickTime, ConfigurationCache cc) {
// server lag(ged), skip this // server lag(ged), skip this, or player dead, therefore it's reasonable for him to not move :)
if(plugin.skipCheck()) if(plugin.skipCheck() || player.isDead())
return; return;
if(cc.timed.godmodeCheck && !player.hasPermission(Permissions.TIMED_GODMODE)) { if(cc.timed.godmodeCheck && !player.hasPermission(Permissions.TIMED_GODMODE)) {