mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-09 00:22:08 -07:00
Implemented OfflinePlayer
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user