enable super shotgun permission

This commit is contained in:
nossr50 2024-02-03 14:55:42 -08:00
parent 66a4886ee4
commit b0c42f8e44

View File

@ -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"); }