@Override
    public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
        if (label.equalsIgnoreCase("ctf")) {

            if (sender instanceof Player) {
                Player p = (Player) sender;

                if (args.length==0) {
                    p.sendMessage(CTF.TAG_BLUE + "CTF plugin made by Phantom_64!");
                } else if (args[0].equalsIgnoreCase("join")) {
                    CommandJoin.execute(p, args);
                } else if (args[0].equalsIgnoreCase("setspawn")) {
                    CommandSetSpawn.execute(p, args);
                } else if (args[0].equalsIgnoreCase("leave")) {
                    CommandLeave.execute(p, args);
                } else if (args[0].equalsIgnoreCase("setflagspawn")) {
                    CommandSetFlagSpawn.execute(p, args);
                }
            } else {
                sender.sendMessage(ChatColor.RED + "Only players can use this command.");
            }

        }

        return true;
    }