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(
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);
}