bossbar namespace configurable
This commit is contained in:
parent
3af39ed295
commit
cf764ae195
3 changed files with 6 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
|
@ -69,6 +69,8 @@ keys:
|
|||
|
||||
weatherApiKey: 'key here' # weatherapi.com key
|
||||
|
||||
bossBarNamespace: 'chomens_bot' # useful when you make a clone of the bot
|
||||
|
||||
core:
|
||||
start:
|
||||
x: 0
|
||||
|
|
Loading…
Reference in a new issue