Clean up some spaces in FileTools, and make the motd format a const.
This commit is contained in:
parent
8a7aae9143
commit
5488be0857
1 changed files with 25 additions and 23 deletions
|
|
@ -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))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue