mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2025-01-16 20:41:20 +01:00
Dead people are ignored by the godmode check
This commit is contained in:
parent
de16694698
commit
70d5bc48f2
@ -3,7 +3,7 @@ name: NoCheat
|
||||
author: Evenprime
|
||||
|
||||
main: cc.co.evenprime.bukkit.nocheat.NoCheat
|
||||
version: 2.14
|
||||
version: 2.14a
|
||||
|
||||
commands:
|
||||
nocheat:
|
||||
|
@ -21,8 +21,8 @@ public class TimedCheck {
|
||||
|
||||
public void check(Player player, int tickTime, ConfigurationCache cc) {
|
||||
|
||||
// server lag(ged), skip this
|
||||
if(plugin.skipCheck())
|
||||
// server lag(ged), skip this, or player dead, therefore it's reasonable for him to not move :)
|
||||
if(plugin.skipCheck() || player.isDead())
|
||||
return;
|
||||
|
||||
if(cc.timed.godmodeCheck && !player.hasPermission(Permissions.TIMED_GODMODE)) {
|
||||
|
Loading…
Reference in New Issue
Block a user