Potion Effect Help!!!

Discussion in 'Plugin Development' started by bartboy8, Jun 10, 2012.

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

    hammale

    O sry that was just me being 2 lazy to read the posts :D
     
    ZeusAllMighty11 likes this.
  2. Offline

    ZeusAllMighty11

    I guess if you wanted to do the manual method for this, you could do a command.

    So a manual command like: ' /potionchange ' would trigger the event for a length of time.
     
  3. Offline

    hammale

    yeah i guess that would work but were chatting on skype and i think we got some good ideas.

    For anyone interested heres what we plan on doing:

    We are going to use a PlayerInteractEvent to get the people who take the potion by right clicking and I think we can use a PotionSplashEvent to get all effected LivingEntities when a potion is thrown. A simple instanceof loop should allow us to get all effected players from the splash event. The rest of the code we should be able to take from above....

    EDIT: if anyone really wants to see the code just quote/PM me and ill gladly share :)
     
    ZeusAllMighty11 likes this.
Thread Status:
Not open for further replies.

Share This Page