Increase range on tpr

This commit is contained in:
Telesphoreo 2020-08-13 22:14:12 -05:00
parent e294ef8312
commit 51e1191816

View File

@ -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);