Implemented OfflinePlayer

This commit is contained in:
Dinnerbone
2011-09-03 00:41:48 +01:00
parent fe0cd5405b
commit 0206757029
3 changed files with 16 additions and 2 deletions

View File

@@ -806,4 +806,14 @@ public final class CraftServer implements Server {
return count;
}
public OfflinePlayer getOfflinePlayer(String name) {
OfflinePlayer result = getPlayer(name);
if (result == null) {
result = new CraftOfflinePlayer(this, name);
}
return result;
}
}