mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-24 14:16:45 +01:00
enable super shotgun permission
This commit is contained in:
parent
66a4886ee4
commit
b0c42f8e44
@ -177,7 +177,7 @@ public final class Permissions {
|
|||||||
public static boolean vanillaXpBoost(Permissible permissible, PrimarySkillType skill) { return permissible.hasPermission("mcmmo.ability." + skill.toString().toLowerCase(Locale.ENGLISH) + ".vanillaxpboost"); }
|
public static boolean vanillaXpBoost(Permissible permissible, PrimarySkillType skill) { return permissible.hasPermission("mcmmo.ability." + skill.toString().toLowerCase(Locale.ENGLISH) + ".vanillaxpboost"); }
|
||||||
public static boolean isSubSkillEnabled(Permissible permissible, SubSkillType subSkillType) {
|
public static boolean isSubSkillEnabled(Permissible permissible, SubSkillType subSkillType) {
|
||||||
// hack to disable supers that aren't coded yet
|
// hack to disable supers that aren't coded yet
|
||||||
if(subSkillType == SubSkillType.TRIDENTS_SUPER || subSkillType == SubSkillType.CROSSBOWS_SUPER_SHOTGUN)
|
if(subSkillType == SubSkillType.TRIDENTS_SUPER)
|
||||||
return false;
|
return false;
|
||||||
return permissible.hasPermission(subSkillType.getPermissionNodeAddress());
|
return permissible.hasPermission(subSkillType.getPermissionNodeAddress());
|
||||||
}
|
}
|
||||||
@ -238,10 +238,10 @@ public final class Permissions {
|
|||||||
|
|
||||||
/* WOODCUTTING */
|
/* WOODCUTTING */
|
||||||
public static boolean treeFeller(Permissible permissible) { return permissible.hasPermission("mcmmo.ability.woodcutting.treefeller"); }
|
public static boolean treeFeller(Permissible permissible) { return permissible.hasPermission("mcmmo.ability.woodcutting.treefeller"); }
|
||||||
|
|
||||||
/* CROSSBOWS */
|
/* CROSSBOWS */
|
||||||
public static boolean superShotgun(Permissible permissible) {
|
public static boolean superShotgun(Permissible permissible) {
|
||||||
return false;
|
return permissible.hasPermission("mcmmo.ability.crossbows.supershotgun");
|
||||||
// return permissible.hasPermission("mcmmo.ability.crossbows.supershotgun");
|
|
||||||
}
|
}
|
||||||
public static boolean trickShot(Permissible permissible) { return permissible.hasPermission("mcmmo.ability.crossbows.trickshot"); }
|
public static boolean trickShot(Permissible permissible) { return permissible.hasPermission("mcmmo.ability.crossbows.trickshot"); }
|
||||||
public static boolean poweredShot(Permissible permissible) { return permissible.hasPermission("mcmmo.ability.crossbows.poweredshot"); }
|
public static boolean poweredShot(Permissible permissible) { return permissible.hasPermission("mcmmo.ability.crossbows.poweredshot"); }
|
||||||
|
Loading…
Reference in New Issue
Block a user