From 5c258c03dc62a8823a8f10c7666d6e90b71def7b Mon Sep 17 00:00:00 2001 From: Wundark Date: Mon, 6 Jun 2011 17:17:53 +0800 Subject: [PATCH] Added [Time] Sign --- .../com/earth2me/essentials/EssentialsBlockListener.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Essentials/src/com/earth2me/essentials/EssentialsBlockListener.java b/Essentials/src/com/earth2me/essentials/EssentialsBlockListener.java index 8069d8f83..d6ed3e3f0 100644 --- a/Essentials/src/com/earth2me/essentials/EssentialsBlockListener.java +++ b/Essentials/src/com/earth2me/essentials/EssentialsBlockListener.java @@ -156,6 +156,14 @@ public class EssentialsBlockListener extends BlockListener } return; } + if (event.getLine(0).equalsIgnoreCase("[Time]")) + { + if (user.isAuthorized("essentials.signs.time.create")) + event.setLine(0, "§1[Time]"); + else + event.setLine(0, "§4[Time]"); + return; + } } catch (Throwable ex) {