Add mooshrooms to /npc age

This commit is contained in:
fullwall 2013-02-17 17:32:30 +08:00
parent 666642a3e3
commit e790a08821

View File

@ -92,8 +92,9 @@ public class NPCCommands {
min = 1,
max = 2,
permission = "citizens.npc.age")
@Requirements(selected = true, ownership = true, types = { EntityType.CHICKEN, EntityType.COW, EntityType.OCELOT,
EntityType.PIG, EntityType.SHEEP, EntityType.VILLAGER, EntityType.WOLF })
@Requirements(selected = true, ownership = true, types = { EntityType.CHICKEN, EntityType.COW,
EntityType.MUSHROOM_COW, EntityType.OCELOT, EntityType.PIG, EntityType.SHEEP, EntityType.VILLAGER,
EntityType.WOLF })
public void age(CommandContext args, CommandSender sender, NPC npc) throws CommandException {
Age trait = npc.getTrait(Age.class);