fix: placeholder invalid player

This commit is contained in:
aro 2023-01-19 19:07:35 +01:00
parent 3c3ff182f0
commit 338a470468

View file

@ -39,6 +39,7 @@ public class NickoExpansion extends PlaceholderExpansion {
@Override
public @Nullable String onPlaceholderRequest(Player player, @NotNull String params) {
if(player == null) return null;
Optional<NickoProfile> optionalProfile = instance.getDataStore().getData(player.getUniqueId());
if (optionalProfile.isPresent()) {
final NickoProfile profile = optionalProfile.get();