@Command(command = "deletewarp",
			arguments = {"warp name"},
			description = "Deletes a given warp",
			permissions = "delete.self")
	public static boolean deleteWarp(CommandSender sender, String warpName) throws EssentialsCommandException {		
		// try to get that warp
		// get a resultset of all our warps
		ArrayList<HashMap<String, Object>> results = null;
		if(!PermissionsManager.playerHasPermission(sender, "warp.delete.any")) {
			results = DatabaseManager.accessQuery(
					"select * from warps where name=? and (public=? or owner=?) limit 1;",
					warpName,
					true,
					sender.getName());
			if(results.size() == 0) {
				throw new EssentialsCommandException("&eThe warp '%s' doesn't exist!", warpName);
			}
		}
		else {
			results = DatabaseManager.accessQuery(
					"select * from warps where name=? limit 1;",
					warpName);
			if(results.size() == 0) {
				throw new EssentialsCommandException("&eThe warp '%s' doesn't exist!", warpName);
			}
		}
		
		// make sure we have it
		if(results.size() != 1) {
			throw new EssentialsCommandException("&eThe warp '%s' doesn't exist!", warpName);
		}
		
		// ok, we have it
		// build a location
		HashMap<String, Object> result = results.get(0);
		
		// delete it!
		int numRowsDeleted = DatabaseManager.updateQuery("delete from warps where id=?",
				result.get("id"));
		if(numRowsDeleted == 0) {
			throw new EssentialsCommandException("Failed to delete the warp! Please contact an administrator!");
		}
		ColourHandler.sendMessage(sender, "&aWarp '%s' deleted!", warpName);
		
		return true;
	}