try {
double x = Double.parseDouble(args[1]), y = Double.parseDouble(args[2]), z = Double.parseDouble(args[3]);
if (args.length > 4 && player.hasPermission("canary.command.teleport.self.world")) {
try {
String dTypeName = args[4].replaceAll("(\\w+)(_(\\w+)$)", "$3");
DimensionType dType = DimensionType.fromName(dTypeName);
String correctedName = dType == null ? args[4] : args[4].replaceAll("_(\\w+)$", "");
if (dType == null) {
dType = DimensionType.fromName("NORMAL");
}
World world = Canary.getServer().getWorldManager().getWorld(correctedName, dType, args.length > 5 && player.hasPermission("canary.command.teleport.self.world.load") ? Boolean.valueOf(args[5]) : false);