mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-06 08:17:44 +01:00
Check in getOfflinePlayer is OK
By: md_5 <git@md-5.net>
This commit is contained in:
parent
cfdd51c0cd
commit
b00fd47b85
@ -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…
Reference in New Issue
Block a user