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 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> /// <summary>
/// Path to the file containing the rules. /// Path to the file containing the rules.
/// </summary> /// </summary>
@ -98,8 +100,8 @@ namespace TShockAPI
} }
CreateIfNot(RulesPath, "Respect the admins!\nDon't use TNT!"); CreateIfNot(RulesPath, "Respect the admins!\nDon't use TNT!");
CreateIfNot(MotdPath, CreateIfNot(MotdPath, 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%");
CreateIfNot(WhitelistPath); CreateIfNot(WhitelistPath);
if (File.Exists(ConfigPath)) if (File.Exists(ConfigPath))
{ {