Implement onCopy

This commit is contained in:
fullwall 2012-10-15 15:17:20 +08:00
parent f642cc2d2c
commit ea190794da

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