diff --git a/expansion/expansion-player-database/src/main/kotlin/taboolib/expansion/DatabaseHandler.kt b/expansion/expansion-player-database/src/main/kotlin/taboolib/expansion/DatabaseHandler.kt index a14e1c504..f9be98552 100644 --- a/expansion/expansion-player-database/src/main/kotlin/taboolib/expansion/DatabaseHandler.kt +++ b/expansion/expansion-player-database/src/main/kotlin/taboolib/expansion/DatabaseHandler.kt @@ -78,6 +78,10 @@ fun setupPlayerDatabase(file: File = newFile(getDataFolder(), "data.db"), tableN playerDatabase = Database(TypeSQLite(file, tableName)) } +fun buildPlayerDatabase(file: File = newFile(getDataFolder(), "data.db"), table: String): Database { + return Database(TypeSQLite(file, table)) +} + fun ProxyPlayer.getDataContainer(): DataContainer { return playerDataContainer[uniqueId] ?: error("unavailable") }