Added chunk/block/location/world
This commit is contained in:
@@ -2,7 +2,9 @@
|
||||
package org.bukkit.craftbukkit;
|
||||
|
||||
import net.minecraft.server.EntityPlayerMP;
|
||||
import org.bukkit.Location;
|
||||
import org.bukkit.Player;
|
||||
import org.bukkit.World;
|
||||
|
||||
public class CraftPlayer implements Player {
|
||||
private EntityPlayerMP player;
|
||||
@@ -22,4 +24,12 @@ public class CraftPlayer implements Player {
|
||||
public boolean isOnline() {
|
||||
return server.server.g(name);
|
||||
}
|
||||
|
||||
public Location getLocation() {
|
||||
return new Location(getWorld(), player.p, player.q, player.r);
|
||||
}
|
||||
|
||||
public World getWorld() {
|
||||
return server.getWorld(player.b.e);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user