mirror of
https://github.com/TotalFreedomMC/TotalFreedomMod.git
synced 2024-06-25 23:40:35 +00:00
why didnt i do this earlier
This commit is contained in:
parent
d40c85f39c
commit
82cd7f2d05
|
@ -127,6 +127,11 @@ public class Command_ride extends FreedomCommand
|
|||
msg("Player is in another world. (" + player.getWorld().getName() + ")");
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
Location loc = player.getLocation();
|
||||
playerSender.teleport(new Location(loc.getWorld(),loc.getX(), loc.getY(), loc.getZ()));
|
||||
}
|
||||
|
||||
player.addPassenger(playerSender);
|
||||
|
||||
|
|
Loading…
Reference in a new issue