Re-add ability to quickly create buy shops by only specifying price

The change to the more advanced patterns required it to always specify B
This commit is contained in:
Phoenix616 2021-02-24 15:01:10 +01:00
parent 3ec68dcd50
commit 68c9df2078
No known key found for this signature in database
GPG Key ID: 40E2321E71738EB0

View File

@ -37,6 +37,7 @@ public class ChestShopSign {
{ Pattern.compile("^?[\\w \\-.:]*$") }, { Pattern.compile("^?[\\w \\-.:]*$") },
{ Pattern.compile("^[1-9][0-9]{0,5}$"), Pattern.compile("^Q [1-9][0-9]{0,4} : C [0-9]{0,5}$") }, { Pattern.compile("^[1-9][0-9]{0,5}$"), Pattern.compile("^Q [1-9][0-9]{0,4} : C [0-9]{0,5}$") },
{ {
Pattern.compile("(?i)^((\\d*([.e]\\d+)?)|free)$"),
Pattern.compile("(?i)^([BS] *((\\d*([.e]\\d+)?)|free))( *: *([BS] *((\\d*([.e]\\d+)?)|free)))?$"), Pattern.compile("(?i)^([BS] *((\\d*([.e]\\d+)?)|free))( *: *([BS] *((\\d*([.e]\\d+)?)|free)))?$"),
Pattern.compile("(?i)^(((\\d*([.e]\\d+)?)|free) *[BS])( *: *([BS] *((\\d*([.e]\\d+)?)|free)))?$"), Pattern.compile("(?i)^(((\\d*([.e]\\d+)?)|free) *[BS])( *: *([BS] *((\\d*([.e]\\d+)?)|free)))?$"),
Pattern.compile("(?i)^(((\\d*([.e]\\d+)?)|free) *[BS]) *: *(((\\d*([.e]\\d+)?)|free) *[BS])$"), Pattern.compile("(?i)^(((\\d*([.e]\\d+)?)|free) *[BS]) *: *(((\\d*([.e]\\d+)?)|free) *[BS])$"),