Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
ziqian zhang
Grasscutter
Commits
8d332614
Commit
8d332614
authored
Apr 28, 2022
by
memetrollsXD
Browse files
Remove default permissions from account command
parent
90df06ed
Changes
1
Show whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/command/commands/AccountCommand.java
View file @
8d332614
...
@@ -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"
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment