diff --git a/plugin/src/main/java/me/libraryaddict/disguise/utilities/sounds/SoundManager.java b/plugin/src/main/java/me/libraryaddict/disguise/utilities/sounds/SoundManager.java index 6f64aebe..d5e9b87e 100644 --- a/plugin/src/main/java/me/libraryaddict/disguise/utilities/sounds/SoundManager.java +++ b/plugin/src/main/java/me/libraryaddict/disguise/utilities/sounds/SoundManager.java @@ -114,9 +114,15 @@ public class SoundManager { String[] sounds = s.split(",", -1); + // TODO Change sounds to attempt MC name, then fallback to bukkit enum for (String sound : sounds) { try { - Sound actualSound = ReflectionManager.fromEnum(Sound.class, sound); + Sound actualSound; + try { + actualSound = Sound.valueOf(sound); + } catch (Exception ignored) { + actualSound = ReflectionManager.fromEnum(Sound.class, sound); + } group.addSound(actualSound, type); } catch (Exception ignored) {