diff --git a/TShockAPI/GetDataHandlers.cs b/TShockAPI/GetDataHandlers.cs index 4258d00f..b4c0e992 100755 --- a/TShockAPI/GetDataHandlers.cs +++ b/TShockAPI/GetDataHandlers.cs @@ -3158,9 +3158,9 @@ namespace TShockAPI return true; } - if (Main.npc[id].townNPC && !args.Player.Group.HasPermission(Permissions.movenpc)) + if (Main.npc[id].townNPC && !args.Player.Group.HasPermission(Permissions.hurttownnpc)) { - args.Player.SendMessage( "You don't have permission to move this NPC.", Color.Yellow); + args.Player.SendErrorMessage("You do not have permission to hurt this NPC."); args.Player.SendData(PacketTypes.NpcUpdate, "", id); return true; } diff --git a/TShockAPI/Permissions.cs b/TShockAPI/Permissions.cs index 030f1af8..7738e6f5 100644 --- a/TShockAPI/Permissions.cs +++ b/TShockAPI/Permissions.cs @@ -170,6 +170,9 @@ namespace TShockAPI [Description("User can start an invasion.")] public static readonly string invade = "tshock.npc.invade"; + [Description("User can hurt town NPCs.")] + public static readonly string hurttownnpc = "tshock.npc.hurttown"; + [Description("User can spawn bosses.")] public static readonly string spawnboss = "tshock.npc.spawnboss";