Discussion in 'Plugin Development' started by bartboy8, Jun 10, 2012.
O sry that was just me being 2 lazy to read the posts
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.
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
Separate names with a comma.