Got TShock's part of updating done, waiting from ftp access from shank to test
This commit is contained in:
parent
e61d0a74fe
commit
61624249a2
2 changed files with 43 additions and 1 deletions
|
|
@ -24,6 +24,8 @@ namespace TShockAPI
|
|||
|
||||
private static bool[] BlacklistTiles;
|
||||
|
||||
public static bool updateCmd;
|
||||
|
||||
public static BanManager Bans = new BanManager(Path.Combine(saveDir, "bans.txt"));
|
||||
|
||||
public override Version Version
|
||||
|
|
@ -665,7 +667,12 @@ namespace TShockAPI
|
|||
float[] color = { 255, 255, 000 };
|
||||
if (VersionNum.CompareTo(updateVersion) < 0)
|
||||
{
|
||||
Tools.SendMessage(ply, "This server is out of date.");
|
||||
Tools.SendMessage(ply, "This server is out of date, to update now type /updatenow");
|
||||
if (!updateCmd)
|
||||
{
|
||||
Commands.commands.Add(new Commands.Command("/updatenow", "maintenance", Commands.UpdateNow));
|
||||
updateCmd = true;
|
||||
}
|
||||
for (int i = 4; i <= changes.Length; i++)
|
||||
{
|
||||
Tools.SendMessage(ply, changes[i], color);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue