I want players to be able to set warps, warp to those warps, delete the warps, and list them. I have this so far. The /delwarp command doesnt work, so I need help with all this: How to list the warps How to delete the warps How to add a 10 second delay before teleport if anyone is within 10 blocks of player How to kill player if they try to warp while in air for more than 1 second How to make the player immune from damage and unable to attack for 5 seconds after warping How to cancel warp if player moves within 10 seconds if the player is in 10 blocks. Code:java if(commandLabel.equalsIgnoreCase("setwarp")){ if(args.length == 0){ player.sendMessage(ChatColor.GOLD + "Please name your warp!"); } else if(args.length == 1){ int warpAmount = getConfig().getInt(player.getName() + ".Number-Of-Warps"); if(player.hasPermission("g.warp5")){ if(warpAmount == 5){ player.sendMessage("You have reached your warp maxium!"); return false; } } Location warp = player.getLocation(); getConfig().set(player.getName() + "." + args[0] + ".X", warp.getX()); getConfig().set(player.getName() + "." + args[0] + ".Y", warp.getY()); getConfig().set(player.getName() + "." + args[0] + ".Z", warp.getZ()); getConfig().set(player.getName() + "." + args[0] + ".World", warp.getWorld().getName()); getConfig().set(player.getName() + "." + args[0] + ".Pitch", warp.getPitch()); getConfig().set(player.getName() + "." + args[0] + ".Yaw", warp.getYaw()); saveConfig(); player.sendMessage(ChatColor.GOLD + "Warp " + ChatColor.GRAY + args[0] + ChatColor.GOLD + " has been set!"); } }else if(commandLabel.equalsIgnoreCase("go")){ if(args.length == 0){ player.sendMessage(ChatColor.GRAY + "------" + ChatColor.GOLD + "Warp Help" + ChatColor.GRAY + "------"); player.sendMessage(ChatColor.GRAY + "/go [warp] - " + ChatColor.GOLD + "Teleports you to private warp."); player.sendMessage(ChatColor.GRAY + "/setwarp [warp] - " + ChatColor.GOLD + "Sets a warp to current location"); player.sendMessage(ChatColor.GRAY + "/delwarp [warp] - " + ChatColor.GOLD + "Deletes a warp."); player.sendMessage(ChatColor.GRAY + "/listwarp - " + ChatColor.GOLD + "Lists current warps."); } else if(args.length == 1){ if(!getConfig().contains(player.getName() + "." + args[0])){ player.sendMessage(ChatColor.GREEN + "No warp named " + args[0] + " is set"); } World w = player.getServer().getWorld(getConfig().getString(player.getName() + "." + args[0] + ".World")); Double x = getConfig().getDouble(player.getName() + "." + args[0] + ".X"); Double y = getConfig().getDouble(player.getName() + "." + args[0] + ".Y"); Double z = getConfig().getDouble(player.getName() + "." + args[0] + ".Z"); float Yaw = getConfig().getInt(player.getName() + "." + args[0] + ".Yaw"); float Pitch = getConfig().getInt(player.getName() + "." + args[0] + ".Pitch"); Location PersonalWarp = new Location(w, x, y, z, Yaw, Pitch); player.teleport(PersonalWarp); player.sendMessage(ChatColor.GOLD + "You can't attack for 10 seconds."); } }else if(commandLabel.equalsIgnoreCase("listwarp")){ if(args.length == 0){ if(!getConfig().contains(player.getName() + ".")){ player.sendMessage(ChatColor.GRAY + "-----" + ChatColor.GOLD + "Your Warps" + ChatColor.GRAY + "-----"); } }else if(commandLabel.equalsIgnoreCase("delwarp")){ if(args.length == 0){ player.sendMessage(ChatColor.GOLD + "Specify a warp first!"); } else if(args.length == 1){ if(!getConfig().contains(player.getName() + "." + args[0])){ getConfig().set(player.getName() + "." + args[0], args[0] == null); saveConfig(); player.sendMessage(ChatColor.GRAY + args[0] + ChatColor.GOLD + " deleted successfully."); } } } Any code to make this would help, I have been trying and can't figure it out. Thanks what about for the other stuff i need help with? EDIT by Moderator: merged posts, please use the edit button instead of double posting.
You have made countless help threads that can be solved with even basic use of logic or beginner Java knowledge, please learn Java before trying to deploy a program written in it.