diff options
-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) |