From dc663472c21d4de68c962704cb1bb9af2a97d448 Mon Sep 17 00:00:00 2001 From: snowleo Date: Sat, 16 Apr 2011 16:24:45 +0000 Subject: [PATCH] [trunk] Protection signs: Last character from group was cut off. git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1231 e251c2fe-e539-e718-e476-b85c1f46cddb --- .../src/com/earth2me/essentials/EssentialsBlockListener.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Essentials/src/com/earth2me/essentials/EssentialsBlockListener.java b/Essentials/src/com/earth2me/essentials/EssentialsBlockListener.java index 77d6561e1..1a7271cff 100644 --- a/Essentials/src/com/earth2me/essentials/EssentialsBlockListener.java +++ b/Essentials/src/com/earth2me/essentials/EssentialsBlockListener.java @@ -2,6 +2,8 @@ package com.earth2me.essentials; import java.util.ArrayList; import java.util.List; +import java.util.logging.Level; +import java.util.logging.Logger; import org.bukkit.*; import org.bukkit.block.*; import org.bukkit.craftbukkit.block.CraftSign; @@ -243,7 +245,7 @@ public class EssentialsBlockListener extends BlockListener for (int i = 1; i <= 2; i++) { String line = sign.getLine(i); if (line.startsWith("(") && line.endsWith(")")) { - line = line.substring(1, line.length() - 2); + line = line.substring(1, line.length() - 1); if (user.inGroup(line)) { return ALLOWED; }