Package com.Acrobot.ChestShop.Events.Protection

Examples of com.Acrobot.ChestShop.Events.Protection.BuildPermissionEvent


        }

        Chest connectedChest = uBlock.findConnectedChest(event.getSign().getBlock());
        Location chestLocation = (connectedChest != null ? connectedChest.getLocation() : null);

        BuildPermissionEvent bEvent = new BuildPermissionEvent(player, chestLocation, event.getSign().getLocation());
        ChestShop.callEvent(bEvent);

        if (!bEvent.isAllowed()) {
            event.setOutcome(NO_PERMISSION_FOR_TERRAIN);
        }

    }
View Full Code Here

TOP

Related Classes of com.Acrobot.ChestShop.Events.Protection.BuildPermissionEvent

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.