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
|
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:
|
||||||
|
@ -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)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user