summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKHobbits <rob@khobbits.co.uk>2013-04-01 05:23:04 +0100
committerKHobbits <rob@khobbits.co.uk>2013-04-01 05:23:04 +0100
commit9d1f25c45530d142fe61d6ea4147fa6ed4a80206 (patch)
treeb175c3218bcf06fa9a29a399261c6d1b7b5f5338
parent9fe226b79acc7903b05187e9ab14ae21c026f1d5 (diff)
downloadEssentials-9d1f25c45530d142fe61d6ea4147fa6ed4a80206.tar
Essentials-9d1f25c45530d142fe61d6ea4147fa6ed4a80206.tar.gz
Essentials-9d1f25c45530d142fe61d6ea4147fa6ed4a80206.tar.lz
Essentials-9d1f25c45530d142fe61d6ea4147fa6ed4a80206.tar.xz
Essentials-9d1f25c45530d142fe61d6ea4147fa6ed4a80206.zip
Block sign interact if player is dead.
-rw-r--r--Essentials/src/com/earth2me/essentials/signs/EssentialsSign.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/Essentials/src/com/earth2me/essentials/signs/EssentialsSign.java b/Essentials/src/com/earth2me/essentials/signs/EssentialsSign.java
index aeecf5368..55462e6bd 100644
--- a/Essentials/src/com/earth2me/essentials/signs/EssentialsSign.java
+++ b/Essentials/src/com/earth2me/essentials/signs/EssentialsSign.java
@@ -83,8 +83,8 @@ public class EssentialsSign
}
try
{
- return (user.isAuthorized("essentials.signs." + signName.toLowerCase(Locale.ENGLISH) + ".use")
- || user.isAuthorized("essentials.signs.use." + signName.toLowerCase(Locale.ENGLISH)))
+ return (!user.isDead() && (user.isAuthorized("essentials.signs." + signName.toLowerCase(Locale.ENGLISH) + ".use")
+ || user.isAuthorized("essentials.signs.use." + signName.toLowerCase(Locale.ENGLISH))))
&& onSignInteract(sign, user, getUsername(user), ess);
}
catch (ChargeException ex)