public void givePlayerOfflineXP(Player player) {
		String SQL = "SELECT * FROM " + tblOfflineGains + " WHERE `player` = ? AND `world` = ?";

		// plugin.info("givePlayerOfflineXP: " + player.getName() + " in " +
		// player.getWorld().getName());

		boolean deleteEntries = false;

		Connection con = getSQLConnection();
		PreparedStatement statement = null;
		try {
			statement = con.prepareStatement(SQL);

			statement.setString(1, player.getName());
			statement.setString(2, player.getWorld().getName());

			ResultSet result = statement.executeQuery();

			while (result.next()) {
				// plugin.info("givePlayerOfflineXP " + result.getInt(4)
				// +" from " + result.getString(5));

				plugin.sendMessage(player, F("stGiveOfflineXP", result.getInt(4), result.getString(5)));

				player.giveExp(result.getInt(4));
				deleteEntries = true;
			}

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

		if (deleteEntries == true) {
			SQL = "DELETE FROM " + tblOfflineGains + " WHERE `player` = ? AND `world` = ?;";

			try {
				statement = con.prepareStatement(SQL);
				statement.setString(1, player.getName());
				statement.setString(2, player.getWorld().getName());

				statement.executeUpdate();
			} catch (SQLException e) {
				e.printStackTrace();
			}
		}

		try {
			statement.close();
			con.close();
		} catch (SQLException e) {
			e.printStackTrace();
		}
	}