1
0
mirror of https://github.com/GeyserMC/Floodgate.git synced 2025-12-31 04:36:47 +00:00

More 2.0 changes. Most important change is the switch from RSA to AES

Changing the encryption from RSA to AES will definitely break every 1.0 installation, but it had to be changed. Floodgate on a proxy like Velocity has to be able to change the Floodgate data, for example if the player is linked (and maybe later for skins as well).
This commit is contained in:
Tim203
2020-09-12 15:22:28 +02:00
parent f440fb76b0
commit 974a6d96c5
48 changed files with 903 additions and 619 deletions

View File

@@ -39,7 +39,9 @@ import java.util.concurrent.CompletionException;
public class SqliteDatabase extends CommonPlayerLink {
private Connection connection;
@Inject @Named("dataDirectory")
@Inject
@Named("dataDirectory")
private Path dataDirectory;
@Override
@@ -51,7 +53,7 @@ public class SqliteDatabase extends CommonPlayerLink {
Statement statement = connection.createStatement();
statement.setQueryTimeout(30); // set timeout to 30 sec.
statement.executeUpdate("create table if not exists LinkedPlayers (bedrockId string, javaUniqueId string, javaUsername string)");
} catch (ClassNotFoundException ignored) {
} catch (ClassNotFoundException exception) {
getLogger().error("The required class to load the SQLite database wasn't found");
} catch (SQLException exception) {
getLogger().error("Error while loading database", exception);