Check in getOfflinePlayer is OK
This commit is contained in:
parent
0cd47ae827
commit
b10ea735ca
@ -1639,6 +1639,7 @@ public final class CraftServer implements Server {
|
||||
@Deprecated
|
||||
public OfflinePlayer getOfflinePlayer(String name) {
|
||||
Preconditions.checkArgument(name != null, "name cannot be null");
|
||||
Preconditions.checkArgument(!name.isBlank(), "name cannot be empty");
|
||||
|
||||
OfflinePlayer result = getPlayerExact(name);
|
||||
if (result == null) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user