mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-23 08:11:12 +00:00
Remove default permissions from account command
This commit is contained in:
parent
90df06edd7
commit
8d332614b7
@ -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":
|
||||||
|
Loading…
Reference in New Issue
Block a user