Package me.taylorkelly.bigbrother.datablock

Examples of me.taylorkelly.bigbrother.datablock.PlacedBlock.send()


            Block block = event.getBlockPlaced();
            if (block.getType() == Material.LAVA || block.getType() == Material.STATIONARY_LAVA) {
                LavaFlowLogger.log(block, player.getName());
            }
            PlacedBlock dataBlock = new PlacedBlock(player.getName(), block, block.getWorld().getName());
            dataBlock.send();
        }
    }

    /*
    @Override
View Full Code Here


                    z = event.getClickedBlock().getZ() + event.getBlockFace().getModZ();
                    type = Material.LAVA.getId();
                    world = event.getClickedBlock().getWorld();
                    dataBlock = new PlacedBlock(event.getPlayer().getName(), world.getName(), x, y, z, type, (byte) 0);
                    LavaFlowLogger.log(new Location(world, x, y, z), event.getPlayer().getName());
                    dataBlock.send();
                    break;
                case WATER_BUCKET:
                    x = event.getClickedBlock().getX() + event.getBlockFace().getModX();
                    y = event.getClickedBlock().getY() + event.getBlockFace().getModY();
                    z = event.getClickedBlock().getZ() + event.getBlockFace().getModZ();
View Full Code Here

                    y = event.getClickedBlock().getY() + event.getBlockFace().getModY();
                    z = event.getClickedBlock().getZ() + event.getBlockFace().getModZ();
                    type = Material.WATER.getId();
                    world = event.getClickedBlock().getWorld();
                    dataBlock = new PlacedBlock(event.getPlayer().getName(), world.getName(), x, y, z, type, (byte) 0);
                    dataBlock.send();
                    break;
                case SIGN:
                    x = event.getClickedBlock().getX() + event.getBlockFace().getModX();
                    y = event.getClickedBlock().getY() + event.getBlockFace().getModY();
                    z = event.getClickedBlock().getZ() + event.getBlockFace().getModZ();
View Full Code Here

                        break;
                    default:
                        type = Material.SIGN.getId();
                    }
                    dataBlock = new PlacedBlock(event.getPlayer().getName(), world.getName(), x, y, z, type, (byte) data);
                    dataBlock.send();
                    break;
                case BUCKET:
                    BrokenBlock dataBlock2;
                    world = event.getClickedBlock().getWorld();
                    switch (event.getClickedBlock().getType()) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.