Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-15 04:20:04 +01:00
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) {
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren