fix wrong id given

This commit is contained in:
danielb 2024-05-23 19:29:34 +00:00
parent 150fc43548
commit fa15c203ba
2 changed files with 1 additions and 2 deletions

View File

@ -126,7 +126,6 @@ public class WorldSystemData extends AbstractSqlLiteDatabase {
ResultSet res = this.query(String.format("SELECT * FROM %s WHERE player_uuid = '%s';", WS_WORLDS, uuid));
while (res.next()) {
System.out.println(res);
int world_id = res.getInt("world_id");
String player_uuid = res.getString("player_uuid");
String player_name = res.getString("player_name");

View File

@ -94,7 +94,7 @@ public class DependenceConfig {
WorldSystemData db = WorldSystemData.connect();
int id = db.getHighestID();
int id = db.getHighestID() + 1;
String uuid = this.uuid.toString();
String name = PlayerWrapper.getOfflinePlayer(this.uuid).getName();
long last_loaded = System.currentTimeMillis();