diff --git a/src/main/java/com/Acrobot/ChestShop/Listeners/PreShopCreation/PriceChecker.java b/src/main/java/com/Acrobot/ChestShop/Listeners/PreShopCreation/PriceChecker.java index f73d9f2..4277d57 100644 --- a/src/main/java/com/Acrobot/ChestShop/Listeners/PreShopCreation/PriceChecker.java +++ b/src/main/java/com/Acrobot/ChestShop/Listeners/PreShopCreation/PriceChecker.java @@ -25,6 +25,11 @@ public class PriceChecker implements Listener { part = new String[]{line}; } + if (part[0].split(" ").length > 2) { + event.setOutcome(INVALID_PRICE); + return; + } + if (isPrice(part[0])) { line = "B " + line; }