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 weatherApiKey;
|
||||||
|
|
||||||
|
public String bossBarNamespace = "chomens_bot";
|
||||||
|
|
||||||
public Core core = new Core();
|
public Core core = new Core();
|
||||||
public Discord discord = new Discord();
|
public Discord discord = new Discord();
|
||||||
public Music music = new Music();
|
public Music music = new Music();
|
||||||
|
|
|
@ -28,10 +28,11 @@ public class BossbarManagerPlugin extends Bot.Listener {
|
||||||
public boolean enabled = true;
|
public boolean enabled = true;
|
||||||
public boolean actionBar = false;
|
public boolean actionBar = false;
|
||||||
|
|
||||||
public final String bossBarPrefix = "chomens_bot:";
|
public final String bossBarPrefix;
|
||||||
|
|
||||||
public BossbarManagerPlugin (Bot bot) {
|
public BossbarManagerPlugin (Bot bot) {
|
||||||
this.bot = bot;
|
this.bot = bot;
|
||||||
|
this.bossBarPrefix = bot.config.bossBarNamespace + ":";
|
||||||
|
|
||||||
bot.addListener(this);
|
bot.addListener(this);
|
||||||
|
|
||||||
|
|
|
@ -69,6 +69,8 @@ keys:
|
||||||
|
|
||||||
weatherApiKey: 'key here' # weatherapi.com key
|
weatherApiKey: 'key here' # weatherapi.com key
|
||||||
|
|
||||||
|
bossBarNamespace: 'chomens_bot' # useful when you make a clone of the bot
|
||||||
|
|
||||||
core:
|
core:
|
||||||
start:
|
start:
|
||||||
x: 0
|
x: 0
|
||||||
|
|
Loading…
Reference in a new issue