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:
@@ -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"));
|
||||||
|
|||||||
Reference in New Issue
Block a user