Added check if the user has the QoLAudit perm.
parent
18e36727f2
commit
0f47791795
|
@ -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()));
|
||||||
|
|
Loading…
Reference in New Issue