mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2024-10-03 23:34:15 +00:00
Update Essentials/src/com/earth2me/essentials/commands/Commandtppos.java
2.9 too
This commit is contained in:
parent
5bc1b8df70
commit
5e476f4d61
|
@ -36,7 +36,7 @@ public class Commandtppos extends EssentialsCommand
|
||||||
{
|
{
|
||||||
location.setPitch(Float.parseFloat(args[4]));
|
location.setPitch(Float.parseFloat(args[4]));
|
||||||
}
|
}
|
||||||
if (x > 30000000 || y > 30000000 || z > 30000000 || x < -30000000 || y < 30000000 || z < 30000000)
|
if (x > 30000000 || y > 30000000 || z > 30000000 || x < -30000000 || y < -30000000 || z < -30000000)
|
||||||
{
|
{
|
||||||
throw new NotEnoughArgumentsException("Value of coordinates cannot be over 30000000"); //todo: I18n
|
throw new NotEnoughArgumentsException("Value of coordinates cannot be over 30000000"); //todo: I18n
|
||||||
}
|
}
|
||||||
|
@ -68,7 +68,7 @@ public class Commandtppos extends EssentialsCommand
|
||||||
{
|
{
|
||||||
location.setPitch(Float.parseFloat(args[5]));
|
location.setPitch(Float.parseFloat(args[5]));
|
||||||
}
|
}
|
||||||
if (x > 30000000 || y > 30000000 || z > 30000000 || x < -30000000 || y < 30000000 || z < 30000000)
|
if (x > 30000000 || y > 30000000 || z > 30000000 || x < -30000000 || y < -30000000 || z < -30000000)
|
||||||
{
|
{
|
||||||
throw new NotEnoughArgumentsException("Value of coordinates cannot be over 30000000"); //todo: I18n
|
throw new NotEnoughArgumentsException("Value of coordinates cannot be over 30000000"); //todo: I18n
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue