From 1228acbbc864515497da7c12f88b3af0bf209420 Mon Sep 17 00:00:00 2001 From: MarioE Date: Sun, 20 Jul 2014 18:08:01 -0400 Subject: [PATCH] Fix up /tpnpc a bit, tick version --- TShockAPI/Commands.cs | 10 +++++----- TShockAPI/Permissions.cs | 4 ++-- TShockAPI/Properties/AssemblyInfo.cs | 4 ++-- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/TShockAPI/Commands.cs b/TShockAPI/Commands.cs index f2970f9a..b662102a 100755 --- a/TShockAPI/Commands.cs +++ b/TShockAPI/Commands.cs @@ -398,10 +398,10 @@ namespace TShockAPI AllowServer = false, HelpText = "Teleports a player to yourself." }); - add(new Command(Permissions.tpnpcs, TPNpc, "tpnpc") + add(new Command(Permissions.tpnpc, TPNpc, "tpnpc") { AllowServer = false, - HelpText = "Teleports you to an npc" + HelpText = "Teleports you to an npc." }); add(new Command(Permissions.tppos, TPPos, "tppos") { @@ -2093,7 +2093,7 @@ namespace TShockAPI { if (args.Parameters.Count < 1) { - args.Player.SendErrorMessage("Invalid syntax! Proper syntax: /tpnpc "); + args.Player.SendErrorMessage("Invalid syntax! Proper syntax: /tpnpc "); return; } @@ -2117,13 +2117,13 @@ namespace TShockAPI } if (matches.Count == 0) { - args.Player.SendErrorMessage("Invalid Npc!"); + args.Player.SendErrorMessage("Invalid NPC!"); return; } var target = matches[0]; 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) diff --git a/TShockAPI/Permissions.cs b/TShockAPI/Permissions.cs index 2809c84d..aa8a54d4 100644 --- a/TShockAPI/Permissions.cs +++ b/TShockAPI/Permissions.cs @@ -213,8 +213,8 @@ namespace TShockAPI [Description("User can teleport to tile positions.")] public static readonly string tppos = "tshock.tp.pos"; - [Description("User can teleport to npcs.")] - public static readonly string tpnpcs = "tshock.tp.npcs"; + [Description("User can teleport to an NPC.")] + public static readonly string tpnpc = "tshock.tp.npc"; [Description("Users can stop people from teleporting.")] public static readonly string tpallow = "tshock.tp.block"; diff --git a/TShockAPI/Properties/AssemblyInfo.cs b/TShockAPI/Properties/AssemblyInfo.cs index 8e7eef02..b6820aaf 100644 --- a/TShockAPI/Properties/AssemblyInfo.cs +++ b/TShockAPI/Properties/AssemblyInfo.cs @@ -49,5 +49,5 @@ using System.Runtime.InteropServices; // Build Number // MMdd of the build -[assembly: AssemblyVersion("4.2.3.0702")] -[assembly: AssemblyFileVersion("4.2.3.0702")] +[assembly: AssemblyVersion("4.2.3.0720")] +[assembly: AssemblyFileVersion("4.2.3.0720")]