Add translation key

This commit is contained in:
tester233 2022-05-17 19:19:05 +08:00 committed by Melledy
parent 3c2b4f355b
commit 9abe656a46

View File

@ -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"));