Package me.taylorkelly.bigbrother.datablock

Examples of me.taylorkelly.bigbrother.datablock.BrokenBlock


            Player player = event.getPlayer();
            BBPlayerInfo pi = BBUsersTable.getInstance().getUserByName(player.getName());
            plugin.closeChestIfOpen(pi);
            if (BBSettings.blockBreak && pi.getWatched()) {
                Block block = event.getBlock();
                BrokenBlock dataBlock = new BrokenBlock(player.getName(), block, block.getWorld().getName());
                dataBlock.send();
            }
        }
    }
View Full Code Here


                    }
                    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()) {
                    case STATIONARY_LAVA:
                    case LAVA:
                        x = event.getClickedBlock().getX();
                        y = event.getClickedBlock().getY();
                        z = event.getClickedBlock().getZ();
                        type = Material.LAVA.getId();
                        dataBlock2 = new BrokenBlock(BBUsersTable.getInstance().getUserByName(event.getPlayer().getName()), world.getName(), x, y, z, type, (byte) 0);
                        dataBlock2.send();
                        break;
                    case STATIONARY_WATER:
                    case WATER:
                        x = event.getClickedBlock().getX();
                        y = event.getClickedBlock().getY();
                        z = event.getClickedBlock().getZ();
                        type = Material.WATER.getId();
                        dataBlock2 = new BrokenBlock(BBUsersTable.getInstance().getUserByName(event.getPlayer().getName()), world.getName(), x, y, z, type, (byte) 0);
                        dataBlock2.send();
                    }
                    break;
                default:
                   
                    switch (event.getClickedBlock().getType()) {
View Full Code Here

TOP

Related Classes of me.taylorkelly.bigbrother.datablock.BrokenBlock

Copyright © 2018 www.massapicom. 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.