PotRefill

Discussion in 'Plugin Requests' started by Joeperd, Feb 26, 2017.

Thread Status:
Not open for further replies.
  1. Offline

    Joeperd

    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.
     
    Last edited by a moderator: Feb 26, 2017
  2. Offline

    meatwagon25

  3. Online

    timtower Administrator Administrator Moderator

    Not everybody is using that though.
     
  4. Offline

    PQE

    Serious man? I coded you basically an identical plugin for soup lol
     
  5. Online

    timtower Administrator Administrator Moderator

    @PQE I think that you should make the item configurable then.
     
  6. Offline

    Joeperd

    Yeah, I used that too. I am just working on 2 seperate kitpvp's.
     
  7. Offline

    Dnyce72799

    But I already made this plugin for you.

    Sent from my LGLS775 using Tapatalk
     
  8. Online

    timtower Administrator Administrator Moderator

  9. Offline

    Dnyce72799

  10. Online

    timtower Administrator Administrator Moderator

    @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.
     
  11. Offline

    PQE

    Use firstEmpty() method.
     
  12. Offline

    Dnyce72799

    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.
     
    Last edited by a moderator: Feb 28, 2017
Thread Status:
Not open for further replies.

Share This Page