mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-29 07:48:53 +01:00
Check for blank OfflinePlayer Names
This commit is contained in:
parent
f2746a5eb2
commit
7deba1c606
1 changed files with 1 additions and 0 deletions
|
@ -1318,6 +1318,7 @@ public final class CraftServer implements Server {
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public OfflinePlayer getOfflinePlayer(String name) {
|
public OfflinePlayer getOfflinePlayer(String name) {
|
||||||
Validate.notNull(name, "Name cannot be null");
|
Validate.notNull(name, "Name cannot be null");
|
||||||
|
Validate.notEmpty(name, "Name cannot be empty");
|
||||||
|
|
||||||
OfflinePlayer result = getPlayerExact(name);
|
OfflinePlayer result = getPlayerExact(name);
|
||||||
if (result == null) {
|
if (result == null) {
|
||||||
|
|
Loading…
Reference in a new issue