Simplify the SuperAbilityType ENUM

This commit is contained in:
nossr50
2019-09-23 14:44:40 -07:00
parent d4826eebd8
commit 67a2841705
33 changed files with 982 additions and 1038 deletions

View File

@@ -90,13 +90,13 @@ public class WoodcuttingManager extends SkillManager {
if (treeFellerReachedThreshold) {
treeFellerReachedThreshold = false;
pluginRef.getNotificationManager().sendPlayerInformation(player, NotificationType.SUBSKILL_MESSAGE_FAILED, "Woodcutting.Skills.TreeFeller.Threshold");
pluginRef.getNotificationManager().sendPlayerInformation(player, NotificationType.SUBSKILL_MESSAGE_FAILED, "SuperAbility.TreeFeller.Threshold");
return;
}
// If the tool can't sustain the durability loss
if (!handleDurabilityLoss(treeFellerBlocks, player.getInventory().getItemInMainHand())) {
pluginRef.getNotificationManager().sendPlayerInformation(player, NotificationType.SUBSKILL_MESSAGE_FAILED, "Woodcutting.Skills.TreeFeller.Splinter");
pluginRef.getNotificationManager().sendPlayerInformation(player, NotificationType.SUBSKILL_MESSAGE_FAILED, "SuperAbility.TreeFeller.Splinter");
double health = player.getHealth();