Added config option for Server Full kick reason.

Added config option to display group names in chat
This commit is contained in:
high 2011-08-05 02:02:04 -04:00
parent 2a20af352a
commit 3fcb95f9a4
2 changed files with 16 additions and 2 deletions

View file

@ -406,7 +406,7 @@ namespace TShockAPI
if (Tools.ActivePlayers() + 1 > Config.MaxSlots && !player.Group.HasPermission("reservedslot"))
{
Tools.ForceKick(player, "Server is full");
Tools.ForceKick(player, Config.ServerFullReason);
handler.Handled = true;
return;
}
@ -490,7 +490,7 @@ namespace TShockAPI
}
else
{
Tools.Broadcast("<" + tsplr.Name + "> " + text,
Tools.Broadcast("{2}<{0}> {1}".SFormat(tsplr.Name, text, Config.ChatDisplayGroup ? "[{0}] ".SFormat(tsplr.Group.Name) : ""),
tsplr.Group.R, tsplr.Group.G,
tsplr.Group.B);
//Log.Info(string.Format("{0} said: {1}", tsplr.Name, text));