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:
high 2011-06-14 21:08:13 -04:00
parent 760a81f74e
commit f31bae459e
5 changed files with 190 additions and 226 deletions

View file

@ -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);
}
}
}