Fixed GetData now logs exceptions as Terraria will swallow the exception.
Removed FindPlayer(int) Removed Tools.SendMessage Added TSPlayer.SendMessage to replace it Changed FindPlayer(string) now returns List<TSPlayer>
This commit is contained in:
parent
760a81f74e
commit
f31bae459e
5 changed files with 190 additions and 226 deletions
|
|
@ -79,10 +79,10 @@ namespace TShockAPI
|
|||
{
|
||||
if (!TShock.Players[i].Group.HasPermission("maintenance"))
|
||||
return;
|
||||
Tools.SendMessage(i, "The server is out of date. To update, type /updatenow.");
|
||||
TShock.Players[i].SendMessage("The server is out of date. To update, type /updatenow.");
|
||||
for (int j = 4; j < changes.Length; j++)
|
||||
{
|
||||
Tools.SendMessage(i, changes[j], Color.Red);
|
||||
TShock.Players[i].SendMessage(changes[j], Color.Red);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue