Skip to content

Instantly share code, notes, and snippets.

@Justin42
Created June 11, 2012 14:25
Show Gist options
  • Save Justin42/2910314 to your computer and use it in GitHub Desktop.
Save Justin42/2910314 to your computer and use it in GitHub Desktop.
for(ItemStack itemStack : itemStash.collect(player)) {
player.sendMessage("Giving " + itemStack.getAmount());
remainingItems.addAll(player.getInventory().addItem(itemStack).values());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment