[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
This commit is contained in:
snowleo 2011-04-16 16:24:45 +00:00
parent 4824493ced
commit dc663472c2

View File

@ -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;
}