Examples of send()


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

        Player player = event.getPlayer();
        BBPlayerInfo pi = BBUsersTable.getInstance().getUserByName(player.getName());
        plugin.closeChestIfOpen(pi);
        if (BBSettings.commands && pi.getWatched()) {
            Command dataBlock = new Command(player, event.getMessage(), player.getWorld().getName());
            dataBlock.send();
        }
    }
   
    @Override
    public void onPlayerJoin(PlayerJoinEvent event) {
View Full Code Here

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

                dataBlock.send();
            }
        }
        if (!event.isCancelled() && BBSettings.blockPlace) {
            CreateSignText dataBlock = new CreateSignText(event.getPlayer().getName(), event.getLines(), event.getBlock());
            dataBlock.send();
        }
    }
}
View Full Code Here

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

                if(world.getBlockAt(x, y, z).getState() instanceof Chest) {
                    Chest chest = (Chest)world.getBlockAt(x, y, z).getState();
                    ItemStack[] orig = pi.getOldChestContents();
                    ItemStack[] latest = chest.getInventory().getContents();
                    DeltaChest dc = new DeltaChest(pi.getName(), chest, orig, latest);
                    dc.send();
                }
            }
            BBUsersTable.getInstance().userOpenedChest(pi.getName(), null, null); // Chest closed.
        }
    }
View Full Code Here

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

        final Player player = event.getPlayer();
        BBPlayerInfo pi = BBUsersTable.getInstance().getUserByName(player.getName());
        plugin.closeChestIfOpen(pi);
        if (BBSettings.disconnect && pi.getWatched()) {
            Disconnect dataBlock = new Disconnect(player.getName(), player.getLocation(), player.getWorld().getName());
            dataBlock.send();
        }
    }
   
    @Override
    public void onPlayerTeleport(PlayerTeleportEvent event) {
View Full Code Here

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

                    switch (event.getClickedBlock().getType()) {
                    case WOODEN_DOOR:
                        //case IRON_DOOR:
                        if (BBSettings.doorOpen) {
                            DoorOpen doorDataBlock = new DoorOpen(event.getPlayer().getName(), block, block.getWorld().getName());
                            doorDataBlock.send();
                        }
                        break;
                    case LEVER:
                        if (BBSettings.leverSwitch) {
                            LeverSwitch leverDataBlock = new LeverSwitch(event.getPlayer().getName(), block, block.getWorld().getName());
View Full Code Here

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

        final Player player = event.getPlayer();
        BBPlayerInfo pi = BBUsersTable.getInstance().getUserByName(player.getName());
        plugin.closeChestIfOpen(pi);
        if (BBSettings.dropItem && pi.getWatched()) {
            DropItem dataBlock = new DropItem(player.getName(), event.getItemDrop(), event.getItemDrop().getWorld().getName());
            dataBlock.send();
        }
    }
   
    /*
     *
 
View Full Code Here

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

    @Override
    public void onBlockIgnite(BlockIgniteEvent event) {
        if (BBSettings.fire && event.getCause() == IgniteCause.FLINT_AND_STEEL && !event.isCancelled()) {
            final Block block = event.getBlock();
            BBDataBlock dataBlock = new FlintAndSteel(event.getPlayer().getName(), block, block.getWorld().getName());
            dataBlock.send();
        }
    }

    @Override
    public void onBlockBurn(BlockBurnEvent event) {
View Full Code Here

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

        Block blockFrom = event.getBlock();
        Block blockTo = event.getToBlock();
        boolean lava = blockFrom.getType() == Material.LAVA || blockFrom.getType() == Material.STATIONARY_LAVA;
        if (!event.isCancelled() && lava && BBSettings.lavaFlow) {
            LavaFlow dataBlock = LavaFlowLogger.getFlow(blockFrom, blockTo);
            dataBlock.send();
        }
    }

    @Override
    public void onSignChange(SignChangeEvent event) {
View Full Code Here

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

                        }
                        break;
                    case LEVER:
                        if (BBSettings.leverSwitch) {
                            LeverSwitch leverDataBlock = new LeverSwitch(event.getPlayer().getName(), block, block.getWorld().getName());
                            leverDataBlock.send();
                        }
                        break;
                    case STONE_BUTTON:
                        if (BBSettings.buttonPress) {
                            ButtonPress buttonDataBlock = new ButtonPress(event.getPlayer().getName(), block, block.getWorld().getName());
View Full Code Here

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

            }
        }
        */
        if (BBSettings.login && pi.getWatched()) {
            Login dataBlock = new Login(player, player.getWorld().getName());
            dataBlock.send();
        }
       
        BBLogging.debug(player.getName() + " has Permissions: ");
        BBLogging.debug("- Watching privileges: " + BBPermissions.watch(player));
        BBLogging.debug("- Info privileges: " + BBPermissions.info(player));
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.