9
0
mirror of https://github.com/Auxilor/EcoMobs.git synced 2025-12-21 07:59:28 +00:00

Cleaned up /ebspawn

This commit is contained in:
Auxilor
2021-04-07 18:08:50 +01:00
parent 9c266acf84
commit 7f1af1ceec

View File

@@ -100,17 +100,7 @@ public class CommandEbspawn extends AbstractCommand {
} else { } else {
try { try {
xPos = Double.parseDouble(xString); xPos = Double.parseDouble(xString);
} catch (NumberFormatException e) {
sender.sendMessage(this.getPlugin().getLangYml().getMessage("invalid-location"));
return;
}
try {
yPos = Double.parseDouble(yString); yPos = Double.parseDouble(yString);
} catch (NumberFormatException e) {
sender.sendMessage(this.getPlugin().getLangYml().getMessage("invalid-location"));
return;
}
try {
zPos = Double.parseDouble(zString); zPos = Double.parseDouble(zString);
} catch (NumberFormatException e) { } catch (NumberFormatException e) {
sender.sendMessage(this.getPlugin().getLangYml().getMessage("invalid-location")); sender.sendMessage(this.getPlugin().getLangYml().getMessage("invalid-location"));