Hook onto the server, and added player

This commit is contained in:
Dinnerbone
2010-12-22 15:22:23 +00:00
parent 84f7c6c8d2
commit a799b1463b
3 changed files with 529 additions and 10 deletions

View File

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