Skip to content

Commit

Permalink
Make PAPI expansion persist through PAPI reloads
Browse files Browse the repository at this point in the history
There's a comment in PAPIs code, suggesting that every "INTERNAL" expansion (like this one) should use this.

Strangely, despite the expansion class (me.clip.placeholderapi.expansion) assuming an extension is internal if not specified otherwise, the default behaviour is still non-persistent for some reason.
  • Loading branch information
Mitality committed Jan 7, 2025
1 parent 547fe3a commit b715990
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ public PlaceholderAPIManager() {
return plugin.getDescription().getVersion();
}

@Override
public boolean persist() {
return true;
}

@Override
public String onRequest(OfflinePlayer player, @NotNull String params) {
BPlayer bPlayer = BPlayer.get(player);
Expand Down

0 comments on commit b715990

Please sign in to comment.