Examples of TeleportResult


Examples of com.onarandombox.MultiverseCore.enums.TeleportResult

    void performTeleport(Player player, Location to, PortalPlayerSession ps, MVDestination d) {
        if (!plugin.getCore().getMVConfig().getEnforceAccess() || (d.getRequiredPermission() == null)
                || (d.getRequiredPermission().length() == 0) || player.hasPermission(d.getRequiredPermission())) {
            SafeTTeleporter playerTeleporter = this.plugin.getCore().getSafeTTeleporter();
            TeleportResult result = playerTeleporter.safelyTeleport(player, player, d);
            if (result == TeleportResult.SUCCESS) {
                ps.playerDidTeleport(to);
                ps.setTeleportTime(new Date());
                this.stateSuccess(player.getDisplayName(), d.getName());
                return;
View Full Code Here

Examples of com.onarandombox.MultiverseCore.enums.TeleportResult

            this.messaging.sendMessage(teleporter, "Sorry Boss, I tried everything, but just couldn't teleport ya there!", false);
            return;
        }
        Teleporter teleportObject = (d instanceof CustomTeleporterDestination) ?
                ((CustomTeleporterDestination)d).getTeleporter() : this.playerTeleporter;
        TeleportResult result = teleportObject.teleport(teleporter, teleportee, d);
        if (result == TeleportResult.FAIL_UNSAFE) {
            this.plugin.log(Level.FINE, "Could not teleport " + teleportee.getName()
                    + " to " + plugin.getLocationManipulation().strCoordsRaw(d.getLocation(teleportee)));
            this.plugin.log(Level.FINE, "Queueing Command");
            Class<?>[] paramTypes = { CommandSender.class, Player.class, Location.class };
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.