From 41b4004a371e4a68e3e2580abc33f8d095fff665 Mon Sep 17 00:00:00 2001 From: fullwall Date: Sat, 16 Mar 2013 15:17:42 +0800 Subject: [PATCH] Rename /npc nameplate to /npc name (may change later) --- src/main/java/net/citizensnpcs/commands/NPCCommands.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/main/java/net/citizensnpcs/commands/NPCCommands.java b/src/main/java/net/citizensnpcs/commands/NPCCommands.java index 20fe480ac..827ee7396 100644 --- a/src/main/java/net/citizensnpcs/commands/NPCCommands.java +++ b/src/main/java/net/citizensnpcs/commands/NPCCommands.java @@ -652,13 +652,14 @@ public class NPCCommands { @Command( aliases = { "npc" }, - modifiers = "nameplate", + modifiers = { "name" }, + usage = "name", desc = "Toggle nameplate visibility", min = 1, max = 1, - permission = "citizens.npc.nameplate") - @Requirements(selected = true, ownership = true, excludedTypes = EntityType.PLAYER) - public void nameplate(CommandContext args, CommandSender sender, NPC npc) { + permission = "citizens.npc.name") + @Requirements(selected = true, ownership = true) + public void name(CommandContext args, CommandSender sender, NPC npc) { npc.getBukkitEntity().setCustomNameVisible(!npc.getBukkitEntity().isCustomNameVisible()); Messaging.sendTr(sender, Messages.NAMEPLATE_VISIBILITY_TOGGLED); }