diff --git a/src/main/java/com/songoda/ultimatekits/References.java b/src/main/java/com/songoda/ultimatekits/References.java index 2750359..24f83bf 100644 --- a/src/main/java/com/songoda/ultimatekits/References.java +++ b/src/main/java/com/songoda/ultimatekits/References.java @@ -12,8 +12,12 @@ public class References { public References() { try { prefix = Lang.PREFIX.getConfigValue() + " "; + playSound = UltimateKits.getInstance().getConfig().getBoolean("Main.Sounds Enabled"); - sound = Sound.valueOf(UltimateKits.getInstance().getConfig().getString("Main.Sound Played While Clicking In Inventories")); + + if (playSound) { + sound = Sound.valueOf(UltimateKits.getInstance().getConfig().getString("Main.Sound Played While Clicking In Inventories")); + } } catch (Exception ex) { Debugger.runReport(ex); }