remove swirly particle potion effect? (and a scheduler question)

Discussion in 'Plugin Development' started by stelar7, Sep 12, 2012.

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

    stelar7

    is it possible? if so, how?

    also, SyncRepeatingTasks seems to pause if you put a potion effect on a player

    afaik, this code should apply the effect again before it runs out, but it does not
    Code:
     getServer().getScheduler().scheduleSyncRepeatingTask(this, new Runnable() {
        @Override
        public void run() {
            p.addPotionEffect(new PotionEffect(PotionEffectType.SPEED, 1400, 2));
            p.addPotionEffect(new PotionEffect(PotionEffectType.JUMP, 1400, 2));
            p.addPotionEffect(new PotionEffect(PotionEffectType.SLOW_DIGGING, 1400, 1));
        }
    }, 0, 700);
    
     
Thread Status:
Not open for further replies.

Share This Page