bossbar namespace configurable
This commit is contained in:
@@ -19,6 +19,8 @@ public class Configuration {
|
||||
|
||||
public String weatherApiKey;
|
||||
|
||||
public String bossBarNamespace = "chomens_bot";
|
||||
|
||||
public Core core = new Core();
|
||||
public Discord discord = new Discord();
|
||||
public Music music = new Music();
|
||||
|
||||
@@ -28,10 +28,11 @@ public class BossbarManagerPlugin extends Bot.Listener {
|
||||
public boolean enabled = true;
|
||||
public boolean actionBar = false;
|
||||
|
||||
public final String bossBarPrefix = "chomens_bot:";
|
||||
public final String bossBarPrefix;
|
||||
|
||||
public BossbarManagerPlugin (Bot bot) {
|
||||
this.bot = bot;
|
||||
this.bossBarPrefix = bot.config.bossBarNamespace + ":";
|
||||
|
||||
bot.addListener(this);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user