diff options
author | ceulemansl <ceulemansl@e251c2fe-e539-e718-e476-b85c1f46cddb> | 2011-04-02 23:21:28 +0000 |
---|---|---|
committer | ceulemansl <ceulemansl@e251c2fe-e539-e718-e476-b85c1f46cddb> | 2011-04-02 23:21:28 +0000 |
commit | 7a6a0ec775b2fcc690ca522654f77518d3869f49 (patch) | |
tree | 84ac97ecc4de63eb4c3761c10cc185b2d6bdb1d8 | |
parent | 4337b6ecec37febec02b79b71969e6f65caa3743 (diff) | |
download | Essentials-7a6a0ec775b2fcc690ca522654f77518d3869f49.tar Essentials-7a6a0ec775b2fcc690ca522654f77518d3869f49.tar.gz Essentials-7a6a0ec775b2fcc690ca522654f77518d3869f49.tar.lz Essentials-7a6a0ec775b2fcc690ca522654f77518d3869f49.tar.xz Essentials-7a6a0ec775b2fcc690ca522654f77518d3869f49.zip |
[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
-rw-r--r-- | Essentials/src/com/earth2me/essentials/EssentialsBlockListener.java | 20 |
1 files changed, 20 insertions, 0 deletions
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) { |