Examples of printError()


Examples of ch.njol.skript.log.ParseLogHandler.printError()

      try {
        Expression<?> c = containers.getConvertedExpression(String.class);
        if (c == null)
          c = containers.getConvertedExpression(Inventory.class);
        if (c == null) {
          h.printError();
          return false;
        }
        containers = c;
        h.printLog();
      } finally {
View Full Code Here

Examples of com.oracle.truffle.r.runtime.RContext.ConsoleHandler.printError()

        List<String> evalWarnings = singleton.context.extractEvalWarnings();
        ConsoleHandler consoleHandler = singleton.context.getConsoleHandler();
        // GnuR outputs warnings to the stderr, so we do too
        if (evalWarnings != null && evalWarnings.size() > 0) {
            if (inAddition) {
                consoleHandler.printError("In addition: ");
            }
            if (evalWarnings.size() == 1) {
                consoleHandler.printErrorln("Warning message:");
                consoleHandler.printErrorln(evalWarnings.get(0));
            } else {
View Full Code Here

Examples of com.sk89q.craftbook.LocalPlayer.printError()

        if(dir == Direction.NONE) return;
        LocalPlayer player = CraftBookPlugin.inst().wrapPlayer(event.getPlayer());

        if(!player.hasPermission("craftbook.mech.elevator")) {
            if(CraftBookPlugin.inst().getConfiguration().showPermissionMessages)
                player.printError("mech.create-permission");
            SignUtil.cancelSign(event);
            return;
        }

        switch (dir) {
View Full Code Here

Examples of com.sk89q.craftbook.LocalPlayer.printError()

        for(Player player : LocationUtil.getNearbyPlayers(event.getBlock().getLocation(), elevatorRedstoneRadius)) {

            LocalPlayer localPlayer = CraftBookPlugin.inst().wrapPlayer(player);
            if(flyingPlayers != null && flyingPlayers.contains(localPlayer.getUniqueId())) {
                localPlayer.printError("mech.lift.busy");
                continue;
            }

            if (!localPlayer.hasPermission("craftbook.mech.elevator.use")) {
                if(CraftBookPlugin.inst().getConfiguration().showPermissionMessages)
View Full Code Here

Examples of com.sk89q.craftbook.LocalPlayer.printError()

                continue;
            }

            if (!localPlayer.hasPermission("craftbook.mech.elevator.use")) {
                if(CraftBookPlugin.inst().getConfiguration().showPermissionMessages)
                    localPlayer.printError("mech.use-permission");
                continue;
            }

            makeItSo(localPlayer, destination, shift);
        }
View Full Code Here

Examples of com.sk89q.craftbook.LocalPlayer.printError()

        switch (dir) {
            case UP:
            case DOWN:
                break;
            case RECV:
                localPlayer.printError("mech.lift.no-depart");
                return;
            default:
                return;
        }
View Full Code Here

Examples of com.sk89q.craftbook.LocalPlayer.printError()

        BlockFace shift = dir == Direction.UP ? BlockFace.UP : BlockFace.DOWN;
        Block destination = findDestination(dir, shift, event.getClickedBlock());

        if(destination == null) {
            localPlayer.printError("mech.lift.no-destination");
            return;
        }

        if(flyingPlayers != null && flyingPlayers.contains(localPlayer.getUniqueId())) {
            localPlayer.printError("mech.lift.busy");
View Full Code Here

Examples of com.sk89q.craftbook.LocalPlayer.printError()

            localPlayer.printError("mech.lift.no-destination");
            return;
        }

        if(flyingPlayers != null && flyingPlayers.contains(localPlayer.getUniqueId())) {
            localPlayer.printError("mech.lift.busy");
            return;
        }

        if (!localPlayer.hasPermission("craftbook.mech.elevator.use")) {
            event.setCancelled(true);
View Full Code Here

Examples of com.sk89q.craftbook.LocalPlayer.printError()

        }

        if (!localPlayer.hasPermission("craftbook.mech.elevator.use")) {
            event.setCancelled(true);
            if(CraftBookPlugin.inst().getConfiguration().showPermissionMessages)
                localPlayer.printError("mech.use-permission");
            return;
        }

        if(!ProtectionUtil.canUse(event.getPlayer(), event.getClickedBlock().getLocation(), event.getBlockFace(), event.getAction())) {
            if(CraftBookPlugin.inst().getConfiguration().showPermissionMessages)
View Full Code Here

Examples of com.sk89q.craftbook.LocalPlayer.printError()

            return;
        }

        if(!ProtectionUtil.canUse(event.getPlayer(), event.getClickedBlock().getLocation(), event.getBlockFace(), event.getAction())) {
            if(CraftBookPlugin.inst().getConfiguration().showPermissionMessages)
                localPlayer.printError("area.use-permissions");
            return;
        }

        makeItSo(localPlayer, destination, shift);
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.