mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-05 01:10:19 -05:00
Check for blank OfflinePlayer Names
This commit is contained in:
1 parent
f2746a5eb2
commit
7deba1c606
1 file changed
+1
@@ -1318,6 +1318,7 @@ public final class CraftServer implements Server {
|
||||
@Deprecated
|
||||
public OfflinePlayer getOfflinePlayer(String name) {
|
||||
Validate.notNull(name, "Name cannot be null");
|
||||
Validate.notEmpty(name, "Name cannot be empty");
|
||||
|
||||
OfflinePlayer result = getPlayerExact(name);
|
||||
if (result == null) {
|
||||
|
||||
Reference in new issue
Block a user