Indicate when Teleport has failed.
This commit is contained in:
parent
ecc6da2a96
commit
da60e1cd0c
2 changed files with 10 additions and 5 deletions
|
|
@ -843,8 +843,8 @@ namespace TShockAPI
|
|||
{
|
||||
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));
|
||||
if (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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue