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