@@ -0,0 +1,1805 @@
+package me.duncte123.skybot.commands.mod;%0A%0Aimport me.duncte123.skybot.Command;%0Aimport me.duncte123.skybot.utils.AirUtils;%0Aimport me.duncte123.skybot.utils.Config;%0Aimport net.dv8tion.jda.core.Permission;%0Aimport net.dv8tion.jda.core.entities.TextChannel;%0Aimport net.dv8tion.jda.core.events.message.MessageReceivedEvent;%0Aimport net.dv8tion.jda.core.utils.PermissionUtil;%0Aimport org.apache.commons.lang3.StringUtils;%0A%0Aimport java.util.Arrays;%0A%0Apublic class AnnounceCommand extends Command %7B%0A%0A    @Override%0A    public boolean called(String%5B%5D args, MessageReceivedEvent event) %7B%0A%0A        Permission%5B%5D perms = %7B%0A                Permission.ADMINISTRATOR%0A        %7D;%0A%0A        if(!PermissionUtil.checkPermission(event.getMember(), perms)) %7B%0A            event.getChannel().sendMessage(AirUtils.embedMessage(%22I'm sorry but you don't have permission to run this command.%22)).queue();%0A            return false;%0A        %7D%0A%0A        if(event.getMessage().getMentionedChannels().size() %3C 1) %7B%0A            event.getChannel().sendMessage(AirUtils.embedMessage(%22Correct usage is %60%22 + Config.prefix + %22announce %5B#Channel%5D %5BMessage%5D%60%22)).queue();%0A            return false;%0A        %7D%0A%0A        return true;%0A    %7D%0A%0A    @Override%0A    public void action(String%5B%5D args, MessageReceivedEvent event) %7B%0A        try%7B%0A%0A            TextChannel chann = event.getMessage().getMentionedChannels().get(0);%0A            String msg = StringUtils.join(Arrays.copyOfRange(args, 1, args.length), %22 %22);%0A%0A            chann.sendMessage(AirUtils.embedMessage(msg)).queue();%0A%0A        %7D%0A        catch (Exception e) %7B%0A            event.getChannel().sendMessage(AirUtils.embedMessage(%22WHOOPS: %22 + e.getMessage())).queue();%0A            e.printStackTrace();%0A        %7D%0A    %7D%0A%0A    @Override%0A    public String help() %7B%0A        return %22Announces a message.%22;%0A    %7D%0A%7D%0A

Create annouce command