Updated commands to use CommandSender instead of Player

This commit is contained in:
stevenh
2011-01-29 21:04:02 +00:00
parent 0ba870434e
commit 4301a76b31
2 changed files with 8 additions and 7 deletions

View File

@@ -25,6 +25,10 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
return server.getHandle().g(getName());
}
public boolean isPlayer() {
return true;
}
public boolean isOnline() {
for (Object obj: server.getHandle().b) {
EntityPlayerMP player = (EntityPlayerMP) obj;