Skip to content

Commit

Permalink
Deal with unlocking of double-chests
Browse files Browse the repository at this point in the history
  • Loading branch information
Brianetta committed Nov 30, 2014
1 parent c1598c2 commit b522baf
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ public void onPlayerInteract(PlayerInteractEvent event) {
if (protection.getOwner().equals(player.getUniqueId()) || player.hasPermission("stickylocks.locksmith")) {
stickylocks.sendMessage(player, "Unlocking...", true);
db.unlockBlock(target);
if (Util.getOtherHalfOfChest(target) != null) {
db.unlockBlock(Util.getOtherHalfOfChest(target));
}
} else {
stickylocks.sendMessage(player, "You do not own this object", false);
}
Expand Down

0 comments on commit b522baf

Please sign in to comment.