Rename /npc nameplate to /npc name (may change later)

This commit is contained in:
fullwall 2013-03-16 15:17:42 +08:00
parent 76b2bc3864
commit 41b4004a37

View File

@ -652,13 +652,14 @@ public class NPCCommands {
@Command( @Command(
aliases = { "npc" }, aliases = { "npc" },
modifiers = "nameplate", modifiers = { "name" },
usage = "name",
desc = "Toggle nameplate visibility", desc = "Toggle nameplate visibility",
min = 1, min = 1,
max = 1, max = 1,
permission = "citizens.npc.nameplate") permission = "citizens.npc.name")
@Requirements(selected = true, ownership = true, excludedTypes = EntityType.PLAYER) @Requirements(selected = true, ownership = true)
public void nameplate(CommandContext args, CommandSender sender, NPC npc) { public void name(CommandContext args, CommandSender sender, NPC npc) {
npc.getBukkitEntity().setCustomNameVisible(!npc.getBukkitEntity().isCustomNameVisible()); npc.getBukkitEntity().setCustomNameVisible(!npc.getBukkitEntity().isCustomNameVisible());
Messaging.sendTr(sender, Messages.NAMEPLATE_VISIBILITY_TOGGLED); Messaging.sendTr(sender, Messages.NAMEPLATE_VISIBILITY_TOGGLED);
} }