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
|
||||
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) {
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren