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