Fix up /tpnpc a bit, tick version

This commit is contained in:
MarioE 2014-07-20 18:08:01 -04:00
parent 4ce305b91d
commit 1228acbbc8
3 changed files with 9 additions and 9 deletions

View file

@ -398,10 +398,10 @@ namespace TShockAPI
AllowServer = false, AllowServer = false,
HelpText = "Teleports a player to yourself." HelpText = "Teleports a player to yourself."
}); });
add(new Command(Permissions.tpnpcs, TPNpc, "tpnpc") add(new Command(Permissions.tpnpc, TPNpc, "tpnpc")
{ {
AllowServer = false, AllowServer = false,
HelpText = "Teleports you to an npc" HelpText = "Teleports you to an npc."
}); });
add(new Command(Permissions.tppos, TPPos, "tppos") add(new Command(Permissions.tppos, TPPos, "tppos")
{ {
@ -2093,7 +2093,7 @@ namespace TShockAPI
{ {
if (args.Parameters.Count < 1) if (args.Parameters.Count < 1)
{ {
args.Player.SendErrorMessage("Invalid syntax! Proper syntax: /tpnpc <npc>"); args.Player.SendErrorMessage("Invalid syntax! Proper syntax: /tpnpc <NPC>");
return; return;
} }
@ -2117,13 +2117,13 @@ namespace TShockAPI
} }
if (matches.Count == 0) if (matches.Count == 0)
{ {
args.Player.SendErrorMessage("Invalid Npc!"); args.Player.SendErrorMessage("Invalid NPC!");
return; return;
} }
var target = matches[0]; var target = matches[0];
args.Player.Teleport(target.position.X, target.position.Y); args.Player.Teleport(target.position.X, target.position.Y);
args.Player.SendSuccessMessage("Teleported to the {0}", target.name); args.Player.SendSuccessMessage("Teleported to the '{0}'.", target.name);
} }
private static void TPPos(CommandArgs args) private static void TPPos(CommandArgs args)

View file

@ -213,8 +213,8 @@ namespace TShockAPI
[Description("User can teleport to tile positions.")] [Description("User can teleport to tile positions.")]
public static readonly string tppos = "tshock.tp.pos"; public static readonly string tppos = "tshock.tp.pos";
[Description("User can teleport to npcs.")] [Description("User can teleport to an NPC.")]
public static readonly string tpnpcs = "tshock.tp.npcs"; public static readonly string tpnpc = "tshock.tp.npc";
[Description("Users can stop people from teleporting.")] [Description("Users can stop people from teleporting.")]
public static readonly string tpallow = "tshock.tp.block"; public static readonly string tpallow = "tshock.tp.block";

View file

@ -49,5 +49,5 @@ using System.Runtime.InteropServices;
// Build Number // Build Number
// MMdd of the build // MMdd of the build
[assembly: AssemblyVersion("4.2.3.0702")] [assembly: AssemblyVersion("4.2.3.0720")]
[assembly: AssemblyFileVersion("4.2.3.0702")] [assembly: AssemblyFileVersion("4.2.3.0720")]