From 9abe656a462250bc808cd817d97f3564809201ff Mon Sep 17 00:00:00 2001 From: tester233 <105267106+tester233@users.noreply.github.com> Date: Tue, 17 May 2022 19:19:05 +0800 Subject: [PATCH] Add translation key --- .../grasscutter/command/commands/ResetShopLimitCommand.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/emu/grasscutter/command/commands/ResetShopLimitCommand.java b/src/main/java/emu/grasscutter/command/commands/ResetShopLimitCommand.java index 19992efa9..9c1564e78 100644 --- a/src/main/java/emu/grasscutter/command/commands/ResetShopLimitCommand.java +++ b/src/main/java/emu/grasscutter/command/commands/ResetShopLimitCommand.java @@ -19,6 +19,11 @@ public final class ResetShopLimitCommand implements CommandHandler { return; } + if (args.isEmpty()) { + CommandHandler.sendMessage(sender, translate(sender, "commands.resetShopLimit.usage")); + return; + } + targetPlayer.getShopLimit().forEach(x -> x.setNextRefreshTime(0)); targetPlayer.save(); CommandHandler.sendMessage(sender, translate(sender, "commands.status.success"));