diff --git a/README.md b/README.md index a1f6de024..050fc3d18 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ Github projects have a "releases" link on their home page. If you still don't se - [Relatev](http://www.relatev.com/forum.php?mod=viewthread&tid=2251) ## Contribute -If you're a developer, you can contribute to the QuickShop code! Just make a fork, then make a pull request when you're done! Please try to follow [Google Java Style](https://google.github.io/styleguide/javaguide.html). Also do not increase the plugin version number. Thank you very much! +If you're a developer, you can contribute to the QuickShop code! Just make a fork and install lombok plugin, then make a pull request when you're done! Please try to follow [Google Java Style](https://google.github.io/styleguide/javaguide.html). Also do not increase the plugin version number. Thank you very much! ## Maven ```XML diff --git a/src/main/java/org/maxgamer/quickshop/Listeners/BlockListener.java b/src/main/java/org/maxgamer/quickshop/Listeners/BlockListener.java index 8a9156c67..4f5c75b5b 100644 --- a/src/main/java/org/maxgamer/quickshop/Listeners/BlockListener.java +++ b/src/main/java/org/maxgamer/quickshop/Listeners/BlockListener.java @@ -144,9 +144,11 @@ public class BlockListener extends ProtectionListenerBase implements Listener { MsgUtil.getMessage( "no-creative-break", p, MsgUtil.getItemi18n(Material.GOLDEN_AXE.name()))); } - - Util.debugLog("Cannot break the sign."); - e.setCancelled(true); + //Allow Shop owner break the shop sign(for sign replacement) + if(!p.getUniqueId().equals(shop.getOwner())){ + Util.debugLog("Cannot break the sign."); + e.setCancelled(true); + } } }