diff --git a/TShockAPI/Commands.cs b/TShockAPI/Commands.cs index 42a8342f..fd12db84 100755 --- a/TShockAPI/Commands.cs +++ b/TShockAPI/Commands.cs @@ -341,6 +341,10 @@ namespace TShockAPI { HelpText = "Kills hostile NPCs or NPCs of a certain type." }); + add(new Command(Permissions.rename, RenameNPC, "renamenpc") + { + HelpText = "Renames an NPC." + }); add(new Command(Permissions.invade, Invade, "invade") { HelpText = "Starts an NPC invasion." @@ -501,10 +505,6 @@ namespace TShockAPI { HelpText = "Kills another player." }); - add(new Command(Permissions.renamenpc, RenameNPC, "renamenpc") - { - HelpText = "Renames an NPC." - }); add(new Command(Permissions.cantalkinthird, ThirdPerson, "me") { HelpText = "Sends an action message to everyone." diff --git a/TShockAPI/Permissions.cs b/TShockAPI/Permissions.cs index ee2a9cba..8f0073e0 100644 --- a/TShockAPI/Permissions.cs +++ b/TShockAPI/Permissions.cs @@ -173,6 +173,9 @@ namespace TShockAPI [Description("User can spawn bosses.")] public static readonly string spawnboss = "tshock.npc.spawnboss"; + [Description("User can rename NPCs.")] + public static readonly string rename = "tshock.npc.rename"; + [Description("User can spawn npcs.")] public static readonly string spawnmob = "tshock.npc.spawnmob"; @@ -294,9 +297,6 @@ namespace TShockAPI [Description("User can kill others.")] public static readonly string kill = "tshock.kill"; - - [Description("User can rename NPCs.")] - public static readonly string renamenpc = "tshock.renamenpc"; [Description("Allows you to bypass the max slots for up to 5 slots above your max.")] public static readonly string reservedslot = "tshock.reservedslot"; @@ -397,4 +397,4 @@ namespace TShockAPI { } } -} \ No newline at end of file +}