diff --git a/TShockAPI/ConfigFile.cs b/TShockAPI/ConfigFile.cs
index c48d88d3..31f3b031 100644
--- a/TShockAPI/ConfigFile.cs
+++ b/TShockAPI/ConfigFile.cs
@@ -94,6 +94,7 @@ namespace TShockAPI
public string HardcoreBanReason = "Death results in a ban";
public string HardcoreKickReason = "Death results in a kick";
public string ProjectileAbuseReason = "Projectile abuse";
+
public bool EnableDNSHostResolution;
@@ -110,8 +111,21 @@ namespace TShockAPI
///
public string HashAlgorithm = "sha512";
+ ///
+ /// Buffers up the packets and sends them out at the end of each frame
+ ///
public bool BufferPackets = false;
+ ///
+ /// Display the users group when they chat.
+ ///
+ public bool ChatDisplayGroup = false;
+
+ ///
+ /// String that is used when kicking people when the server is full.
+ ///
+ public string ServerFullReason = "Server is full";
+
public static ConfigFile Read(string path)
{
if (!File.Exists(path))
diff --git a/TShockAPI/TShock.cs b/TShockAPI/TShock.cs
index aa5c7ccc..61159e62 100755
--- a/TShockAPI/TShock.cs
+++ b/TShockAPI/TShock.cs
@@ -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));