promotional bannermobile promotional banner

File Details

critter v1.2

  • R
  • Apr 27, 2013
  • 21.59 KB
  • 679
  • CB 1.5.1-R0.1

File Name

critter.jar

Supported Versions

  • CB 1.5.1-R0.1

Added "branding" so players can take ownership of unowned animals by right-clicking with an iron spade (or other configured item). The numbers of each animal type and total animals owned by each player are recorded and subject to maximum values set by the administrator.

Metadata with key "critterowner" is set for each animal entity giving the name of the owning player (if there is one). This metadata is not restored for all animals on a server restart but it is refreshed every time a player interacts with or damages an animal entity. The listeners for these events are now given priority LOWEST to try and ensure the metadata is updated before other plugins handle the PlayerInteractEntityEvent or EntityDamageByEntityEvent event.

New file Critter_Counts.bin to record the number of animals a player owns.

New command crittercounts to display numbers of animals owned by a player.

New command critterreload to reload configuration parameters from config.yml.

New config.yml parameters Default.Max.COW, Default.Max.CHICKEN, Default.Max.MOOSHROOM, Default.Max.OCELOT, Default.Max.PIG, Default.Max.SHEEP, Default.Max.WOLF, Default.Max.OTHER (for any future animal not already listed) and Default.Max.TOTAL to define the maximum number of each animal type and total animals a player may own. On upgrading to v1.2 it is possible that existing players already own more than the new maximum allowed number of animals.

New permissions critter.reload and critter.counts to restrict use of critterreload and crittercounts commands respectively.

New message when a player joins the server to indicate that critter is active and how to use the crittercounts command.