mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-04 14:38:53 +00:00
Adjust a few catchers in the TP command
Signed-off-by: BuildTools <[email protected]>
This commit is contained in:
1 parent
6afd19156a
commit
ee846fe05d
2 files changed
+4
-4
No files matched your search
@@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
<groupId>me.William278</groupId>
|
<groupId>me.William278</groupId>
|
||||||
<artifactId>HuskHomes</artifactId>
|
<artifactId>HuskHomes</artifactId>
|
||||||
<version>2.7</version>
|
<version>2.7.1</version>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
<name>HuskHomes</name>
|
<name>HuskHomes</name>
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ public class TpCommand extends CommandBase {
|
|||||||
double z = Double.parseDouble(args[2]);
|
double z = Double.parseDouble(args[2]);
|
||||||
TeleportationPoint teleportationPoint = new TeleportationPoint(p.getWorld().getName(), x, y, z, 0F, 0F, HuskHomes.getSettings().getServerID());
|
TeleportationPoint teleportationPoint = new TeleportationPoint(p.getWorld().getName(), x, y, z, 0F, 0F, HuskHomes.getSettings().getServerID());
|
||||||
TeleportManager.teleportPlayer(p, teleportationPoint, connection);
|
TeleportManager.teleportPlayer(p, teleportationPoint, connection);
|
||||||
} catch (Exception e) {
|
} catch (NumberFormatException e) {
|
||||||
MessageManager.sendMessage(p, "error_invalid_syntax", "/tp <x> <y> <z> [world] [server]");
|
MessageManager.sendMessage(p, "error_invalid_syntax", "/tp <x> <y> <z> [world] [server]");
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
@@ -58,7 +58,7 @@ public class TpCommand extends CommandBase {
|
|||||||
}
|
}
|
||||||
TeleportationPoint teleportationPoint = new TeleportationPoint(worldName, x, y, z, 0F, 0F, HuskHomes.getSettings().getServerID());
|
TeleportationPoint teleportationPoint = new TeleportationPoint(worldName, x, y, z, 0F, 0F, HuskHomes.getSettings().getServerID());
|
||||||
TeleportManager.teleportPlayer(p, teleportationPoint, connection);
|
TeleportManager.teleportPlayer(p, teleportationPoint, connection);
|
||||||
} catch (Exception e) {
|
} catch (NumberFormatException e) {
|
||||||
MessageManager.sendMessage(p, "error_invalid_syntax", "/tp <x> <y> <z> [world] [server]");
|
MessageManager.sendMessage(p, "error_invalid_syntax", "/tp <x> <y> <z> [world] [server]");
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
@@ -72,7 +72,7 @@ public class TpCommand extends CommandBase {
|
|||||||
String serverName = args[4];
|
String serverName = args[4];
|
||||||
TeleportationPoint teleportationPoint = new TeleportationPoint(worldName, x, y, z, 0F, 0F, serverName);
|
TeleportationPoint teleportationPoint = new TeleportationPoint(worldName, x, y, z, 0F, 0F, serverName);
|
||||||
TeleportManager.teleportPlayer(p, teleportationPoint, connection);
|
TeleportManager.teleportPlayer(p, teleportationPoint, connection);
|
||||||
} catch (Exception e) {
|
} catch (NumberFormatException e) {
|
||||||
MessageManager.sendMessage(p, "error_invalid_syntax", "/tp <x> <y> <z> <world> <server>");
|
MessageManager.sendMessage(p, "error_invalid_syntax", "/tp <x> <y> <z> <world> <server>");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in new issue
Block a user