public void updateStatistics(ScoreType type, Session from) {

		if (this.userId == 0) {
			return;
		}
		
		try {
			java.sql.PreparedStatement statement = HyperPVP.getStorage().queryParams("INSERT INTO `users_statistics` (`from_id`, `to_id`, `type`, `time`, `map`, `mode`) VALUES (?, ?, ?, ?, ?, ?)"); {
				statement.setInt(1, this.getUserId());
				statement.setInt(2, from.getUserId());
				statement.setString(3, type.toString());
				statement.setLong(4, (System.currentTimeMillis() / 1000L));
				statement.setString(5, HyperPVP.getMap().getMapName());
				statement.setString(6, HyperPVP.getMap().getType().getType());
				statement.execute();
			}


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