fix: fix getting invalid player data in database throwing error

This commit is contained in:
ChomeNS
2024-12-14 16:54:09 +07:00
parent 621f06f2e5
commit 6a11f237ef

View File

@@ -56,6 +56,8 @@ public class PlayersDatabasePlugin extends PlayersPlugin.Listener {
final ResultSet result = statement.executeQuery();
if (!result.isBeforeFirst()) return null; // doesn't exist
// this will use only the first one in the output
result.next();
final String stringJson = result.getString("data");