Add optional web jukebox: vote for arena music tracks via a small HTTP API
Build / build (push) Successful in 1m19s
Build / build (push) Successful in 1m19s
This commit is contained in:
@@ -109,6 +109,30 @@ public class ConfigManager {
|
||||
return (float) config.getDouble("music.volume", 1.0);
|
||||
}
|
||||
|
||||
public boolean isJukeboxEnabled() {
|
||||
return config.getBoolean("jukebox.enabled", false);
|
||||
}
|
||||
|
||||
public String getJukeboxBindAddress() {
|
||||
return config.getString("jukebox.bind-address", "127.0.0.1");
|
||||
}
|
||||
|
||||
public int getJukeboxPort() {
|
||||
return config.getInt("jukebox.port", 8642);
|
||||
}
|
||||
|
||||
public String getJukeboxAllowedOrigin() {
|
||||
return config.getString("jukebox.allowed-origin", "*");
|
||||
}
|
||||
|
||||
public int getJukeboxVoteCodeMinutes() {
|
||||
return config.getInt("jukebox.vote-code-minutes", 10);
|
||||
}
|
||||
|
||||
public List<String> getJukeboxTracks() {
|
||||
return config.getStringList("jukebox.tracks");
|
||||
}
|
||||
|
||||
public boolean isPlaceholderApiEnabled() {
|
||||
return config.getBoolean("integrations.placeholderapi", true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user