SHARE
TWEET

Untitled

a guest Jul 18th, 2019 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package vercode.verdun.listeners;
  2.  
  3. import org.bukkit.Material;
  4. import org.bukkit.event.EventHandler;
  5. import org.bukkit.event.Listener;
  6. import org.bukkit.event.block.BlockRedstoneEvent;
  7.  
  8. public class RedStone implements Listener {
  9.     private static int ticks = 0;
  10.  
  11.     @EventHandler
  12.     public void blockRedstone(BlockRedstoneEvent event) {
  13.         ++ticks;
  14.         if (ticks >= 25500) {
  15.             event.getBlock().setType(Material.AIR);
  16.             ticks = 0;
  17.         }
  18.     }
  19. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top