mirror of
https://github.com/songoda/UltimateKits.git
synced 2024-09-30 06:37:32 +02:00
Respect sound enable/disable setting in config.
This commit is contained in:
parent
c89ec14608
commit
cb6289109d
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user