Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(sender instanceof Player && cmd.getName().equalsIgnoreCase("setwarp")) {
- if(getConfig().)
- if(p.hasPermission("hhf.setwarp.cmd"))
- getConfig().set("spawn.world", p.getLocation().getWorld());
- getConfig().set("spawn.x", p.getLocation().getX());
- getConfig().set("spawn.y", p.getLocation().getY());
- getConfig().set("spawn.z", p.getLocation().getZ());
- getConfig().set("spawn.pitch", p.getLocation().getPitch());
- getConfig().set("spawn.yaw", p.getLocation().getYaw());
- saveConfig();
- p.sendMessage(ChatColor.GREEN + "Warp has been created!");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement