Added new API method to McMMOPlayerLevelUpEvent to set levels gained

Closes #352
This commit is contained in:
TfT_02 2013-04-04 23:00:21 +02:00
parent 12797893df
commit 87feb8c250
2 changed files with 9 additions and 0 deletions

View File

@ -8,6 +8,7 @@ Key:
- Removal
Version 1.4.06-dev
+ Added new API method to McMMOPlayerLevelUpEvent to set levels gained
+ Added new permission node for /ptp; mcmmo.commands.ptp.send (enabled by default)
= Fixed displaying partial names when trying to use /ptp
! Changed Chimaera Wing's recipe result to use the ingredient Material

View File

@ -17,6 +17,14 @@ public class McMMOPlayerLevelUpEvent extends McMMOPlayerExperienceEvent {
public McMMOPlayerLevelUpEvent(Player player, SkillType skill, int levelsGained) {
super(player, skill);
this.setLevelsGained(levelsGained);
}
/**
* @param levelsGained
* @return Set the number of levels gained in this event
*/
public void setLevelsGained(int levelsGained) {
this.levelsGained = levelsGained;
}