Added '-' to the supported name character list

This commit is contained in:
Acrobot 2012-09-16 11:53:38 +02:00
parent a9aa932a6f
commit bbeec231ec
2 changed files with 4 additions and 4 deletions

View File

@ -23,10 +23,10 @@ public class ChestShopSign {
public static final byte ITEM_LINE = 3;
public static final Pattern[] SHOP_SIGN_PATTERN = {
Pattern.compile("^[\\w ]*$"),
Pattern.compile("[0-9]+"),
Pattern.compile("^[\\w -]*$"),
Pattern.compile("^[0-9]+$"),
Pattern.compile("(?i)^[\\d.bs(free) :]+$"),
Pattern.compile("[\\w : -]+")
Pattern.compile("^[\\w : -]+$")
};
public static boolean isAdminShop(Inventory ownerInventory) {

View File

@ -2,7 +2,7 @@ name: ChestShop
main: com.Acrobot.ChestShop.ChestShop
version: 3.50t0011
version: 3.50t0012
#for CButD
dev-url: http://dev.bukkit.org/server-mods/chestshop/