Skip to content
Snippets Groups Projects
Commit b80b8aed authored by memetrollsXD's avatar memetrollsXD Committed by Melledy
Browse files

Remove default permissions from account command

parent eaf2982e
Branches
Tags
No related merge requests found
...@@ -46,15 +46,10 @@ public final class AccountCommand implements CommandHandler { ...@@ -46,15 +46,10 @@ public final class AccountCommand implements CommandHandler {
CommandHandler.sendMessage(null, "Account already exists."); CommandHandler.sendMessage(null, "Account already exists.");
return; return;
} else { } else {
CommandHandler.sendMessage(null, "Account created with UID " + account.getPlayerUid() + "."); account.addPermission('*');
for (String permission : Grasscutter.getConfig().getDispatchOptions().defaultPermissions) {
if (!permission.isBlank()) {
account.addPermission(permission);
}
}
account.save(); // Save account to database. account.save(); // Save account to database.
CommandHandler.sendMessage(null, "Account created with UID " + account.getPlayerUid() + ".");
} }
return; return;
case "delete": case "delete":
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment