From b40f1068d38e5a8b52093efad028a3d50db2bb93 Mon Sep 17 00:00:00 2001 From: Kiran Hart Date: Mon, 27 Mar 2023 18:20:28 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=8F=B7=EF=B8=8F=20auctionhouse.useauction?= =?UTF-8?q?chest=20permission=20for=20chest=20usage?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Took 1 minute --- .../java/ca/tweetzy/auctionhouse/listeners/PlayerListeners.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/ca/tweetzy/auctionhouse/listeners/PlayerListeners.java b/src/main/java/ca/tweetzy/auctionhouse/listeners/PlayerListeners.java index 9abb2f7..f8b1e71 100644 --- a/src/main/java/ca/tweetzy/auctionhouse/listeners/PlayerListeners.java +++ b/src/main/java/ca/tweetzy/auctionhouse/listeners/PlayerListeners.java @@ -147,6 +147,8 @@ public class PlayerListeners implements Listener { return; } + if (!player.hasPermission("auctionhouse.useauctionchest")) return; + instance.getGuiManager().showGUI(player, new GUIAuctionHouse(instance.getAuctionPlayerManager().getPlayer(player.getUniqueId()))); } }