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
d0ab5fa5
Commit
d0ab5fa5
authored
May 17, 2022
by
tester233
Committed by
Melledy
May 17, 2022
Browse files
Add translation key
parent
263369af
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/command/commands/ResetShopLimitCommand.java
View file @
d0ab5fa5
...
@@ -19,6 +19,11 @@ public final class ResetShopLimitCommand implements CommandHandler {
...
@@ -19,6 +19,11 @@ public final class ResetShopLimitCommand implements CommandHandler {
return
;
return
;
}
}
if
(
args
.
isEmpty
())
{
CommandHandler
.
sendMessage
(
sender
,
translate
(
sender
,
"commands.resetShopLimit.usage"
));
return
;
}
targetPlayer
.
getShopLimit
().
forEach
(
x
->
x
.
setNextRefreshTime
(
0
));
targetPlayer
.
getShopLimit
().
forEach
(
x
->
x
.
setNextRefreshTime
(
0
));
targetPlayer
.
save
();
targetPlayer
.
save
();
CommandHandler
.
sendMessage
(
sender
,
translate
(
sender
,
"commands.status.success"
));
CommandHandler
.
sendMessage
(
sender
,
translate
(
sender
,
"commands.status.success"
));
...
...
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