Merge remote-tracking branch 'origin/master'

Former-commit-id: 136b5b3dd115f8766ca8a9e101ae554bcaf71137
This commit is contained in:
Ghost_chu committed 2020-04-02 08:39:01 +08:00
commit 7f04c33cbe
2 files changed
+6 -4

No files matched your search

@@ -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);
}
}
}