turt2live

Untitled

Jan 20th, 2013
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.26 KB | None | 0 0
  1. public void onBlockBreak(BlockBreakEvent event){
  2.     final Block block = event.getBlock();
  3.     plugin.getServer().getScheduler().runTaskLater(plugin, new Runnable(){
  4.         public void run(){
  5.             block.setType(Material.SAPLING);
  6.         }
  7.     }, 3);
  8. }
Advertisement
Add Comment
Please, Sign In to add comment