public static void execute(Player p, String[] a) {

        if (a.length!=1) {
            p.sendMessage(CTF.TAG_BLUE + "Usage: /ctf leave");
        } else {
            if (CTF.gm.isPlaying(p)) {
                PlayerInventory inv = p.getInventory();
                inv.setHelmet(new ItemStack(Material.AIR, 1));
                inv.setChestplate(new ItemStack(Material.AIR, 1));
                inv.setLeggings(new ItemStack(Material.AIR, 1));
                inv.setBoots(new ItemStack(Material.AIR, 1));
                inv.clear();
                for (PotionEffect effect : p.getActivePotionEffects()) {
                    p.removePotionEffect(effect.getType());
                }
                if (CTF.fm.hasFlag(p)) {
                    Team flag = CTF.fm.getFlag(p);
                    if (flag==Team.RED) {
                        CTF.fm.getRedFlagSpawn().getBlock().setType(Material.WOOL);
                        CTF.fm.getRedFlagSpawn().getBlock().setData(DyeColor.RED.getData());
                        CTF.fm.removeFlag(p);
                        CTF.gm.broadcastMessageInGame(CTF.TAG_BLUE + CTF.tm.getPlayerNameInTeamColor(p) + " §2dropped the §cRed flag§2!");
                    } else if (flag==Team.BLUE) {
                        CTF.fm.getBlueFlagSpawn().getBlock().setType(Material.WOOL);
                        CTF.fm.getBlueFlagSpawn().getBlock().setData(DyeColor.BLUE.getData());
                        CTF.fm.removeFlag(p);
                        CTF.gm.broadcastMessageInGame(CTF.TAG_BLUE + CTF.tm.getPlayerNameInTeamColor(p) + " §2dropped the §9Blue flag§2!");
                    }
                }
                p.setScoreboard(Bukkit.getScoreboardManager().getNewScoreboard());
                CTF.gm.broadcastMessageInGame(CTF.TAG_BLUE + "§r" + CTF.tm.getPlayerNameInTeamColor(p) + " §cleft the game. ");
                CTF.gm.removePlayerFromGame(p, CTF.tm.getTeam(p));
                if (CTF.gm.getPlaying().size()==0) {
                    CTF.sm.setBlueCaptures(0);
                    CTF.sm.setRedCaptures(0);
                    CTF.sm.updateScoreboard();
                }
            } else {
                p.sendMessage(CTF.TAG_BLUE + "You are not in the game!");
            }
        }

    }