diff --git a/src/main/java/net/flectone/chat/module/autoMessage/AutoMessageModule.java b/src/main/java/net/flectone/chat/module/autoMessage/AutoMessageModule.java index bf08f85..86e52e9 100644 --- a/src/main/java/net/flectone/chat/module/autoMessage/AutoMessageModule.java +++ b/src/main/java/net/flectone/chat/module/autoMessage/AutoMessageModule.java @@ -36,6 +36,7 @@ public void init() { public void send(@NotNull Player player) { FPlayer fPlayer = playerManager.get(player); if (fPlayer == null) return; + if (hasNoPermission(player)) return; String autoMessage = fPlayer.getSettings().getValue(Settings.Type.AUTO_MESSAGE); boolean enabled = autoMessage == null || Integer.parseInt(autoMessage) != -1;