Removed some things

This commit is contained in:
ZeroEpoch1969
2018-04-29 13:06:56 -07:00
parent 34a8e7f912
commit 83017e518d
5 changed files with 2 additions and 38 deletions

View File

@ -90,9 +90,6 @@ public class ChatManager extends FreedomService
return;
}
// Check for mentions
checkMentions(message);
// Finally, set message
event.setMessage(message);
@ -109,28 +106,6 @@ public class ChatManager extends FreedomService
event.setFormat(format);
}
public void checkMentions(String message)
{
checkMentions(message, false);
}
public void checkMentions(String message, boolean adminOnly)
{
for (Player player : server.getOnlinePlayers())
{
// This is so if admins for some reason mention non-admins in admin chat, they won't be notified
if (adminOnly && !plugin.al.isAdmin(player))
{
return;
}
if (ChatColor.stripColor(message).toLowerCase().contains("@" + player.getName().toLowerCase()))
{
player.playSound(player.getLocation(), Sound.BLOCK_NOTE_PLING, SoundCategory.PLAYERS, 100F, 0.9F);
}
}
}
public String getOldPrefix(Displayable display)
{
ChatColor color = display.getColor();
@ -153,7 +128,6 @@ public class ChatManager extends FreedomService
{
Displayable display = plugin.rm.getDisplay(sender);
FLog.info("[ADMIN] " + sender.getName() + " " + display.getTag() + ": " + message);
checkMentions(message, true);
for (Player player : server.getOnlinePlayers())
{