From 0b92c89ad7a28262e018f8638b07438b54d7ec1a Mon Sep 17 00:00:00 2001 From: snowleo Date: Sun, 3 Apr 2011 12:15:22 +0000 Subject: [PATCH] [trunk] Warp signs Since we can charge for warping now, Free is wrong, changed to Everyone. So if you want everyone to use the sign use either "Everyone" or leave the third line empty. In the latter case per Warp permission may apply, if enabled and the user needs essentials.signs.warp.use permission. git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1098 e251c2fe-e539-e718-e476-b85c1f46cddb --- .../src/com/earth2me/essentials/EssentialsBlockListener.java | 4 ++-- .../src/com/earth2me/essentials/EssentialsPlayerListener.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Essentials/src/com/earth2me/essentials/EssentialsBlockListener.java b/Essentials/src/com/earth2me/essentials/EssentialsBlockListener.java index ac00d5eab..190f0864f 100644 --- a/Essentials/src/com/earth2me/essentials/EssentialsBlockListener.java +++ b/Essentials/src/com/earth2me/essentials/EssentialsBlockListener.java @@ -135,8 +135,8 @@ public class EssentialsBlockListener extends BlockListener return; } else { Essentials.getWarps().getWarp(event.getLine(1)); - if (event.getLine(2).equalsIgnoreCase("Free")) { - event.setLine(2, "§2Free"); + if (event.getLine(2).equalsIgnoreCase("Everyone")) { + event.setLine(2, "§2Everyone"); } event.setLine(0, "§1[Warp]"); } diff --git a/Essentials/src/com/earth2me/essentials/EssentialsPlayerListener.java b/Essentials/src/com/earth2me/essentials/EssentialsPlayerListener.java index 6ffd8aef9..7ae8e24f7 100644 --- a/Essentials/src/com/earth2me/essentials/EssentialsPlayerListener.java +++ b/Essentials/src/com/earth2me/essentials/EssentialsPlayerListener.java @@ -370,7 +370,7 @@ public class EssentialsPlayerListener extends PlayerListener } } if (!sign.getLine(2).isEmpty()) { - if (sign.getLine(2).equals("§2Free")) { + if (sign.getLine(2).equals("§2Everyone")) { user.teleportCooldown(); user.warpTo(sign.getLine(1)); return;