geforkt von Mirrors/Paper
Check for blank OfflinePlayer Names
Dieser Commit ist enthalten in:
Ursprung
f2746a5eb2
Commit
7deba1c606
@ -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) {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren