summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKHobbits <rob@khobbits.co.uk>2013-06-08 21:06:33 +0100
committerKHobbits <rob@khobbits.co.uk>2013-06-08 21:06:33 +0100
commita7b62c65b8f6560229f97090d1a5a057914c59bf (patch)
tree79376b8b8752e97f4ac0bb732f1cea89fc66da01
parentf48ed6988d27e053d0f94b2887c8199d87c3e086 (diff)
downloadEssentials-a7b62c65b8f6560229f97090d1a5a057914c59bf.tar
Essentials-a7b62c65b8f6560229f97090d1a5a057914c59bf.tar.gz
Essentials-a7b62c65b8f6560229f97090d1a5a057914c59bf.tar.lz
Essentials-a7b62c65b8f6560229f97090d1a5a057914c59bf.tar.xz
Essentials-a7b62c65b8f6560229f97090d1a5a057914c59bf.zip
Teleport invulnerability should trigger on respawn as well as normal teleport.
-rw-r--r--Essentials/src/com/earth2me/essentials/EssentialsPlayerListener.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/Essentials/src/com/earth2me/essentials/EssentialsPlayerListener.java b/Essentials/src/com/earth2me/essentials/EssentialsPlayerListener.java
index 047ab1886..e4255572b 100644
--- a/Essentials/src/com/earth2me/essentials/EssentialsPlayerListener.java
+++ b/Essentials/src/com/earth2me/essentials/EssentialsPlayerListener.java
@@ -49,6 +49,11 @@ public class EssentialsPlayerListener implements Listener
final User user = ess.getUser(event.getPlayer());
updateCompass(user);
user.setDisplayNick();
+
+ if (ess.getSettings().isTeleportInvulnerability())
+ {
+ user.enableInvulnerabilityAfterTeleport();
+ }
}
@EventHandler(priority = EventPriority.LOWEST)