Help With Particle Scheduler!

Discussion in 'Plugin Development' started by Mortal_Wombat, Jul 31, 2014.

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

    Mortal_Wombat

    Hey Guys I was just needing help with a plugin I making!

    I am trying to make it where when a player does a command they "turn into" a puff ball of smoke. I got that part down. But, i may be wrong plz tell me if i am I want to be wrong, i am pretty sure the code i have will do it for all online players.


    Bukkit.getServer().getScheduler().scheduleSyncRepeatingTask(this, new Runnable() {
    public void run() {
    for (Player p : Bukkit.getServer().getOnlinePlayers())


    {
    ParticleEffect.SMOKE.display(p.getLocation().add(0, 0, 0), 1, 0, 0, 0, 0,100);


    }
    }
    }, 0, 1);


    I will add the invis later. I just didnt want you guys have to sift through my crapy coding to find what i need! So thank you in advance!

    Lots of love <3
    Mortal :D
     
  2. Offline

    TheMcScavenger

    • What's up with the spacing?
    • Why are you executing the code every tick?
     
  3. Offline

    Mortal_Wombat

    Becuase thats the only way it got it to look good. I dont need help with that. I need help with making it play for that player

    Nvmd i got the help from some one who doesn't look at someone else's code and decided to pick it apart because they don't agree with it instead of helping

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 9, 2016
  4. Offline

    ZodiacTheories

    Who was that?
     
Thread Status:
Not open for further replies.

Share This Page