Plugin category: PvP Minecraft version: 1.7.1o Suggested name: PotRefill What I want: I want that the killer's empty inventory slots get refilled with Instant Health 2 SPLASH potions after he gets a kill. Ideas for commands: /refill to refill the empty inventory slots. Ideas for permissions: PotRefill.use <- To get your inventory refilled. PotRefill.use.refill <- To use the /refill command. PotRefill.bypass <- To bypass the refill. When I'd like it by: As soon as possible.
@Dnyce72799 That code will also try to add potions to slots that aren't empty. Try looping through the inventory and only put a potion on places where the item is null.
Are you sure? I tried it before I uploaded it, and I just tried it now. It works fine, it doesn't add potions to empty slots... Thanks, I didn't know that was a thing. EDIT by Moderator: merged posts, please use the edit button instead of double posting.