mirror of
https://github.com/trainerlord/WorldSystem.git
synced 2025-01-06 18:47:52 +01:00
fix wrong id given
This commit is contained in:
parent
150fc43548
commit
fa15c203ba
@ -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");
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user