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