mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-30 02:05:41 +00:00
Increase range on tpr
This commit is contained in:
parent
e294ef8312
commit
51e1191816
@ -15,8 +15,8 @@ public class Command_tprandom extends FreedomCommand
|
|||||||
@Override
|
@Override
|
||||||
public boolean run(CommandSender sender, Player playerSender, Command cmd, String commandLabel, String[] args, boolean senderIsConsole)
|
public boolean run(CommandSender sender, Player playerSender, Command cmd, String commandLabel, String[] args, boolean senderIsConsole)
|
||||||
{
|
{
|
||||||
int x = FUtil.randomInteger(-10000, 10000);
|
int x = FUtil.randomInteger(-50000, 50000);
|
||||||
int z = FUtil.randomInteger(-10000, 10000);
|
int z = FUtil.randomInteger(-50000, 50000);
|
||||||
int y = playerSender.getWorld().getHighestBlockYAt(x, z);
|
int y = playerSender.getWorld().getHighestBlockYAt(x, z);
|
||||||
Location location = new Location(playerSender.getLocation().getWorld(), x, y, z);
|
Location location = new Location(playerSender.getLocation().getWorld(), x, y, z);
|
||||||
playerSender.teleport(location);
|
playerSender.teleport(location);
|
||||||
|
Loading…
Reference in New Issue
Block a user