Killed the Obsolete SendMessage method
This commit is contained in:
parent
e392e69a96
commit
eb8d1e180f
4 changed files with 12 additions and 23 deletions
|
|
@ -336,8 +336,7 @@ namespace TShockAPI
|
|||
var flag = CheckSpawn(x, y);
|
||||
if (flag)
|
||||
{
|
||||
Tools.SendMessage(e.Msg.whoAmI, "Spawn protected from changes.",
|
||||
new[] { 255f, 0f, 0f });
|
||||
Tools.SendMessage(e.Msg.whoAmI, "Spawn protected from changes.", Color.Red);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
@ -521,7 +520,7 @@ namespace TShockAPI
|
|||
var flag = CheckSpawn(x, y);
|
||||
if (flag)
|
||||
{
|
||||
Tools.SendMessage(e.Msg.whoAmI, "The spawn is protected!", new[] { 255f, 0f, 0f });
|
||||
Tools.SendMessage(e.Msg.whoAmI, "The spawn is protected!", Color.Red);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
@ -673,8 +672,6 @@ namespace TShockAPI
|
|||
Console.WriteLine("This token will only display ONCE. This only works ONCE. If you don't use it and the server goes down, delete auth.lck.");
|
||||
FileTools.CreateFile(FileTools.SaveDir + "auth.lck");
|
||||
}
|
||||
|
||||
//ConfigurationManager.maxSlots = Main.maxPlayers - 1;
|
||||
}
|
||||
|
||||
private void OnUpdate(GameTime time)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue