Remove default permissions from account command

This commit is contained in:
memetrollsXD 2022-04-28 00:28:16 +02:00 committed by Melledy
parent eaf2982ebc
commit b80b8aedd9

View File

@ -46,15 +46,10 @@ public final class AccountCommand implements CommandHandler {
CommandHandler.sendMessage(null, "Account already exists.");
return;
} else {
CommandHandler.sendMessage(null, "Account created with UID " + account.getPlayerUid() + ".");
for (String permission : Grasscutter.getConfig().getDispatchOptions().defaultPermissions) {
if (!permission.isBlank()) {
account.addPermission(permission);
}
}
account.addPermission('*');
account.save(); // Save account to database.
CommandHandler.sendMessage(null, "Account created with UID " + account.getPlayerUid() + ".");
}
return;
case "delete":