feat: Discord split channels
This commit is contained in:
		
							parent
							
								
									63e48614a7
								
							
						
					
					
						commit
						6a39973d93
					
				
					 2 changed files with 3 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -70,6 +70,7 @@ public class Varo extends JavaPlugin {
 | 
			
		|||
        this.config.addDefault("Varo.Debug", false);
 | 
			
		||||
        this.config.addDefault("Varo.Discord.Token", "insert.token.here");
 | 
			
		||||
        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.Bans", new ArrayList<String>());
 | 
			
		||||
        this.config.addDefault("Varo.Border.X", 0);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -31,8 +31,8 @@ public class DiscordBot {
 | 
			
		|||
    }
 | 
			
		||||
 | 
			
		||||
    public void broadcastMessage(final String message) {
 | 
			
		||||
        this.jda.getTextChannelById(this.plugin.getConfig().getString("Varo.Discord.Channel")).sendMessage(message)
 | 
			
		||||
                .queue();
 | 
			
		||||
        this.jda.getTextChannelById(this.plugin.getConfig().getString("Varo.Discord.BroadcastChannel"))
 | 
			
		||||
                .sendMessage(message).queue();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    private JDA getJDA() {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue