mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-30 00:56:47 +01:00
Give custom perk boost the highest priority.
This commit is contained in:
parent
0bb2642d24
commit
760178c061
@ -45,7 +45,10 @@ public final class PerksUtils {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static float handleXpPerks(Player player, float xp, SkillType skill) {
|
public static float handleXpPerks(Player player, float xp, SkillType skill) {
|
||||||
if (Permissions.quadrupleXp(player, skill)) {
|
if (Permissions.customXpBoost(player, skill)) {
|
||||||
|
xp *= ExperienceConfig.getInstance().getCustomXpPerkBoost();
|
||||||
|
}
|
||||||
|
else if (Permissions.quadrupleXp(player, skill)) {
|
||||||
xp *= 4;
|
xp *= 4;
|
||||||
}
|
}
|
||||||
else if (Permissions.tripleXp(player, skill)) {
|
else if (Permissions.tripleXp(player, skill)) {
|
||||||
@ -63,9 +66,6 @@ public final class PerksUtils {
|
|||||||
else if (Permissions.oneAndOneTenthXp(player, skill)) {
|
else if (Permissions.oneAndOneTenthXp(player, skill)) {
|
||||||
xp *= 1.1;
|
xp *= 1.1;
|
||||||
}
|
}
|
||||||
else if (Permissions.customXpBoost(player, skill)) {
|
|
||||||
xp *= ExperienceConfig.getInstance().getCustomXpPerkBoost();
|
|
||||||
}
|
|
||||||
|
|
||||||
return xp;
|
return xp;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user