diff --git a/src/main/java/me/clip/placeholderapi/commands/impl/local/CommandParse.java b/src/main/java/me/clip/placeholderapi/commands/impl/local/CommandParse.java index 5231ebf..a4cd2b3 100644 --- a/src/main/java/me/clip/placeholderapi/commands/impl/local/CommandParse.java +++ b/src/main/java/me/clip/placeholderapi/commands/impl/local/CommandParse.java @@ -212,12 +212,15 @@ public final class CommandParse extends PlaceholderCommand { @Nullable private OfflinePlayer resolvePlayer(@NotNull final String name) { OfflinePlayer target = Bukkit.getPlayer(name); - + if (target == null) { - target = Bukkit.getOfflinePlayer(name); // this is probably not a great idea. + // Not the best option, but Spigot doesn't offer a good replacement (as usual) + target = Bukkit.getOfflinePlayer(name); + + return target.hasPlayedBefore() ? target : null; } - return target.hasPlayedBefore() ? target : null; + return target; }