Package org.bukkit.entity

Examples of org.bukkit.entity.Vehicle.teleport()


                Player player = (Player) passenger;
                if (!General.PlayerMovementLogic(player, event.getFrom(), event.getTo()))
                {
                    Location loc = General.getPlayer(player.getName()).getCurrentLocation();
                    loc.setY(loc.getY() + 1);
                    vehicle.teleport(loc);
                    vehicle.setVelocity(zero);
                }
            }
        }
    }
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.