From 7a6a0ec775b2fcc690ca522654f77518d3869f49 Mon Sep 17 00:00:00 2001 From: ceulemansl Date: Sat, 2 Apr 2011 23:21:28 +0000 Subject: [Warp] signes. Format: [Warp] warp-name Free/group/empty(then need permission to use) git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1093 e251c2fe-e539-e718-e476-b85c1f46cddb --- .../earth2me/essentials/EssentialsBlockListener.java | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/Essentials/src/com/earth2me/essentials/EssentialsBlockListener.java b/Essentials/src/com/earth2me/essentials/EssentialsBlockListener.java index 3462f9d79..d2e0cf3fa 100644 --- a/Essentials/src/com/earth2me/essentials/EssentialsBlockListener.java +++ b/Essentials/src/com/earth2me/essentials/EssentialsBlockListener.java @@ -117,6 +117,26 @@ public class EssentialsBlockListener extends BlockListener event.setLine(0, "§4[Balance]"); return; } + if (event.getLine(0).equalsIgnoreCase("[Warp]")) + { + if (user.isAuthorized("essentials.signs.warp.create")) + if (event.getLine(1).isEmpty()) + { + event.setLine(0, "§4[Warp]"); + event.setLine(1, "§dWarp name here!"); + return; + } else + { + event.setLine(0, "§1[Warp]"); + return; + } + if (event.getLine(2).equalsIgnoreCase("Free")) + event.setLine(2, "§2Free"); + + else + event.setLine(0, "§4[Warp]"); + return; + } } catch (Throwable ex) { -- cgit v1.2.3