mirror of
https://github.com/simon987/Much-Assembly-Required.git
synced 2025-04-10 14:26:45 +00:00
update properties on secret key change
This commit is contained in:
parent
37b7bbff98
commit
c8214236ab
@ -82,6 +82,7 @@ public class GameServer implements Runnable {
|
||||
secretKey = config.getString("secret_key");
|
||||
if (secretKey == null) {
|
||||
secretKey = keyGenerator.generate();
|
||||
config.setString("secret_key", secretKey);
|
||||
}
|
||||
|
||||
//Load all plugins in plugins folder, if it doesn't exist, create it
|
||||
@ -325,5 +326,6 @@ public class GameServer implements Runnable {
|
||||
|
||||
public void setSecretKey(String secretKey) {
|
||||
this.secretKey = secretKey;
|
||||
config.setString("secret_key", secretKey);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user