Adds a full access control list editor
This commit is contained in:
parent
4b71526270
commit
ae1da5f2b2
6 changed files with 201 additions and 6 deletions
|
@ -40,7 +40,7 @@ class Settings {
|
|||
UUID remoteLoginToken = UUID.ZERO;
|
||||
|
||||
PacketClient? client;
|
||||
User? superuser;
|
||||
User superuser = User.make("admin", "changeMe123", UserLevel.Super_User);
|
||||
|
||||
User? loggedInUser;
|
||||
|
||||
|
@ -59,6 +59,7 @@ class Settings {
|
|||
NbtUtils.writeBoolean(tag, "fts", FTS);
|
||||
|
||||
tag.put("server_creds", serverLoginCreds.save());
|
||||
tag.put("superuser", superuser.serialize());
|
||||
NbtUtils.writeUUID(tag, "token", NbtUUID.fromUUID(remoteLoginToken));
|
||||
|
||||
if (inst != null) tag.put("main", inst!.serialize());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue