Adds a full access control list editor

This commit is contained in:
zontreck 2024-07-02 17:48:06 -07:00
parent 4b71526270
commit ae1da5f2b2
6 changed files with 201 additions and 6 deletions

View file

@ -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());