diff --git a/src/main/java/com/Acrobot/ChestShop/Listeners/Block/SignCreate.java b/src/main/java/com/Acrobot/ChestShop/Listeners/Block/SignCreate.java index fd7252d..d79d1f3 100644 --- a/src/main/java/com/Acrobot/ChestShop/Listeners/Block/SignCreate.java +++ b/src/main/java/com/Acrobot/ChestShop/Listeners/Block/SignCreate.java @@ -5,6 +5,7 @@ import com.Acrobot.Breeze.Utils.StringUtil; import com.Acrobot.ChestShop.ChestShop; import com.Acrobot.ChestShop.Events.PreShopCreationEvent; import com.Acrobot.ChestShop.Events.ShopCreatedEvent; +import com.Acrobot.ChestShop.Listeners.Block.Break.SignBreak; import com.Acrobot.ChestShop.Signs.ChestShopSign; import com.Acrobot.ChestShop.UUIDs.NameManager; import com.Acrobot.ChestShop.Utils.uBlock; @@ -41,6 +42,10 @@ public class SignCreate implements Listener { String[] lines = StringUtil.stripColourCodes(event.getLines()); if (!ChestShopSign.isValidPreparedSign(lines)) { + // Check if a valid shop already existed previously + if (ChestShopSign.isValid(sign)) { + SignBreak.sendShopDestroyedEvent(sign, event.getPlayer()); + } return; }