bossbar namespace configurable

This commit is contained in:
Chayapak 2023-10-06 09:44:09 +07:00
parent 3af39ed295
commit cf764ae195
3 changed files with 6 additions and 1 deletions

View file

@ -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();

View file

@ -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);

View file

@ -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