Package org.bukkit

Examples of org.bukkit.Location.toVector()


                                if (p != null)
                                {
                                    String name = (cpm.isLeader() ? plugin.getSettingsManager().getPageLeaderColor() : ((cpm.isTrusted() ? plugin.getSettingsManager().getPageTrustedColor() : plugin.getSettingsManager().getPageUnTrustedColor()))) + cpm.getName();
                                    Location loc = p.getLocation();
                                    int distance = (int) Math.ceil(loc.toVector().distance(player.getLocation().toVector()));
                                    String coords = loc.getBlockX() + " " + loc.getBlockY() + " " + loc.getBlockZ();
                                    String world = loc.getWorld().getName();

                                    List<String> cols = new ArrayList<String>();
                                    cols.add("  " + name);
View Full Code Here


        Player player = event.getPlayer();
        Location from = event.getFrom();
        Location to = event.getTo();

        if (plugin.glassedManager.isGlassed(player)) {
            if (from.toVector().toBlockVector().equals(to.toVector().toBlockVector())) {
                return;
            }

            Block footblock = player.getWorld().getBlockAt(to.getBlockX(), to.getBlockY() - 1, to.getBlockZ());
            if (footblock.getType().equals(Material.AIR) || plugin.glassedManager.isGlassedBlock(player, footblock)) {
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.