<repo_name>SwordOfSouls/BungeeKick<file_sep>/src/main/java/net/ultibuild/UpdateChecker.java
package net.ultibuild;

import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import java.util.Objects;
import java.util.Scanner;
import java.util.logging.Level;

public class UpdateChecker {
    private static String ver = "1.2";

    public static void checkForUpdates() {
        if(getLatestVersion() != "") {
            if(!Objects.equals(ver, getLatestVersion())) {
                Main.getInstance().getLogger().log(Level.INFO,"A new version is avalible!");
                Main.getInstance().getLogger().log(Level.INFO,"Your version: " + ver + " Newest: " + getLatestVersion());
                Main.getInstance().getLogger().log(Level.INFO,"Update here: https://www.spigotmc.org/resources/94728");
            }
        } else {
            Main.getInstance().getLogger().log(Level.INFO,"An error occurred getting latest version!");
        }
    }

    public static String getLatestVersion() {
        try {
            URL url = new URL("https://api.spigotmc.org/legacy/update.php?resource=94728");
            InputStream inputStream = url.openStream();
            Scanner scanner = new Scanner(inputStream);
            String string = scanner.nextLine();
            return string;
        } catch (Throwable io) {
            return "";
        }

    }
}
<file_sep>/src/main/java/net/ultibuild/Commands/kick.java
package net.ultibuild.Commands;

import net.md_5.bungee.api.ChatColor;
import net.md_5.bungee.api.CommandSender;
import net.md_5.bungee.api.ProxyServer;
import net.md_5.bungee.api.chat.TextComponent;
import net.md_5.bungee.api.connection.ProxiedPlayer;
import net.md_5.bungee.api.plugin.Command;

public class kick extends Command {
    public kick() {
        super("kick");
    }

    @Override
    public void execute(CommandSender sender, String[] args) {
        if (!(sender instanceof ProxiedPlayer)) {
            if(args.length >= 2) {
                try {
                    ProxiedPlayer p = ProxyServer.getInstance().getPlayer(args[0]);
                    TextComponent text = new TextComponent("");
                    for(int i = 1; i < args.length; i++) {
                        TextComponent reason = new TextComponent(ChatColor.translateAlternateColorCodes('&',args[i] + " "));
                        text.addExtra(reason);
                    }
                    text.setColor(ChatColor.RED);
                    p.disconnect(text);
                    System.out.println("Successfully kicked user " + p.getDisplayName() + " for reason: " + text.toPlainText());
                } catch (Throwable ie) {
                    System.out.println("An error occured processing kick!");
                }
            } else {
                System.out.println("Not enough args for kick! (/kick <playername> <reason>)");
            }
        }
    }
}<file_sep>/README.md
# BungeeKick
 
