Implement onCopy

This commit is contained in:
fullwall 2012-10-15 15:17:20 +08:00
parent 0ba1bd9f2c
commit 9fcb6214e0

View File

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