Clean up some spaces in FileTools, and make the motd format a const.

This commit is contained in:
Zack Piispanen 2015-03-16 12:50:38 -04:00
parent 8a7aae9143
commit 5488be0857

View file

@ -25,6 +25,8 @@ namespace TShockAPI
{
public class FileTools
{
private const string MotdFormat =
"This server is running TShock for Terraria.\n Type /help for a list of commands.\n%255,000,000%Current map: %map%\nCurrent players: %players%";
/// <summary>
/// Path to the file containing the rules.
/// </summary>
@ -98,8 +100,8 @@ namespace TShockAPI
}
CreateIfNot(RulesPath, "Respect the admins!\nDon't use TNT!");
CreateIfNot(MotdPath,
"This server is running TShock for Terraria.\n Type /help for a list of commands.\n%255,000,000%Current map: %map%\nCurrent players: %players%");
CreateIfNot(MotdPath, MotdFormat);
CreateIfNot(WhitelistPath);
if (File.Exists(ConfigPath))
{