Client class. (server sided obviously)
Code:
int[][] startingItems = {{995, 7000000}, {6570, 1}};
In your initialize method:
Code:
for (int i = 0; i < startingItems.length; i++) actionSender.sendInventoryItem(startingItems[i][0], startingItems[i][1]);
PI (because you're too lazy to change a variable name...):
Code:
for (int i = 0; i < startingItems.length; i++) getItems().addItem(startingItems[i][0], startingItems[i][1]);
Usage:
Then you add your items to the multi dimensional array, in the one i provided, you'd get 7 Million coins and 1 firecape, so
Code:
int[][] startingItems = {{itemId, amount}, {2nd itemId, 2nd amount}};
and you can add as many as you want.