feat: Discord split channels

This commit is contained in:
Simon Giesel 2020-05-31 22:21:11 +02:00
parent 63e48614a7
commit 6a39973d93
2 changed files with 3 additions and 2 deletions

View file

@ -70,6 +70,7 @@ public class Varo extends JavaPlugin {
this.config.addDefault("Varo.Debug", false); this.config.addDefault("Varo.Debug", false);
this.config.addDefault("Varo.Discord.Token", "insert.token.here"); this.config.addDefault("Varo.Discord.Token", "insert.token.here");
this.config.addDefault("Varo.Discord.Channel", "numeric.channel.id"); this.config.addDefault("Varo.Discord.Channel", "numeric.channel.id");
this.config.addDefault("Varo.Discord.BroadcastChannel", "numeric.channel.id");
this.config.addDefault("Varo.RetroHealthRegen", false); this.config.addDefault("Varo.RetroHealthRegen", false);
this.config.addDefault("Varo.Bans", new ArrayList<String>()); this.config.addDefault("Varo.Bans", new ArrayList<String>());
this.config.addDefault("Varo.Border.X", 0); this.config.addDefault("Varo.Border.X", 0);

View file

@ -31,8 +31,8 @@ public class DiscordBot {
} }
public void broadcastMessage(final String message) { public void broadcastMessage(final String message) {
this.jda.getTextChannelById(this.plugin.getConfig().getString("Varo.Discord.Channel")).sendMessage(message) this.jda.getTextChannelById(this.plugin.getConfig().getString("Varo.Discord.BroadcastChannel"))
.queue(); .sendMessage(message).queue();
} }
private JDA getJDA() { private JDA getJDA() {