mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-24 03:25:13 +01:00
Implement onCopy
This commit is contained in:
parent
f642cc2d2c
commit
ea190794da
@ -238,6 +238,8 @@ public class NPCCommands {
|
||||
copy.getTrait(CurrentLocation.class).setLocation(player.getLocation());
|
||||
}
|
||||
|
||||
for (Trait trait : copy.getTraits())
|
||||
trait.onCopy();
|
||||
Messaging.sendTr(sender, Messages.NPC_COPIED, npc.getName());
|
||||
selector.select(sender, copy);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user