mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-25 20:25:19 +01:00
Implement onCopy
This commit is contained in:
parent
0ba1bd9f2c
commit
9fcb6214e0
@ -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