Merge pull request #1317 from DogooFalchion/motd
Update MotD file parsing to convert color formats into smart text.
This commit is contained in:
commit
1328d71fdc
4 changed files with 102 additions and 13 deletions
|
|
@ -836,6 +836,8 @@ namespace TShockAPI
|
|||
ComputeMaxStyles();
|
||||
FixChestStacks();
|
||||
|
||||
Utils.UpgradeMotD();
|
||||
|
||||
if (Config.UseServerName)
|
||||
{
|
||||
Main.worldName = Config.ServerName;
|
||||
|
|
@ -1576,7 +1578,7 @@ namespace TShockAPI
|
|||
if (Config.DisplayIPToAdmins)
|
||||
Utils.SendLogs(string.Format("{0} has joined. IP: {1}", player.Name, player.IP), Color.Blue);
|
||||
|
||||
Utils.ShowFileToUser(player, "motd.txt");
|
||||
Utils.ShowFileToUser(player, FileTools.MotdPath);
|
||||
|
||||
string pvpMode = Config.PvPMode.ToLowerInvariant();
|
||||
if (pvpMode == "always")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue