From 4d311862b81591a3ff6cd0fe92489414e13d22d7 Mon Sep 17 00:00:00 2001 From: Pepich Date: Tue, 7 Feb 2017 20:35:46 +0100 Subject: [PATCH] Fixed missing permission check --- src/com/redstoner/modules/adminchat/Adminchat.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/com/redstoner/modules/adminchat/Adminchat.java b/src/com/redstoner/modules/adminchat/Adminchat.java index ee374fd..b179752 100644 --- a/src/com/redstoner/modules/adminchat/Adminchat.java +++ b/src/com/redstoner/modules/adminchat/Adminchat.java @@ -24,7 +24,7 @@ import com.redstoner.modules.Module; * * @author Pepich */ @AutoRegisterListener -@Version(major = 1, minor = 0, revision = 5, compatible = 1) +@Version(major = 1, minor = 0, revision = 6, compatible = 1) public class Adminchat implements Module, Listener { private static final char defaultKey = ','; @@ -182,6 +182,8 @@ public class Adminchat implements Module, Listener public void onPlayerChat(AsyncPlayerChatEvent event) { Player player = event.getPlayer(); + if (!player.hasPermission("utils.ac")) + return; if (event.getMessage().startsWith(getKey(player))) { event.setCancelled(true);