diff --git a/MCGalaxy/Chat/ChatModes.cs b/MCGalaxy/Chat/ChatModes.cs index ed51f0900..43ba75ee4 100644 --- a/MCGalaxy/Chat/ChatModes.cs +++ b/MCGalaxy/Chat/ChatModes.cs @@ -14,6 +14,7 @@ permissions and limitations under the Licenses. */ using System; using MCGalaxy.Commands; +using MCGalaxy.Commands.Chatting; namespace MCGalaxy { public static class ChatModes { @@ -62,11 +63,13 @@ namespace MCGalaxy { public static void MessageOps(Player p, string message) { LevelPermission rank = CommandExtraPerms.MinPerm("opchat", LevelPermission.Operator); + if (!MessageCmd.CanSpeak(p, "opchat")) return; MessageStaff(p, message, rank, "Ops"); } public static void MessageAdmins(Player p, string message) { LevelPermission rank = CommandExtraPerms.MinPerm("adminchat", LevelPermission.Admin); + if (!MessageCmd.CanSpeak(p, "adminchat")) return; MessageStaff(p, message, rank, "Admins"); }