Potion effects

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

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


    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?
  2. Offline


    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


Thread Status:
Not open for further replies.

Share This Page