Merge pull request #2307 from moisterrific/patch-22
minor improvement to stock MOTD behavior
This commit is contained in:
commit
4e4294f497
2 changed files with 2 additions and 1 deletions
|
|
@ -29,7 +29,7 @@ namespace TShockAPI
|
|||
public class FileTools
|
||||
{
|
||||
private const string MotdFormat =
|
||||
"This is [c/FF0000:%map%] on [c/00FFFF:TShock for Terraria].\n[c/00FF00:Current players:] [c/FFFF00:%players%]\nType [c/FF0000:/help] for a list of commands.\n";
|
||||
"Welcome to [c/ffff00:%map%] on [c/7ddff8:T][c/81dbf6:S][c/86d7f4:h][c/8ad3f3:o][c/8ecef1:c][c/93caef:k] for [c/55d284:T][c/62d27a:e][c/6fd16f:r][c/7cd165:r][c/89d15a:a][c/95d150:r][c/a4d145:i][c/b1d03b:a].\n[c/FFFFFF:Online player(s):] [c/FFFF00:%players%]\nType [c/55D284:%specifier%][c/62D27A:h][c/6FD16F:e][c/7CD165:l][c/89D15A:p] for a list of commands.\n";
|
||||
/// <summary>
|
||||
/// Path to the file containing the rules.
|
||||
/// </summary>
|
||||
|
|
|
|||
|
|
@ -1509,6 +1509,7 @@ namespace TShockAPI
|
|||
|
||||
foo = foo.Replace("%map%", (TShock.Config.Settings.UseServerName ? TShock.Config.Settings.ServerName : Main.worldName));
|
||||
foo = foo.Replace("%players%", String.Join(",", players));
|
||||
foo = foo.Replace("%specifier%", TShock.Config.Settings.CommandSpecifier);
|
||||
|
||||
SendMessage(foo, lineColor);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue