Breaking Blocks With Schedule

Discussion in 'Plugin Development' started by Wantsome909, Aug 17, 2013.

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

    Wantsome909

    I'm try to use a Repeating Task to remove certain blocks. But my code never works! :(
    can some one show me how?
    all help will be appreciated. :)

    Here Code:
    Code:java
    1.  
    2. this.getServer().getScheduler().scheduleSyncRepeatingTask(this, new Runnable() {
    3. public void run() {
    4. Bukkit.getWorld("world").getBlockTypeIdAt(wood, door, window);
    5. }
    6. }, 500, 500);
    7.  


    im trying to destory block at the end of the timer.
     
  2. Offline

    fireblast709

    any code you can show us?
     
    etaxi341 likes this.
  3. Offline

    Wantsome909

Thread Status:
Not open for further replies.

Share This Page