* @return a Bukkit location
* @throws CommandException if the location by said id does not exist
*/
public static Location getManagedLocation(RootLocationManager<NamedLocation> manager,
World world, String id) throws CommandException {
NamedLocation loc = manager.get(world, id);
if (loc == null) throw new CommandException("A location by that name could not be found.");
return loc.getLocation();
}