fix: placeholder invalid player
This commit is contained in:
parent
3c3ff182f0
commit
338a470468
1 changed files with 1 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue