add worldguard flag for force pvp

This commit is contained in:
YouHaveTrouble
2021-08-03 17:24:17 +02:00
parent 60b360f170
commit f182c2c859
10 changed files with 129 additions and 22 deletions
@@ -64,12 +64,12 @@ public class DatabaseSQLite {
}
}
Statement statement = conn.createStatement();
String sql = "SELECT * FROM `players` WHERE `player_uuid` = '" + uuid.toString() + "';";
String sql = "SELECT * FROM `players` WHERE `player_uuid` = '" + uuid + "';";
statement.execute(sql);
ResultSet result = statement.getResultSet();
boolean state = result.getBoolean("pvpenabled");
conn.close();
return new PlayerData(state);
return new PlayerData(uuid, state);
} catch (SQLException throwables) {
throwables.printStackTrace();
}