From 0f477917959927f367a339237d821a1a28d69858 Mon Sep 17 00:00:00 2001 From: Joey Hines Date: Sun, 23 Sep 2018 16:20:08 -0500 Subject: [PATCH] Added check if the user has the QoLAudit perm. --- .../xyz/etztech/qol/listeners/CommandPreprocessListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/xyz/etztech/qol/listeners/CommandPreprocessListener.java b/src/main/java/xyz/etztech/qol/listeners/CommandPreprocessListener.java index ae379f7..c405c5a 100644 --- a/src/main/java/xyz/etztech/qol/listeners/CommandPreprocessListener.java +++ b/src/main/java/xyz/etztech/qol/listeners/CommandPreprocessListener.java @@ -43,7 +43,7 @@ public class CommandPreprocessListener implements Listener { Player sender = event.getPlayer(); // Spec dynmap hide - if (base.equals("spec") && this.dynmap != null) { + if (base.equals("spec") && this.dynmap != null && sender.hasPermission("qol.audit")) { boolean visibleStatus; if (sender.getGameMode() != GameMode.SPECTATOR){ dynmapVisibleStatusMap.put(sender.getUniqueId(), dynmap.getPlayerVisbility(sender.getDisplayName()));