How may I remove potion effect (speed) if player entered to specific world-guard region?

Discussion in 'Plugin Development' started by Ibas, Jul 14, 2013.

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

    Ibas

    Hello,

    So, how may I remove potion effect (speed) if player entered to specific world-guard region? I made parkour area so I don't want that people would use pots there. Is there any API something called like: OnPlayerEnterToRegion on worldguard? I can't find something similiar :/.
     
  2. Offline

    chasechocolate

    Look on the WorldGuard Wiki for players entering regions, but to remove speed, just do this:
    Code:java
    1. player.removePotionEffect(PotionEffectType.SPEED);
     
  3. Offline

    Ibas

  4. Offline

    iFamasssxD

    Search WorldGaurd API and see what the method is for it.
     
  5. Offline

    Ibas

    Very useful comment :/. I tried to do that but no luck, so I'm pleasing now help.
     
Thread Status:
Not open for further replies.

Share This Page