mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-12-30 21:17:45 +01:00
Rename /npc nameplate to /npc name (may change later)
This commit is contained in:
parent
76b2bc3864
commit
41b4004a37
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user