Added Server Api; Added maxStackSize param to defineItem