mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-14 05:01:28 +00:00
Implement missing OfflinePlayer location methods
This commit is contained in:
parent
7b165c6c2c
commit
3d97e93831
1 changed files with 9 additions and 0 deletions
|
@ -133,15 +133,24 @@ public class OfflinePlayer implements Player {
|
|||
return world;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setRotation(float yaw, float pitch) {
|
||||
location.setYaw(yaw);
|
||||
location.setPitch(pitch);
|
||||
}
|
||||
|
||||
public void setLocation(Location loc) {
|
||||
location = loc;
|
||||
world = loc.getWorld();
|
||||
}
|
||||
|
||||
public void teleportTo(Location lctn) {
|
||||
location = lctn;
|
||||
world = location.getWorld();
|
||||
}
|
||||
|
||||
public void teleportTo(Entity entity) {
|
||||
teleportTo(entity.getLocation());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue