9
0
mirror of https://github.com/Auxilor/EcoMobs.git synced 2025-12-20 23:49:22 +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 {
try {
xPos = Double.parseDouble(xString);
} catch (NumberFormatException e) {
sender.sendMessage(this.getPlugin().getLangYml().getMessage("invalid-location"));
return;
}
try {
yPos = Double.parseDouble(yString);
} catch (NumberFormatException e) {
sender.sendMessage(this.getPlugin().getLangYml().getMessage("invalid-location"));
return;
}
try {
zPos = Double.parseDouble(zString);
} catch (NumberFormatException e) {
sender.sendMessage(this.getPlugin().getLangYml().getMessage("invalid-location"));