Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @EventHandler
- public void onPlayerInteract(PlayerInteractEvent reducto) {
- Player caster = (Player) reducto.getPlayer();
- Block b = caster.getTargetBlock(null, 100);
- Location location = b.getLocation();
- if (Main.explode.get(player)) {
- if (caster.getItemInHand().getType() == Material.STICK && reducto.getAction() == Action.LEFT_CLICK_AIR) {
- TNTPrimed tnt = caster.getWorld().spawn(location, TNTPrimed.class);
- tnt.setFuseTicks(0);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement