item Commands and Delays HELP!!!

Discussion in 'Plugin Development' started by Btomhat, Aug 27, 2013.

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

    Btomhat

    so im working on a plugin (thats kinda random) i need to put a delay between a volocity and an explosion. i have to code written and it works but i need to delay the explosion for like 2 secs. and then i want it to be able to execute the command by right clicking with a stick. please help im pretty new to coding with minecraft (mods and plugins) PLEASE HELP!!!
     
  2. Offline

    TCGDNoku

    Btomhat Create a random with a int. Then do
    if(intname==<number>) {
    //Do Stuff
    }

    And for delays look at the bukkit Scheduler
     
  3. Offline

    Btomhat

    lol i didn't need a randomizer but that may be helpful later. i was calling my plugin random
    .
     
Thread Status:
Not open for further replies.

Share This Page