Fixed MissingFormatArgumentException (#727)

Format string is `"given_level": "Given %s with level %s %s times to %s"`
This commit is contained in:
筱傑 2022-05-09 20:44:46 +08:00 committed by Melledy
parent 9a7d78e0b7
commit bdc9e483ae

View File

@ -123,7 +123,7 @@ public final class GiveCommand implements CommandHandler {
} else if (itemData.getItemType() == ItemType.ITEM_WEAPON) {
CommandHandler.sendMessage(sender, translate("commands.give.given_with_level_and_refinement", Integer.toString(item), Integer.toString(lvl), Integer.toString(refinement), Integer.toString(amount), Integer.toString(targetPlayer.getUid())));
} else {
CommandHandler.sendMessage(sender, translate("commands.give.given_level", Integer.toString(item), Integer.toString(lvl), Integer.toString(amount)));
CommandHandler.sendMessage(sender, translate("commands.give.given_level", Integer.toString(item), Integer.toString(lvl), Integer.toString(amount), Integer.toString(targetPlayer.getUid())));
}
}