diff options
author | KHobbits <rob@khobbits.co.uk> | 2013-06-08 21:06:33 +0100 |
---|---|---|
committer | KHobbits <rob@khobbits.co.uk> | 2013-06-08 21:06:33 +0100 |
commit | a7b62c65b8f6560229f97090d1a5a057914c59bf (patch) | |
tree | 79376b8b8752e97f4ac0bb732f1cea89fc66da01 | |
parent | f48ed6988d27e053d0f94b2887c8199d87c3e086 (diff) | |
download | Essentials-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.java | 5 |
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) |