Potion Effect Error

Discussion in 'Plugin Development' started by Cooper PluginDev, Jan 2, 2014.

Thread Status:
Not open for further replies.
  1. So I'm trying to make it so when you right click with a 'hyper axe' you get speed 2 for a few seconds, unforchantly it's not working. However when I set the potion effect to speed 4 it works... not sure what is going on.
    Here is my code:
    http://pastebin.com/bdikRJBN
     
  2. Offline

    Forseth11

    Cooper PluginDev First off please post your code in the form.
    You problem is that you have no time set for the potion effect try this:
    Code:java
    1. player.addPotionEffect(new PotionEffect(PotionEffectType.SPEED,
    2. 20, 1));
     
  3. Forseth11
    Still nothing, I did it how you did it but when I right click nothing happens?

    Nevermind fixed it! thanks man!

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 6, 2016
Thread Status:
Not open for further replies.

Share This Page