diff --git a/main/src/main/java/net/citizensnpcs/trait/CommandTrait.java b/main/src/main/java/net/citizensnpcs/trait/CommandTrait.java index de961912d..be45f9221 100644 --- a/main/src/main/java/net/citizensnpcs/trait/CommandTrait.java +++ b/main/src/main/java/net/citizensnpcs/trait/CommandTrait.java @@ -233,6 +233,10 @@ public class CommandTrait extends Trait { public void run(NPC npc, Player clicker) { String interpolatedCommand = Placeholders.replace(command, clicker, npc); + if (Messaging.isDebugging()) { + Messaging.debug( + "Running command " + interpolatedCommand + " on NPC " + npc.getId() + " clicker " + clicker); + } if (!player) { Bukkit.getServer().dispatchCommand(Bukkit.getConsoleSender(), interpolatedCommand); return;