mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2025-06-11 13:33:54 +00:00
yet another command void fix
This commit is contained in:
@ -6,6 +6,7 @@ import java.util.TimerTask;
|
||||
import me.totalfreedom.totalfreedommod.playerverification.VPlayer;
|
||||
import me.totalfreedom.totalfreedommod.rank.Rank;
|
||||
import org.bukkit.ChatColor;
|
||||
import org.bukkit.Location;
|
||||
import org.bukkit.command.Command;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.entity.Player;
|
||||
@ -121,6 +122,11 @@ public class Command_ride extends FreedomCommand
|
||||
return true;
|
||||
}
|
||||
|
||||
if (player.getWorld() != playerSender.getWorld())
|
||||
{
|
||||
player.teleport(new Location(player.getWorld(), 0, 256, 0));
|
||||
}
|
||||
|
||||
player.addPassenger(playerSender);
|
||||
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user