Added some code to enable chat above heads

This commit is contained in:
Lucas Nicodemus 2012-05-27 10:19:52 -06:00
parent ed0756e80c
commit 8bcc24da7e
4 changed files with 36 additions and 1 deletions

View file

@ -801,12 +801,16 @@ namespace TShockAPI
Log.Error(ex.ToString());
}
}
else if (!tsplr.mute)
else if (!tsplr.mute && !TShock.Config.EnableChatAboveHeads)
{
Utils.Broadcast(
String.Format(Config.ChatFormat, tsplr.Group.Name, tsplr.Group.Prefix, tsplr.Name, tsplr.Group.Suffix, text),
tsplr.Group.R, tsplr.Group.G, tsplr.Group.B);
e.Handled = true;
} else if (!tsplr.mute && TShock.Config.EnableChatAboveHeads)
{
Utils.Broadcast(ply, text, tsplr.Group.R, tsplr.Group.G, tsplr.Group.B);
e.Handled = true;
}
else if (tsplr.mute)
{