Skip to content

Commit

Permalink
Rename /npc nameplate to /npc name (may change later)
Browse files Browse the repository at this point in the history
  • Loading branch information
fullwall committed Mar 16, 2013
1 parent 5b8b49c commit 34a2ab6
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/main/java/net/citizensnpcs/commands/NPCCommands.java
Original file line number Diff line number Diff line change
Expand Up @@ -652,13 +652,14 @@ public void moveto(CommandContext args, CommandSender sender, NPC npc) throws Co

@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);
}
Expand Down

0 comments on commit 34a2ab6

Please sign in to comment.