From bbeec231eccf3c90d7a143d23f07b0178a63a7d4 Mon Sep 17 00:00:00 2001 From: Acrobot Date: Sun, 16 Sep 2012 11:53:38 +0200 Subject: [PATCH] Added '-' to the supported name character list --- com/Acrobot/ChestShop/Signs/ChestShopSign.java | 6 +++--- plugin.yml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/com/Acrobot/ChestShop/Signs/ChestShopSign.java b/com/Acrobot/ChestShop/Signs/ChestShopSign.java index 89a35e1..cbef443 100644 --- a/com/Acrobot/ChestShop/Signs/ChestShopSign.java +++ b/com/Acrobot/ChestShop/Signs/ChestShopSign.java @@ -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) { diff --git a/plugin.yml b/plugin.yml index 42a34f6..4e04bef 100644 --- a/plugin.yml +++ b/plugin.yml @@ -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/