mirror of
https://github.com/TotalFreedomMC/TotalFreedomMod.git
synced 2024-06-22 22:10:36 +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
|
||||
public boolean run(CommandSender sender, Player playerSender, Command cmd, String commandLabel, String[] args, boolean senderIsConsole)
|
||||
{
|
||||
int x = FUtil.randomInteger(-10000, 10000);
|
||||
int z = FUtil.randomInteger(-10000, 10000);
|
||||
int x = FUtil.randomInteger(-50000, 50000);
|
||||
int z = FUtil.randomInteger(-50000, 50000);
|
||||
int y = playerSender.getWorld().getHighestBlockYAt(x, z);
|
||||
Location location = new Location(playerSender.getLocation().getWorld(), x, y, z);
|
||||
playerSender.teleport(location);
|
||||
|
|
Loading…
Reference in a new issue