@EventHandler
	public void onPlayerQuit(PlayerQuitEvent event) {

		try {
			PreparedStatement statement = HyperPVP.getStorage().queryParams("UPDATE users SET last_online = ? WHERE username = ?"); {
				statement.setLong(1, (System.currentTimeMillis() / 1000L));
				statement.setString(2, event.getPlayer().getName());
				statement.execute();
			}

			HyperPVP.getStorage().executeQuery("DELETE FROM servers_users WHERE user = '" + event.getPlayer().getName() + "'");

		} catch (Exception e) {
			e.printStackTrace();
		}


		Player player = event.getPlayer();

		if (HyperPVP.getTeamCycle().containsKey(player)) {
			HyperPVP.getTeamCycle().remove(player);
		}

		if (HyperPVP.getGameSessions().containsKey(player.getName())) {
			HyperPVP.getGameSessions().get(player.getName()).leaveGame(true);
			HyperPVP.getGameSessions().remove(player.getName());
		}

		HyperPVP.getSpectators().remove(player.getName());
		event.setQuitMessage(ChatColor.DARK_AQUA + event.getPlayer().getName() + ChatColor.YELLOW + " left the game");
	}