botspam addition

This commit is contained in:
Cheese 2015-10-13 23:19:48 +11:00
parent f5b80c941c
commit d105ea5d7e

View File

@ -44,6 +44,10 @@ public class BotSpamManager extends MiniPlugin
// Ignore messages sent to staff members
if (_clientManager.hasRank(recipient, Rank.HELPER))
return;
// Ignore messages sent by staff members
if (_clientManager.hasRank(event.getSender(), Rank.HELPER))
return;
for (SpamText spamText : _spam)
{
@ -59,7 +63,7 @@ public class BotSpamManager extends MiniPlugin
@EventHandler(priority = EventPriority.LOWEST)
public void onChat(AsyncPlayerChatEvent event)
{
// Ignore messages sent to staff members
// Ignore messages sent by staff members
if (_clientManager.hasRank(event.getPlayer(), Rank.HELPER))
return;