From 9ef0ea629c57b148d815b93a455f9817ce512960 Mon Sep 17 00:00:00 2001 From: Shaun Bennett Date: Wed, 17 Dec 2014 20:07:39 -0600 Subject: [PATCH] Added changes from master to Chat --- Plugins/Mineplex.Core/src/mineplex/core/chat/Chat.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Plugins/Mineplex.Core/src/mineplex/core/chat/Chat.java b/Plugins/Mineplex.Core/src/mineplex/core/chat/Chat.java index 53818bad0..21943834d 100644 --- a/Plugins/Mineplex.Core/src/mineplex/core/chat/Chat.java +++ b/Plugins/Mineplex.Core/src/mineplex/core/chat/Chat.java @@ -305,7 +305,8 @@ public class Chat extends MiniPlugin event.setCancelled(true); return; } - else if (!Recharge.Instance.use(sender, "Chat Message", 500, false, false)) + else if (!_clientManager.Get(sender).GetRank().Has(Rank.MODERATOR) && + !Recharge.Instance.use(sender, "Chat Message", 500, false, false)) { UtilPlayer.message(sender, F.main("Chat", "You are sending messages too fast.")); event.setCancelled(true); @@ -320,7 +321,8 @@ public class Chat extends MiniPlugin UtilPlayer.message(sender, F.main("Chat", "Chat slow enabled. Please wait " + F.time(UtilTime.convertString(chatSlowTime - timeDiff, 1, UtilTime.TimeUnit.FIT)))); event.setCancelled(true); } - else if (lastMessage.getMessage().equalsIgnoreCase(event.getMessage())) + else if (!_clientManager.Get(sender).GetRank().Has(Rank.MODERATOR) && + lastMessage.getMessage().equalsIgnoreCase(event.getMessage())) { UtilPlayer.message(sender, F.main("Chat", "You can't repeat the same message.")); event.setCancelled(true);