Configuration/achievements.yml

http://s10.postimg.org/x6msrhozd/My_Z_4.png

The achievements YML file is where all MyZ achievements will be stored. These achievements will fire PlayerGetMyZAchievement events and should be used in tandem with a MyZ Achievement Addon plugin.

Achievements can be created or removed in a simple fashion. See the following.

Quote:

friends:
→name: Making Friends
→description: make a friend
→requirements:
→→kills:
→→→zombie: 0
→→→pigman: 0
→→→player: 0
→→→giant: 0
→→heals:
→→→self:
→→→→bleeding: 0
→→→→infection: 0
→→→other: 0
→→drinks: 0
→→revive:
→→→other: 0
→→→self: 0
→→deaths: 0
→→deathstate:
→→→zombie: 0
→→→ghost: 0
→→friends: 1

Obviously, replacing the arrows (→) with two spaces ( ) will yield a template of an achievement (also found in the default achievements.yml).

To create new achievements, simply copy this template and modify the values to fit your needs. Once a player fulfills the outlined requirements, they will attain the achievement.

Note that each achievement needs a unique identifier. In the example above, it's identifier is 'friends'. Any other achievement with the identifier friends will conflict with this one, so you must ensure that each is unique.

Other than the name and description fields (self explanatory), every field is an integer type.


Comments

Posts Quoted:
Reply
Clear All Quotes