Skip to content

Commit

Permalink
Limit item count on signs to 99999
Browse files Browse the repository at this point in the history
  • Loading branch information
Brokkonaut committed Jul 7, 2020
1 parent 50b1c05 commit e3e2db1
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -19,7 +19,7 @@ public class ChestShopSign {
public static final byte PRICE_LINE = 2;
public static final byte ITEM_LINE = 3;

public static final Pattern[] SHOP_SIGN_PATTERN = { Pattern.compile("^?[\\w -.]*$"), Pattern.compile("^[1-9][0-9]*$"), Pattern.compile("(?i)^[\\d.bs(free) :]+$"), Pattern.compile("^[\\w? #:-]+$") };
public static final Pattern[] SHOP_SIGN_PATTERN = { Pattern.compile("^?[\\w -.]*$"), Pattern.compile("^[1-9][0-9]{0,4}$"), Pattern.compile("(?i)^[\\d.bs(free) :]+$"), Pattern.compile("^[\\w? #:-]+$") };

public static boolean isAdminShop(Inventory ownerInventory) {
return ownerInventory instanceof AdminInventory;
Expand Down

0 comments on commit e3e2db1

Please sign in to comment.