mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-23 02:55:45 +01:00
Remove living entity requirement for /npc name
This commit is contained in:
parent
3d85ad4ea8
commit
8c120aae52
@ -1330,7 +1330,7 @@ public class NPCCommands {
|
||||
max = 1,
|
||||
flags = "h",
|
||||
permission = "citizens.npc.name")
|
||||
@Requirements(selected = true, ownership = true, livingEntity = true)
|
||||
@Requirements(selected = true, ownership = true)
|
||||
public void name(CommandContext args, CommandSender sender, NPC npc) {
|
||||
String old = npc.data().<Object> get(NPC.NAMEPLATE_VISIBLE_METADATA, true).toString();
|
||||
if (args.hasFlag('h')) {
|
||||
|
Loading…
Reference in New Issue
Block a user