1
0
mirror of https://github.com/GeyserMC/Floodgate.git synced 2025-12-29 03:29:13 +00:00

Shade some dependencies

This commit is contained in:
Tim203
2021-07-23 17:44:01 +02:00
parent 3bcdd98c25
commit b66f10ae6d
7 changed files with 54 additions and 2 deletions

View File

@@ -45,6 +45,14 @@
<goals>
<goal>shade</goal>
</goals>
<configuration>
<relocations>
<relocation>
<pattern>org.sqlite</pattern>
<shadedPattern>org.geysermc.floodgate.shaded.org.sqlite</shadedPattern>
</relocation>
</relocations>
</configuration>
</execution>
</executions>
<configuration>

View File

@@ -59,7 +59,7 @@ public class SqliteDatabase extends CommonPlayerLink {
Path databasePath = dataDirectory.resolve("linked-players.db");
try {
Class.forName("org.sqlite.JDBC");
connection = DriverManager.getConnection("jdbc:sqlite:" + databasePath.toString());
connection = DriverManager.getConnection("jdbc:sqlite:" + databasePath);
try (Statement statement = connection.createStatement()) {
statement.executeUpdate(
"create table if not exists LinkedPlayers (bedrockId string, javaUniqueId string, javaUsername string)"