@Subscribe
	public void changeServer(ServerConnectedEvent event) throws SQLException {
		if(!plugin.chatEnabled)return;
		if (!plugin.onlinePlayers.containsKey(event.getPlayer().getName())) {
			String player = event.getPlayer().getName();
			String connection = event.getPlayer().getAddress().getAddress()
					.toString();
			if (!plugin.getUtilities().playerExists(player)) {
				plugin.getUtilities().createPlayer(player, connection);
			}
			if (!plugin.onlinePlayers.containsKey(event.getPlayer().getName())) {
				plugin.getUtilities()
						.getChatPlayer(event.getPlayer().getName());
			}
		}
		ChatPlayer cp = plugin.getChatPlayer(event.getPlayer().getName());
		ChatChannel cc = cp.getCurrentChannel();

		ChatChannel oldServerchan = plugin.getChannel(cp.getCurrentServer());
		ChatChannel newServerchan = plugin.getChannel(event.getServer()
				.getInfo().getName());
		if (oldServerchan != null) {
			oldServerchan.removeMember(cp.getName());// remove player from old
		}
		newServerchan.addMember(cp);// add to new
		cp.addChannel(newServerchan.getName());
		cp.setCurrentServer(event.getServer().getInfo().getName());
		if (cc == null) {
			cp.setCurrentChannel(newServerchan, false);
		} else if (cc.equals(oldServerchan)) {// swap if current = old or null
			cp.setCurrentChannel(newServerchan, false);
		}
	}