From c3f274f307ff3a26290f1ee3ba07809a0e52b994 Mon Sep 17 00:00:00 2001 From: ricky Date: Tue, 21 Jun 2011 14:26:54 +1000 Subject: [PATCH] Added better warning message when teleport is unavaiable --- TShockAPI/Commands.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/TShockAPI/Commands.cs b/TShockAPI/Commands.cs index 76f9432a..486068cb 100755 --- a/TShockAPI/Commands.cs +++ b/TShockAPI/Commands.cs @@ -675,7 +675,7 @@ namespace TShockAPI if (args.Player.Teleport(Main.spawnTileX, Main.spawnTileY)) args.Player.SendMessage("Teleported to the map's spawnpoint."); else - args.Player.SendMessage("Can't teleport because you have set custom spawnpoint.", Color.Red); + args.Player.SendMessage("Teleport unavailable custom spawnpoint set (to unset die after bed is destroyed).", Color.Red); } private static void TP(CommandArgs args) @@ -704,7 +704,7 @@ namespace TShockAPI if (args.Player.Teleport(plr.TileX, plr.TileY)) args.Player.SendMessage(string.Format("Teleported to {0}", plr.Name)); else - args.Player.SendMessage("Can't teleport because you have set custom spawnpoint.", Color.Red); + args.Player.SendMessage("Teleport unavailable custom spawnpoint set (to unset die after bed is destroyed).", Color.Red); } } @@ -741,7 +741,7 @@ namespace TShockAPI args.Player.SendMessage(string.Format("You brought {0} here.", plr.Name)); } else - args.Player.SendMessage("Can't teleport because target player has set custom spawnpoint.", Color.Red); + args.Player.SendMessage("Teleport unavailable target player has custom spawnpoint set.", Color.Red); } }