Added check if the user has the QoLAudit perm.

master
Joey Hines 2018-09-23 16:20:08 -05:00
parent 18e36727f2
commit 0f47791795
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ public class CommandPreprocessListener implements Listener {
Player sender = event.getPlayer(); Player sender = event.getPlayer();
// Spec dynmap hide // Spec dynmap hide
if (base.equals("spec") && this.dynmap != null) { if (base.equals("spec") && this.dynmap != null && sender.hasPermission("qol.audit")) {
boolean visibleStatus; boolean visibleStatus;
if (sender.getGameMode() != GameMode.SPECTATOR){ if (sender.getGameMode() != GameMode.SPECTATOR){
dynmapVisibleStatusMap.put(sender.getUniqueId(), dynmap.getPlayerVisbility(sender.getDisplayName())); dynmapVisibleStatusMap.put(sender.getUniqueId(), dynmap.getPlayerVisbility(sender.getDisplayName()));