mirror of
https://github.com/trainerlord/WorldSystem.git
synced 2025-01-22 21:11:28 +01:00
log id
This commit is contained in:
parent
a9b0c79e9c
commit
150fc43548
@ -126,6 +126,7 @@ public class WorldSystemData extends AbstractSqlLiteDatabase {
|
|||||||
ResultSet res = this.query(String.format("SELECT * FROM %s WHERE player_uuid = '%s';", WS_WORLDS, uuid));
|
ResultSet res = this.query(String.format("SELECT * FROM %s WHERE player_uuid = '%s';", WS_WORLDS, uuid));
|
||||||
|
|
||||||
while (res.next()) {
|
while (res.next()) {
|
||||||
|
System.out.println(res);
|
||||||
int world_id = res.getInt("world_id");
|
int world_id = res.getInt("world_id");
|
||||||
String player_uuid = res.getString("player_uuid");
|
String player_uuid = res.getString("player_uuid");
|
||||||
String player_name = res.getString("player_name");
|
String player_name = res.getString("player_name");
|
||||||
|
@ -119,12 +119,6 @@ public class DependenceConfig {
|
|||||||
WorldSystemData db = WorldSystemData.connect();
|
WorldSystemData db = WorldSystemData.connect();
|
||||||
PlayerWorld[] worlds = db.getWorldsForPlayer(uuid);
|
PlayerWorld[] worlds = db.getWorldsForPlayer(uuid);
|
||||||
|
|
||||||
System.out.println(worlds[0].getWorld_id());
|
|
||||||
System.out.println(worlds[0].getLast_loaded());
|
|
||||||
System.out.println(worlds[0].getPlayer_name());
|
|
||||||
System.out.println(worlds[0].getPlayer_uuid());
|
|
||||||
|
|
||||||
|
|
||||||
return "ID" + worlds[0].getWorld_id() + "-" + uuid;
|
return "ID" + worlds[0].getWorld_id() + "-" + uuid;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user