
Sending item to players who are not online!
Sending item to players who are not online!
A player creating a ticket, asking if you can refund their item, then you need to wait them to join the server, throwing that item at their face!
Nope, use OfflineClaim instead, sending the item straight to their inventory when they go online!
Sending item on hand to player using /senditem
If they are online, the item should be given to them immediately
If they are offline, they could do /claim to get the item when joining the player
UUID playerUuid = player.getUniqueId();
ItemStack[] items = new ItemStack[]{ new ItemStack(Material.DIAMOND, 5) };
// Access API through OfflineClaimPlugin and call the method
OfflineClaimPlugin.api.addClaimItemsToInventory(playerUuid, items);