Cancel it if shop owner not is player

Former-commit-id: 7162949edc92d11fe64020633b0b492d9c1bee51 [formerly 6af2967ccc57c58295c06c321f2079ed0daa0848]
Former-commit-id: 2307c55409332641d6f8b233ac58608ae37b9812
This commit is contained in:
Ghost_chu committed 2019-08-24 22:23:46 +08:00
1 parent ba296fae90
commit fc8a31d3b3
1 file changed
+4
@@ -87,6 +87,10 @@ public class BlockListener implements Listener {
e.setCancelled(true);
p.sendMessage(MsgUtil.getMessage("no-permission"));
return;
}else if (!shop.getModerator().isOwner(p.getUniqueId())){
e.setCancelled(true);
p.sendMessage(MsgUtil.getMessage("no-permission"));
return;
}
// Cancel their current menu... Doesnt cancel other's menu's.