diff --git a/src/main/java/org/maxgamer/quickshop/QuickShop.java b/src/main/java/org/maxgamer/quickshop/QuickShop.java index 36dfca06e..90fecbd1f 100644 --- a/src/main/java/org/maxgamer/quickshop/QuickShop.java +++ b/src/main/java/org/maxgamer/quickshop/QuickShop.java @@ -164,7 +164,7 @@ public class QuickShop extends JavaPlugin { throw new Exception("Invalid format (main args length must be 3)"); } - String[] matVal = mainVal[0].split("[:]"); + String[] matVal = mainVal[0].split("[*]"); Material material = Material.matchMaterial(matVal[0]); if (material==null) { throw new Exception("Invalid material: "+matVal[0]); diff --git a/src/main/resources/config.yml b/src/main/resources/config.yml index 12b929020..b5c9e8df1 100644 --- a/src/main/resources/config.yml +++ b/src/main/resources/config.yml @@ -94,9 +94,9 @@ blacklist: price-restriction: - Bedrock;100;200 -#Custom names for items. Format: ;; +#Custom names for items. Format: ;; # PotionType: https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/potion/PotionType.html custom-names: - NETHER_STALK;Nether Wart;Nether Wart -- POTION:INVISIBILITY;Invis.Potion;Invisibility Potion +- POTION*INVISIBILITY;Invis.Potion;Invisibility Potion