Former-commit-id: 5de370d20a91ba1a0a0bae036b3e19b553fc3bfb
This commit is contained in:
Ghost_chu committed 2018-09-22 21:04:27 +08:00
1 parent 5f19d92c6e
commit 851f25de7e
1 file changed
+2 -2
@@ -61,8 +61,8 @@ public class PlayerListener implements Listener {
Block b = e.getClickedBlock();
if (!Util.canBeShop(b) && b.getType() != Material.WALL_SIGN)
return;
if(b.getState() instanceof Sign || b instanceof WallSign) {
Sign sign = (Sign)b;
if(b.getState() instanceof Sign) {
Sign sign = (Sign)b.getState();
if(sign.getLine(0).equals(plugin.getConfig().getString("lockette.private"))||sign.getLine(0).equals(plugin.getConfig().getString("lockette.more_users"))){
//Ignore break lockette sign
plugin.getLogger().info("Skipped a dead-lock shop sign.(Lockette)");