Advertisement
spigotdev

Untitled

Dec 8th, 2018
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. Block block = player.getLocation().getBlock().getRelative(DOWN);
  2. MyTask myTask = new MyTask(block);
  3. myTask.runTaskLater(plugin, 60L);
  4.  
  5. public class MyTask extends BukkitRunnable {
  6. private Block block
  7.  
  8. public MyTask(Block block {
  9. this.block = block;
  10. }
  11.  
  12. @Override
  13. public void run(){
  14. block.setType(Material.AIR);
  15. }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement