add key serialization

This commit is contained in:
Sen 2025-05-30 01:43:37 +02:00
parent be0ab15153
commit b14e539464
Signed by: sen
GPG key ID: 3AC50A6F47D1B722
5 changed files with 117 additions and 13 deletions

View file

@ -464,7 +464,7 @@ public final class Server implements IThreadListener {
long wtime = this.loadServerConfig();
if(this.keyPair == null) {
Log.SYSTEM.info("Generiere neues Schlüsselpaar");
this.keyPair = EncryptUtil.generateKeyPair();
this.keyPair = EncryptUtil.createKeypair();
}
// if(dtime == -1L) // {
// dtime = World.START_TIME;
@ -499,7 +499,7 @@ public final class Server implements IThreadListener {
}
else {
Log.SYSTEM.info("Generiere temporäres Schlüsselpaar");
this.keyPair = EncryptUtil.generateKeyPair();
this.keyPair = EncryptUtil.createKeypair();
Config.clear();
UniverseRegistry.clear();
Config.set("daylightCycle", "false", false);