diff --git a/src/main/java/com/gmail/nossr50/util/Misc.java b/src/main/java/com/gmail/nossr50/util/Misc.java index d48dc31b1..88bbb499e 100644 --- a/src/main/java/com/gmail/nossr50/util/Misc.java +++ b/src/main/java/com/gmail/nossr50/util/Misc.java @@ -38,13 +38,15 @@ public final class Misc { public static final double SKILL_MESSAGE_MAX_SENDING_DISTANCE = 10.0; // Sound Pitches & Volumes from CB - public static final float ANVIL_USE_PITCH = 0.3F; // Not in CB directly, I went off the place sound values - public static final float ANVIL_USE_VOLUME = 1.0F; // Not in CB directly, I went off the place sound values + public static final float ANVIL_USE_PITCH = 0.3F; // Not in CB directly, I went off the place sound values + public static final float ANVIL_USE_VOLUME = 1.0F; // Not in CB directly, I went off the place sound values public static final float FIZZ_VOLUME = 0.5F; public static final float POP_VOLUME = 0.2F; public static final float BAT_VOLUME = 1.0F; public static final float BAT_PITCH = 0.6F; public static final float GHAST_VOLUME = 1.0F; + public static final float LEVELUP_PITCH = 0.5F; // Reduced to differentiate between vanilla level-up + public static final float LEVELUP_VOLUME = 0.75F; // Use max volume always private Misc() {}; diff --git a/src/main/java/com/gmail/nossr50/util/skills/SkillUtils.java b/src/main/java/com/gmail/nossr50/util/skills/SkillUtils.java index bb5f53776..98cbd4439 100644 --- a/src/main/java/com/gmail/nossr50/util/skills/SkillUtils.java +++ b/src/main/java/com/gmail/nossr50/util/skills/SkillUtils.java @@ -4,6 +4,7 @@ import java.util.ArrayList; import java.util.List; import org.bukkit.Material; +import org.bukkit.Sound; import org.bukkit.block.Block; import org.bukkit.enchantments.Enchantment; import org.bukkit.entity.Player; @@ -166,6 +167,7 @@ public class SkillUtils { SpoutUtils.processLevelup(mcMMOPlayer, skillType, levelsGained); } else { + player.playSound(player.getLocation(), Sound.LEVEL_UP, Misc.LEVELUP_VOLUME, Misc.LEVELUP_PITCH); player.sendMessage(LocaleLoader.getString(capitalized + ".Skillup", levelsGained, profile.getSkillLevel(skillType))); } }