Files
paper-mc/src/org/bukkit/craftbukkit/CraftPlayer.java
2010-12-26 02:20:29 +00:00

26 lines
538 B
Java

package org.bukkit.craftbukkit;
import net.minecraft.server.EntityPlayerMP;
import org.bukkit.Player;
public class CraftPlayer implements Player {
private EntityPlayerMP player;
private final String name;
private final CraftServer server;
public CraftPlayer(CraftServer serv, EntityPlayerMP handle) {
player = handle;
name = player.aw;
server = serv;
}
public String getName() {
return name;
}
public boolean isOnline() {
return server.server.g(name);
}
}