When using the /give command and targeting multiple players, the string commands.give.success.multiple should be displayed. Instead, commands.give.success.single is displayed, with the first placeholder (playername) used by number of players who were given the item.
net.minecraft.server.commands.GiveCommand#giveItem
if (players.size() == 1) {
source.sendSuccess(
() - > Component.translatable(
"commands.give.success.single", count, prototypeItemStack.getDisplayName(), ((ServerPlayer) players.iterator().next()).getDisplayName()
),
true
);
} else {
// This one use the bad translate key
source.sendSuccess(() - > Component.translatable("commands.give.success.single", count, prototypeItemStack.getDisplayName(), players.size()), true);
}
Can confirm for 1.17.1