public void deleteChannel(String channel){
		for(String data:plugin.getChannel(channel).members){//set online players to new channel
			ChatPlayer cp = plugin.getChatPlayer(data);
			cp.removeChannel(channel);
			if (plugin.globalDefault) {
				cp.setCurrentChannel(plugin.getChannel("Global"));
			} else {
				ChatChannel newc = plugin.getChannel(cp.getCurrentServer());
				cp.setCurrentChannel(newc);
			}
		}
		sql.initialise();//set offline to stop them being deleted
		try {
			sql.standardQuery("UPDATE BungeePlayers SET Current=NULL WHERE Current = '"+channel+"'");
		} catch (SQLException e1) {
			// TODO Auto-generated catch block
			e1.printStackTrace();
		}
		try {
			sql.standardQuery("DELETE FROM BungeeChannels WHERE ChannelName = '"+channel+"'");
		} catch (SQLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		sql.closeConnection();
		plugin.getUtilities().subtractChannel(plugin.chatChannels.get(channel).getOwner());
		plugin.chatChannels.remove(channel);
	}