From 5c15eec17cd1a090a538a7a398fbde94e95d6670 Mon Sep 17 00:00:00 2001 From: Joey Hines Date: Mon, 15 Oct 2018 21:32:13 -0500 Subject: [PATCH] Updated docs and changed spec dynmap hide perm to SafeSpectate.spectate --- docs/source/changelog/v1.4.rst | 2 +- docs/source/commands.rst | 2 +- .../xyz/etztech/qol/listeners/CommandPreprocessListener.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/source/changelog/v1.4.rst b/docs/source/changelog/v1.4.rst index f317295..77b5271 100644 --- a/docs/source/changelog/v1.4.rst +++ b/docs/source/changelog/v1.4.rst @@ -7,7 +7,7 @@ QoL v1.4 Additions --------- -* `Death Mute Command`_ - ``/dm `` mutes death messages from a player until a sever restart. +* `Death Mute Command`_ - ``/deathmute `` mutes death messages from a player until a sever restart. * `24 Karat Trophy Command`_ ``/karattrophy `` awards the player the 24 Karat Trophy advancement. * `Spec-Dynmap Message`_ - A message is now displayed when the user is hidden on Dynmap after using /spec. diff --git a/docs/source/commands.rst b/docs/source/commands.rst index 3f66da8..6654170 100644 --- a/docs/source/commands.rst +++ b/docs/source/commands.rst @@ -39,6 +39,6 @@ Alias ``/names`` and ``/name`` ``/karattrophy `` awards the player the 24 Karat Trophy Advancement. -``/dm `` mutes death messages from a player until a sever restart. +``/deathmute `` mutes death messages from a player until a sever restart. diff --git a/src/main/java/xyz/etztech/qol/listeners/CommandPreprocessListener.java b/src/main/java/xyz/etztech/qol/listeners/CommandPreprocessListener.java index 05f4c47..7cc97bd 100644 --- a/src/main/java/xyz/etztech/qol/listeners/CommandPreprocessListener.java +++ b/src/main/java/xyz/etztech/qol/listeners/CommandPreprocessListener.java @@ -52,7 +52,7 @@ public class CommandPreprocessListener implements Listener { DynmapAPI dynmap = (DynmapAPI) plugin.getDynmap(); // Spec dynmap hide - if (base.equals("spec") && sender.hasPermission("safespectate.spectate") && dynmap != null) { + if (base.equals("spec") && sender.hasPermission("SafeSpectate.spectate") && dynmap != null) { String message; boolean visibleStatus; if (sender.getGameMode() != GameMode.SPECTATOR){