summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKHobbits <rob@khobbits.co.uk>2012-09-24 22:43:27 +0100
committerKHobbits <rob@khobbits.co.uk>2012-09-24 23:01:58 +0100
commit14777ed3824f2e942092b94d1a7c8caf7c6b161a (patch)
treeb71a3c4daed52d8da0730ccb94b7b72334e5ace5
parenta3f4637dd6b36eb97d48626b4c7da948d708e9a4 (diff)
downloadEssentials-14777ed3824f2e942092b94d1a7c8caf7c6b161a.tar
Essentials-14777ed3824f2e942092b94d1a7c8caf7c6b161a.tar.gz
Essentials-14777ed3824f2e942092b94d1a7c8caf7c6b161a.tar.lz
Essentials-14777ed3824f2e942092b94d1a7c8caf7c6b161a.tar.xz
Essentials-14777ed3824f2e942092b94d1a7c8caf7c6b161a.zip
Improve fake sign check.
-rw-r--r--Essentials/src/com/earth2me/essentials/signs/SignBlockListener.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/Essentials/src/com/earth2me/essentials/signs/SignBlockListener.java b/Essentials/src/com/earth2me/essentials/signs/SignBlockListener.java
index 9b9a69c43..517c313cc 100644
--- a/Essentials/src/com/earth2me/essentials/signs/SignBlockListener.java
+++ b/Essentials/src/com/earth2me/essentials/signs/SignBlockListener.java
@@ -88,6 +88,16 @@ public class SignBlockListener implements Listener
{
event.setLine(i, Util.formatString(user, "essentials.signs", event.getLine(i)));
}
+
+ final String topLine = event.getLine(0);
+ for (Signs signs : Signs.values())
+ {
+ final EssentialsSign sign = signs.getSign();
+ if (topLine.equalsIgnoreCase(sign.getSuccessName()))
+ {
+ event.setLine(0, Util.stripFormat(topLine));
+ }
+ }
}
@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)