Skip to content

Commit

Permalink
PlaceholderAPI expansion fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Majekdor committed Jan 5, 2025
1 parent 4f5ec76 commit a8c0092
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/dev/majek/hexnicks/hook/PapiHook.java
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ public boolean persist() {
@Override
@SuppressWarnings("all")
public String onRequest(OfflinePlayer player, @NotNull String identifier) {
// All of our placeholders rely on the player being known
if (player == null) {
return null;
}

if (identifier.equalsIgnoreCase("nick")) {
return getNick(player);
} else if (identifier.equalsIgnoreCase("nick_raw")) {
Expand Down

0 comments on commit a8c0092

Please sign in to comment.