mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-12-19 15:48:10 +01:00
Fixed /god for the new hMod versions.
This commit is contained in:
parent
a456d67528
commit
aa2bffbd00
@ -1006,6 +1006,10 @@ public boolean onDamage(PluginLoader.DamageType type, BaseEntity attacker,
|
|||||||
if (defender.isPlayer()) {
|
if (defender.isPlayer()) {
|
||||||
Player player = defender.getPlayer();
|
Player player = defender.getPlayer();
|
||||||
|
|
||||||
|
if (invinciblePlayers.contains(player.getName())) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
if (disableFallDamage && type == PluginLoader.DamageType.FALL) {
|
if (disableFallDamage && type == PluginLoader.DamageType.FALL) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user