Splash Potion Problem

Discussion in 'Plugin Development' started by Eller, Jan 23, 2015.

Thread Status:
Not open for further replies.
  1. Hey there, I got a question.

    My code here:
    http://pastebin.com/8xte476Q

    Let's the Golden hoe throw a splash potion of Regeneration
    But it will be Regen 1 for 25 secs.

    I want to change that to Regen 10 or something for 2 or 3 seconds,
    Has anyone got an idea how?

    Also I've got a Freezing wand here.
    I would actually want to have it when I hit the enemy with the Snowball coming out of the wand that there is a Ice cocoon over him.
    But I had litterly no idea how i could make that work so I just have made it to the way to Slow people when hitted by the Snowball, but I don't know that either, Can you help me?

    I just only have made the Snowball coming out of the wand and the cooldown

    Code: http://pastebin.com/kTFfC6VD
     
  2. Offline

    PreFiXAUT

    1. You're missing a "}" somewhere (where you create your Potion it doesn't close)

    2. (Line 39 & 40)
    Code:
    // Create a potion type
                                Potion potion = new Potion(PotionType.REGEN, 1);
    Simply set the Potion Level to "10 or something" and start another BukkitTask (where your other one is) which removes the Effect from the Player after the needed time again.
     
  3. @PreFiXAUT Well thanks for your reply. but I would like examples because I don't really know what to do now :/ , Also I got more problems again I really would like help now
     
  4. Offline

    mkezar

    If you need examples you should probably take the time to learn java. We're not here to "spoonfeed". He made it pretty clear, put a } at line 39 or 40
     
  5. @mkezar
    1 } didnt make any change I asked for HOW YOU COULD CHANGE THE POTION
     
  6. Offline

    PreFiXAUT

    @Eller CAPS LOCK WONT MAKE IT MORE CLEAR AND WONT MAKE YOU A PROGRAMMER. becauseWeUseCamelCase!

    No but seriously, if you don't wanna search ANYTHING by your own, and just want to get everything told you, you should quit programming right away. Then just simply get someone who is a Programmer and let HIM/HER (equality people...important) create it.
     
  7. @PreFiXAUT I'm not sure but I looked up everything up to now. I got 3/4 of my KitPvP server working automaticly only this lacks me
     
Thread Status:
Not open for further replies.

Share This Page