Merge pull request #1317 from DogooFalchion/motd

Update MotD file parsing to convert color formats into smart text.
This commit is contained in:
Lucas Nicodemus 2016-10-23 19:27:52 -06:00 committed by GitHub
commit 1328d71fdc
4 changed files with 102 additions and 13 deletions

View file

@ -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")