Package org.bukkit.event.player.PlayerTeleportEvent

Examples of org.bukkit.event.player.PlayerTeleportEvent.TeleportCause


                final double margin = 0.67;
                final Location from = event.getFrom();


                final TeleportCause cause = event.getCause();
                if (cause == TeleportCause.UNKNOWN) {
                    // Check special small range teleports (moved too quickly).
                    if (from != null && from.getWorld().equals(to.getWorld())) {
                        if (TrigUtil.distance(from, to) < margin) {
                            smallRange = true;
View Full Code Here

TOP

Related Classes of org.bukkit.event.player.PlayerTeleportEvent.TeleportCause

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.