"Hello author,
I've been using your CustomItemLoader plugin to add custom items, and it's been great so far. I've set the maximum stack size for the item to 1, but I've encountered an issue.
I've created a plugin that gives the custom item to players using the following code:
$player->getInventory()->addItem($item);
While this code works initially, if I run it 2 or 3 times, it places the item in the same inventory slot. More Than stack size is 1, After The Item Cross The Stack Size Like More Than 1 Than I'm unable to move the item around in the inventory.
Could you please help me troubleshoot this issue and find a solution to ensure that the items are properly stacked in separate slots each time the code is executed?
Thank you for your assistance."
"Hello author,
I've been using your CustomItemLoader plugin to add custom items, and it's been great so far. I've set the maximum stack size for the item to 1, but I've encountered an issue.
I've created a plugin that gives the custom item to players using the following code:
While this code works initially, if I run it 2 or 3 times, it places the item in the same inventory slot. More Than stack size is 1, After The Item Cross The Stack Size Like More Than 1 Than I'm unable to move the item around in the inventory.
Could you please help me troubleshoot this issue and find a solution to ensure that the items are properly stacked in separate slots each time the code is executed?
Thank you for your assistance."