Update references to MOTD to point to the variable, instead of having magic strings.
This commit is contained in:
parent
8f7b8db2a1
commit
6242a54603
4 changed files with 5 additions and 5 deletions
|
|
@ -1173,7 +1173,7 @@ namespace TShockAPI
|
|||
{
|
||||
if (args.Handled)
|
||||
return;
|
||||
|
||||
|
||||
if (!Config.AllowCrimsonCreep && (args.Type == TileID.Dirt || args.Type == TileID.FleshWeeds
|
||||
|| TileID.Sets.Crimson[args.Type]))
|
||||
{
|
||||
|
|
@ -1577,7 +1577,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