mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-27 21:10:54 +00:00
Remove default permissions from account command
This commit is contained in:
parent
3414f28a81
commit
c352889442
@ -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":
|
||||
|
Loading…
Reference in New Issue
Block a user