From 499cf5844ca733516b847357eab42edc0e5bc111 Mon Sep 17 00:00:00 2001 From: sandtechnology <20417547+sandtechnology@users.noreply.github.com> Date: Wed, 1 Apr 2020 22:39:58 +0800 Subject: [PATCH 1/2] Allow Shop owner break the shop sign(for sign replacement) Former-commit-id: 64c142b36df4b587b48934dec76910139b9a5e8d --- .../org/maxgamer/quickshop/Listeners/BlockListener.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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); + } } } From f9492c75953637ec34e4d78045398b648fa18816 Mon Sep 17 00:00:00 2001 From: sandtechnology <20417547+sandtechnology@users.noreply.github.com> Date: Wed, 1 Apr 2020 22:49:12 +0800 Subject: [PATCH 2/2] Add more info for contributing Former-commit-id: c91a98c7887e7c22fd63931fa076792000f3e272 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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