From 1416557ce3457413428e240df8144d2bc0ec07ac Mon Sep 17 00:00:00 2001 From: fullwall Date: Tue, 2 Jan 2024 23:31:02 +0800 Subject: [PATCH] Fix protocollib detection for /npc mirror --- main/src/main/java/net/citizensnpcs/commands/NPCCommands.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/src/main/java/net/citizensnpcs/commands/NPCCommands.java b/main/src/main/java/net/citizensnpcs/commands/NPCCommands.java index 934d6c56a..1362e61b0 100644 --- a/main/src/main/java/net/citizensnpcs/commands/NPCCommands.java +++ b/main/src/main/java/net/citizensnpcs/commands/NPCCommands.java @@ -1708,7 +1708,7 @@ public class NPCCommands { @Requirements(selected = true, ownership = true) public void mirror(CommandContext args, CommandSender sender, NPC npc, @Flag("name") Boolean name) throws CommandException { - if (protocolListener == null) + if (((Citizens) CitizensAPI.getPlugin()).getProtocolLibListener() == null) throw new CommandException("ProtocolLib must be enabled to use this feature"); MirrorTrait trait = npc.getOrAddTrait(MirrorTrait.class);