mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-11-15 23:25:21 +01:00
/god mode now at least lets you gain health while it is on.
This commit is contained in:
parent
64629bd878
commit
13cc6736e2
@ -815,7 +815,7 @@ public boolean onHealthChange(Player player, int oldValue, int newValue) {
|
||||
String playerName = player.getName();
|
||||
|
||||
if (invinciblePlayers.contains(playerName)) {
|
||||
return true;
|
||||
return oldValue > newValue;
|
||||
}
|
||||
|
||||
if (loginProtection > 0 || spawnProtection > 0 || kickOnDeath) {
|
||||
|
Loading…
Reference in New Issue
Block a user