From b80b8aedd989d84c4376146e58ab6cdfccb3a3eb Mon Sep 17 00:00:00 2001 From: memetrollsXD Date: Thu, 28 Apr 2022 00:28:16 +0200 Subject: [PATCH] Remove default permissions from account command --- .../grasscutter/command/commands/AccountCommand.java | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/main/java/emu/grasscutter/command/commands/AccountCommand.java b/src/main/java/emu/grasscutter/command/commands/AccountCommand.java index 52848e56c..fc169c3de 100644 --- a/src/main/java/emu/grasscutter/command/commands/AccountCommand.java +++ b/src/main/java/emu/grasscutter/command/commands/AccountCommand.java @@ -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":