mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2025-07-02 12:56:40 +00:00
Removed some things
This commit is contained in:
@ -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())
|
||||
{
|
||||
|
Reference in New Issue
Block a user