mirror of
https://github.com/songoda/UltimateKits.git
synced 2024-11-08 19:51:36 +01:00
91778f07be
code cleaned up.
38 lines
906 B
Java
38 lines
906 B
Java
package com.songoda.ultimatekits;
|
|
|
|
import com.songoda.ultimatekits.utils.Debugger;
|
|
import org.bukkit.Sound;
|
|
|
|
public class References {
|
|
|
|
private String prefix = null;
|
|
private boolean playSound = false;
|
|
private Sound sound = null;
|
|
|
|
References() {
|
|
try {
|
|
prefix = Lang.PREFIX.getConfigValue() + " ";
|
|
|
|
playSound = UltimateKits.getInstance().getConfig().getBoolean("Main.Sounds Enabled");
|
|
|
|
if (playSound) {
|
|
sound = Sound.valueOf(UltimateKits.getInstance().getConfig().getString("Main.Sound Played While Clicking In Inventories"));
|
|
}
|
|
} catch (Exception ex) {
|
|
Debugger.runReport(ex);
|
|
}
|
|
}
|
|
|
|
public String getPrefix() {
|
|
return this.prefix;
|
|
}
|
|
|
|
public boolean isPlaySound() {
|
|
return this.playSound;
|
|
}
|
|
|
|
public Sound getSound() {
|
|
return this.sound;
|
|
}
|
|
}
|