Add more XP boost permissions nodes.

This commit is contained in:
GJ
2012-06-27 08:31:10 -04:00
parent 24d2c1bc7a
commit 0e85b4776a
3 changed files with 17 additions and 1 deletions

View File

@ -1014,15 +1014,22 @@ public class PlayerProfile {
}
}
//TODO: Can we make this so we do perks by doing "mcmmo.perks.xp.[multiplier]" ?
if (player.hasPermission("mcmmo.perks.xp.quadruple")) {
xp = xp * 4;
}
else if (player.hasPermission("mcmmo.perks.xp.triple")) {
xp = xp * 3;
}
else if (player.hasPermission("mcmmo.perks.xp.150percentboost")) {
xp = (int) (xp * 2.5);
}
else if (player.hasPermission("mcmmo.perks.xp.double")) {
xp = xp * 2;
}
else if (player.hasPermission("mcmmo.perks.xp.50percentboost")) {
xp = (int) (xp * 1.5);
}
mcMMO.p.getServer().getPluginManager().callEvent(new McMMOPlayerXpGainEvent(player, skillType, xp));
skillsXp.put(skillType, skillsXp.get(skillType) + xp);