mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-25 06:36:45 +01:00
time to cut some corners :sick:
This commit is contained in:
parent
9b6e6d7861
commit
810a29cb9d
@ -15,6 +15,7 @@ Version 2.2.0
|
|||||||
Fixed a bug where salvage anvil noises wouldn't play for a player that lacked repair permissions nodes
|
Fixed a bug where salvage anvil noises wouldn't play for a player that lacked repair permissions nodes
|
||||||
Sharpened Claws now has settings to change its damage for PVE or PVP instead of a flat setting that applied to both
|
Sharpened Claws now has settings to change its damage for PVE or PVP instead of a flat setting that applied to both
|
||||||
Gore tick length is now customizable
|
Gore tick length is now customizable
|
||||||
|
Limit Breaks are now configurable per skill instead of one shared setting across all limit breaks skills
|
||||||
Removed the following Repair/Salvage permissions
|
Removed the following Repair/Salvage permissions
|
||||||
mcmmo.ability.repair.stonerepair
|
mcmmo.ability.repair.stonerepair
|
||||||
mcmmo.ability.repair.stringrepair
|
mcmmo.ability.repair.stringrepair
|
||||||
|
@ -232,8 +232,37 @@ public abstract class SkillCommand implements TabExecutor {
|
|||||||
|
|
||||||
protected abstract void dataCalculations(Player player, double skillValue);
|
protected abstract void dataCalculations(Player player, double skillValue);
|
||||||
|
|
||||||
protected String getLimitBreakDescriptionParameter() {
|
protected String getLimitBreakDescriptionParameter(SubSkillType subSkillType) {
|
||||||
if(AdvancedConfig.getInstance().canApplyLimitBreakPVE()) {
|
//TODO: Hacky gross code below
|
||||||
|
|
||||||
|
boolean pveAllowed = false;
|
||||||
|
|
||||||
|
switch(subSkillType) {
|
||||||
|
case ARCHERY_ARCHERY_LIMIT_BREAK:
|
||||||
|
if(pluginRef.getConfigManager().getConfigArchery().getLimitBreak().isEnabledForPVE()) {
|
||||||
|
pveAllowed = true;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case AXES_AXES_LIMIT_BREAK:
|
||||||
|
if(pluginRef.getConfigManager().getConfigAxes().getSubSkills().getConfigAxesLimitBreak().isEnabledForPVE()) {
|
||||||
|
pveAllowed = true;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case SWORDS_SWORDS_LIMIT_BREAK:
|
||||||
|
if(pluginRef.getConfigManager().getConfigSwords().getSubSkills().getSwordsLimitBreak().isEnabledForPVE()) {
|
||||||
|
pveAllowed = true;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case UNARMED_UNARMED_LIMIT_BREAK:
|
||||||
|
if(pluginRef.getConfigManager().getConfigUnarmed().getSubSkills().getUnarmedLimitBreak().isEnabledForPVE()) {
|
||||||
|
pveAllowed = true;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
pluginRef.getLogger().severe("This skill has no limit break PVE setting defined!");
|
||||||
|
}
|
||||||
|
|
||||||
|
if(pveAllowed) {
|
||||||
return "(PVP/PVE)";
|
return "(PVP/PVE)";
|
||||||
} else {
|
} else {
|
||||||
return "(PVP)";
|
return "(PVP)";
|
||||||
|
Loading…
Reference in New Issue
Block a user