mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2025-01-03 15:08:23 +01:00
Fix protocollib detection for /npc mirror
This commit is contained in:
parent
007c92f797
commit
1416557ce3
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user