Potion effects

Discussion in 'Plugin Development' started by Tzipi, Jul 22, 2020.

  1. Offline

    Tzipi

    Is there anyway that I could make a potion last long for a certain player?
    for example lets say ther's a player who holds a sword
    that sword has the abillity to extend potion times and the players splash.
    So is there a way that the player can get more potion time than the players without the sword?
    Thanks
     
  2. Offline

    X21_Eagle_X21

    I don't know if this is the easiest way to do it, but I'd listen for a PlayerItemConsumeEvent and if it's a potion and the player is holding the correct item, remove the potion effect and then add one with a longer duration.
     
  3. Offline

    KarimAKL

Share This Page