kit pvp help

Discussion in 'Plugin Development' started by luigieai, Aug 26, 2013.

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

    luigieai

    Im doing a kit pvp code for a server, and i need 2 helps
    1) how i made an eventhandler to when i do i hit in a guy, the guy get a poison effect?
    2) how i made this eventhandler only work when a guy put a command

    sorry for bad english and hellp :D
     
  2. Offline

    Ultimate_n00b

    On the event check if the guys name is in the list, then poison the enemy.
    Put the guys name in a list when us uses a command.
     
  3. Offline

    luigieai

  4. Offline

    Ultimate_n00b

    .. you only came to ask for code? Why not make it yourself?
     
  5. Offline

    luigieai

    but i dont know what the code i put, victim.getpotion?
     
  6. Offline

    boss86741

    victim.addPotionEffect(new PotionEffect(PotionEffectType.POISON), duration)
     
  7. Offline

    luigieai

    @boss86731 thanks so much :D
    @Ultimate_n00b Thanks soo much too :D
    a little help, the code ent.addPotionEffect(new PotionEffect(PotionEffectType.POISON, 100, 1)); works too?
     
Thread Status:
Not open for further replies.

Share This Page