Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(command.getName().equalsIgnoreCase(label)){
- if(!(sender instanceof Player)){
- sender.sendMessage("§cApenas jogadores podem usar este comando!");
- return true;
- }
- Player p = (Player) sender;
- if(Main.getInstance().getConfig().contains(label)){
- Double X = Main.getInstance().getConfig().getDouble(label + ".X");
- Double Y = Main.getInstance().getConfig().getDouble(label + ".Y");
- Double Z = Main.getInstance().getConfig().getDouble(label + ".Z");
- float Pitch = (float)Main.getInstance().getConfig().getDouble(label + ".Pitch");
- float Yaw = (float)Main.getInstance().getConfig().getDouble(label + ".Yaw");
- World W = Bukkit.getWorld(Main.getInstance().getConfig().getString(label + ".World"));
- Location label1 = new Location(W, X, Y, Z, Yaw, Pitch);
- p.teleport(label1);
- p.sendMessage("§6Teleportado com sucesso!");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement