2010-12-22 16:22:23 +01:00
|
|
|
|
|
|
|
package org.bukkit.craftbukkit;
|
|
|
|
|
2010-12-26 03:20:29 +01:00
|
|
|
import net.minecraft.server.EntityPlayerMP;
|
2010-12-22 16:22:23 +01:00
|
|
|
import org.bukkit.Player;
|
|
|
|
|
|
|
|
public class CraftPlayer implements Player {
|
2010-12-26 03:20:29 +01:00
|
|
|
private EntityPlayerMP player;
|
2010-12-22 16:22:23 +01:00
|
|
|
private final String name;
|
|
|
|
private final CraftServer server;
|
|
|
|
|
2010-12-26 03:20:29 +01:00
|
|
|
public CraftPlayer(CraftServer serv, EntityPlayerMP handle) {
|
2010-12-22 16:22:23 +01:00
|
|
|
player = handle;
|
|
|
|
name = player.aw;
|
|
|
|
server = serv;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getName() {
|
|
|
|
return name;
|
|
|
|
}
|
|
|
|
|
|
|
|
public boolean isOnline() {
|
|
|
|
return server.server.g(name);
|
|
|
|
}
|
|
|
|
}
|