mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-15 15:16:43 +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)
|
@Requirements(selected = true, ownership = true)
|
||||||
public void mirror(CommandContext args, CommandSender sender, NPC npc, @Flag("name") Boolean name)
|
public void mirror(CommandContext args, CommandSender sender, NPC npc, @Flag("name") Boolean name)
|
||||||
throws CommandException {
|
throws CommandException {
|
||||||
if (protocolListener == null)
|
if (((Citizens) CitizensAPI.getPlugin()).getProtocolLibListener() == null)
|
||||||
throw new CommandException("ProtocolLib must be enabled to use this feature");
|
throw new CommandException("ProtocolLib must be enabled to use this feature");
|
||||||
|
|
||||||
MirrorTrait trait = npc.getOrAddTrait(MirrorTrait.class);
|
MirrorTrait trait = npc.getOrAddTrait(MirrorTrait.class);
|
||||||
|
Loading…
Reference in New Issue
Block a user