Check for blank OfflinePlayer Names

This commit is contained in:
md_5 2019-01-05 16:21:07 +11:00
parent f2746a5eb2
commit 7deba1c606

View file

@ -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) {