mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-29 16:46:46 +01:00
Add '.all' to all existing perk xp multipliers (#4460)
* Add '.all' to all existing perk xp multipliers Added '.all' usage for all existing perk xp mulipliers to enable use of mcmmo.perks.xp.<xpboost>.all * Fixed a statement error
This commit is contained in:
parent
71d1f42cf4
commit
f52effb0fb
@ -118,12 +118,35 @@ public final class Permissions {
|
|||||||
public static boolean lucky(Permissible permissible, PrimarySkillType skill) { return permissible.hasPermission("mcmmo.perks.lucky." + skill.toString().toLowerCase(Locale.ENGLISH)); }
|
public static boolean lucky(Permissible permissible, PrimarySkillType skill) { return permissible.hasPermission("mcmmo.perks.lucky." + skill.toString().toLowerCase(Locale.ENGLISH)); }
|
||||||
|
|
||||||
/* XP PERKS */
|
/* XP PERKS */
|
||||||
public static boolean quadrupleXp(Permissible permissible, PrimarySkillType skill) { return permissible.hasPermission("mcmmo.perks.xp.quadruple." + skill.toString().toLowerCase(Locale.ENGLISH)); }
|
public static boolean quadrupleXp(Permissible permissible, PrimarySkillType skill) {
|
||||||
public static boolean tripleXp(Permissible permissible, PrimarySkillType skill) { return permissible.hasPermission("mcmmo.perks.xp.triple." + skill.toString().toLowerCase(Locale.ENGLISH)); }
|
return permissible.hasPermission("mcmmo.perks.xp.quadruple.all")
|
||||||
public static boolean doubleAndOneHalfXp(Permissible permissible, PrimarySkillType skill) { return permissible.hasPermission("mcmmo.perks.xp.150percentboost." + skill.toString().toLowerCase(Locale.ENGLISH)); }
|
|| permissible.hasPermission("mcmmo.perks.xp.quadruple." + skill.toString().toLowerCase(Locale.ENGLISH));
|
||||||
public static boolean doubleXp(Permissible permissible, PrimarySkillType skill) { return permissible.hasPermission("mcmmo.perks.xp.double." + skill.toString().toLowerCase(Locale.ENGLISH)); }
|
}
|
||||||
public static boolean oneAndOneHalfXp(Permissible permissible, PrimarySkillType skill) { return permissible.hasPermission("mcmmo.perks.xp.50percentboost." + skill.toString().toLowerCase(Locale.ENGLISH)); }
|
|
||||||
public static boolean oneAndOneTenthXp(Permissible permissible, PrimarySkillType skill) { return permissible.hasPermission("mcmmo.perks.xp.10percentboost." + skill.toString().toLowerCase(Locale.ENGLISH)); }
|
public static boolean tripleXp(Permissible permissible, PrimarySkillType skill) {
|
||||||
|
return permissible.hasPermission("mcmmo.perks.xp.triple.all")
|
||||||
|
|| permissible.hasPermission("mcmmo.perks.xp.triple." + skill.toString().toLowerCase(Locale.ENGLISH));
|
||||||
|
}
|
||||||
|
|
||||||
|
public static boolean doubleAndOneHalfXp(Permissible permissible, PrimarySkillType skill) {
|
||||||
|
return permissible.hasPermission("mcmmo.perks.xp.150percentboost.all")
|
||||||
|
|| permissible.hasPermission("mcmmo.perks.xp.150percentboost." + skill.toString().toLowerCase(Locale.ENGLISH));
|
||||||
|
}
|
||||||
|
|
||||||
|
public static boolean doubleXp(Permissible permissible, PrimarySkillType skill) {
|
||||||
|
return permissible.hasPermission("mcmmo.perks.xp.double.all")
|
||||||
|
|| permissible.hasPermission("mcmmo.perks.xp.double." + skill.toString().toLowerCase(Locale.ENGLISH));
|
||||||
|
}
|
||||||
|
|
||||||
|
public static boolean oneAndOneHalfXp(Permissible permissible, PrimarySkillType skill) {
|
||||||
|
return permissible.hasPermission("mcmmo.perks.xp.50percentboost.all")
|
||||||
|
|| permissible.hasPermission("mcmmo.perks.xp.50percentboost." + skill.toString().toLowerCase(Locale.ENGLISH));
|
||||||
|
}
|
||||||
|
|
||||||
|
public static boolean oneAndOneTenthXp(Permissible permissible, PrimarySkillType skill) {
|
||||||
|
return permissible.hasPermission("mcmmo.perks.xp.10percentboost.all")
|
||||||
|
|| permissible.hasPermission("mcmmo.perks.xp.10percentboost." + skill.toString().toLowerCase(Locale.ENGLISH));
|
||||||
|
}
|
||||||
|
|
||||||
public static boolean customXpBoost(Permissible permissible, PrimarySkillType skill) {
|
public static boolean customXpBoost(Permissible permissible, PrimarySkillType skill) {
|
||||||
return permissible.hasPermission("mcmmo.perks.xp.customboost.all")
|
return permissible.hasPermission("mcmmo.perks.xp.customboost.all")
|
||||||
|
Loading…
Reference in New Issue
Block a user