Added /tphere * and /tphere all

Closes #159
Forgot to close the auth issue
Closes #98
This commit is contained in:
Lucas Nicodemus 2011-06-30 22:37:28 -06:00
parent b20970a3e5
commit 2c812dbb53

View file

@ -811,6 +811,21 @@ namespace TShockAPI
}
string plStr = String.Join(" ", args.Parameters);
if (plStr == "all" || plStr == "*")
{
args.Player.SendMessage(string.Format("You brought all players here."));
for (int i = 0; i < Main.maxPlayers; i++)
{
if (Main.player[i].active && (Main.player[i] != args.TPlayer))
{
TShock.Players[i].Teleport(args.Player.TileX, args.Player.TileY + 3);
TShock.Players[i].SendMessage(string.Format("You were teleported to {0}.", args.Player.Name));
}
}
return;
}
var players = Tools.FindPlayer(plStr);
if (players.Count == 0)
{