Adding a timer to a Command to set blocks to air

Discussion in 'Plugin Development' started by diamondcodes, Aug 28, 2014.

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

    diamondcodes

    Hi,
    So I have a plugin where on command it spawns falling blocks at certain coordinates and then something happens, but then I need to remove the falling blocks after their purpose is done So is there anyway that after I type the command /test to spawn the falling blocks that somebody could show me how to add a timer so that after lets say 1 minute the falling blocks that are on the ground turn to air?
     
  2. Bukkit.getSchedular().scheduleSyncDelayedTask(plugin, new Runnable(){

    @Override
    public void run(){
    the thing that you want to delay
    }

    }, delay);
     
Thread Status:
Not open for further replies.

Share This Page