guys it's possible add a timer between the item replaces? i'm using this code:
Code:
public void replaceitem(int oldID, int newID) {

for(int i2 = 0; i2 < playerItems.length; i2++)
{
if(playerItems[i2] == oldID+1)
{
int newamount = playerItemsN[i2];
deleteItem(oldID, getItemSlot(oldID), playerItemsN[i2]);
addItem(newID, newamount);
}
}
}
i wnna make it replace the items with 1 sec of interval

any ideas?