diff --git a/src/main/java/net/minestom/server/inventory/PlayerInventory.java b/src/main/java/net/minestom/server/inventory/PlayerInventory.java index a1eb77b30..bdc3975e0 100644 --- a/src/main/java/net/minestom/server/inventory/PlayerInventory.java +++ b/src/main/java/net/minestom/server/inventory/PlayerInventory.java @@ -168,7 +168,7 @@ public class PlayerInventory extends AbstractInventory implements EquipmentHandl @Override protected synchronized void safeItemInsert(int slot, @NotNull ItemStack itemStack) { Check.argCondition(!MathUtils.isBetween(slot, 0, getSize()), - "The slot " + slot + " does not exist for player"); + "The slot {0} does not exist for player", slot); Check.notNull(itemStack, "The ItemStack cannot be null, you can set air instead"); EntityEquipmentPacket.Slot equipmentSlot;