|
|
@ -62,12 +62,12 @@ public class dbPlayerCharacterHandler extends dbHandlerBase { |
|
|
|
ResultSet rs = preparedStatement.executeQuery(); |
|
|
|
ResultSet rs = preparedStatement.executeQuery(); |
|
|
|
|
|
|
|
|
|
|
|
if (rs.next()) { |
|
|
|
if (rs.next()) { |
|
|
|
|
|
|
|
|
|
|
|
int objectUUID = (int) rs.getLong("UID"); |
|
|
|
int objectUUID = (int) rs.getLong("UID"); |
|
|
|
|
|
|
|
|
|
|
|
if (objectUUID > 0) |
|
|
|
if (objectUUID > 0) |
|
|
|
playerCharacter = GET_PLAYER_CHARACTER(objectUUID); |
|
|
|
playerCharacter = GET_PLAYER_CHARACTER(objectUUID); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} catch (SQLException e) { |
|
|
|
} catch (SQLException e) { |
|
|
|
Logger.error(e); |
|
|
|
Logger.error(e); |
|
|
|
} |
|
|
|
} |
|
|
@ -362,6 +362,8 @@ public class dbPlayerCharacterHandler extends dbHandlerBase { |
|
|
|
preparedStatement.setString(3, String.valueOf(new_value)); |
|
|
|
preparedStatement.setString(3, String.valueOf(new_value)); |
|
|
|
|
|
|
|
|
|
|
|
ResultSet rs = preparedStatement.executeQuery(); |
|
|
|
ResultSet rs = preparedStatement.executeQuery(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (rs.next()) |
|
|
|
result = rs.getString("result"); |
|
|
|
result = rs.getString("result"); |
|
|
|
|
|
|
|
|
|
|
|
} catch (SQLException e) { |
|
|
|
} catch (SQLException e) { |
|
|
|