From fe67537ff03299e4530dab5c03b96209aa93c295 Mon Sep 17 00:00:00 2001 From: Trixkz Date: Thu, 26 Oct 2023 23:20:06 -0400 Subject: [PATCH] Updates --- .../loganmagnan/eventcore/listeners/StaffModeListener.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/com/loganmagnan/eventcore/listeners/StaffModeListener.java b/src/main/java/com/loganmagnan/eventcore/listeners/StaffModeListener.java index 323c07f..ca58176 100644 --- a/src/main/java/com/loganmagnan/eventcore/listeners/StaffModeListener.java +++ b/src/main/java/com/loganmagnan/eventcore/listeners/StaffModeListener.java @@ -39,6 +39,12 @@ public class StaffModeListener implements Listener { playerOnline.hidePlayer(playerVanished); } } + + if (!player.hasPermission("eventcore.command.staffmode")) { + return; + } + + this.main.getStaffManager().setStaffMode(player, true); } @EventHandler