package com.gmail.stefvanschiedev.buildinggame.managers.softdependencies;

import com.gmail.stefvanschiedev.buildinggame.Main;
import com.gmail.stefvanschiedev.buildinggame.utils.PlaceholderSupplier;
import me.clip.placeholderapi.expansion.PlaceholderExpansion;
import org.bukkit.OfflinePlayer;
import org.jetbrains.annotations.Contract;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

/**
 * Registers placeholder for PlaceholderAPI
 *
 * @since 5.5.1
 */
public class PlaceholderAPIPlaceholders extends PlaceholderExpansion {

    /**
     * {@inheritDoc}
     *
     * @since 5.5.1
     */
    @Nullable
    @Contract(pure = true)
    @Override
    public String onRequest(OfflinePlayer player, @NotNull String identifier) {
        return PlaceholderSupplier.getPlaceholderReplacements().get(identifier).apply(player, identifier);
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public String getAuthor() {
        return String.join(", ", Main.getInstance().getDescription().getAuthors());
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public String getVersion() {
        return Main.getInstance().getDescription().getVersion();
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public String getIdentifier() {
        return "buildinggame";
    }

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

@@ -417,16 +417,77 @@
 lable;%0A%0A
+import java.util.Map;%0Aimport java.util.function.BiFunction;%0A%0A
 /**%0A * R
@@ -625,72 +625,8 @@
  %7B%0A%0A
-    /**%0A     * %7B@inheritDoc%7D%0A     *%0A     * @since 5.5.1%0A     */%0A
     
@@ -768,79 +768,378 @@
     
-return PlaceholderSupplier.getPlaceholderReplacements().get(identifier)
+String fullIdentifier = %22buildinggame_%22 + identifier;%0A%0A        Map%3CString, BiFunction%3COfflinePlayer, String, String%3E%3E replacements = PlaceholderSupplier.getPlaceholderReplacements();%0A        BiFunction%3COfflinePlayer, String, String%3E replacer = replacements.get(fullIdentifier);%0A%0A        if (replacer == null) %7B%0A            return null;%0A        %7D%0A%0A        return replacer
 .app
@@ -1149,17 +1149,21 @@
 player, 
-i
+fullI
 dentifie
@@ -1181,40 +1181,43 @@
     
-/**%0A     * %7B@inheritDoc%7D%0A     */
+@NotNull%0A    @Contract(pure = true)
 %0A   
@@ -1358,40 +1358,43 @@
     
-/**%0A     * %7B@inheritDoc%7D%0A     */
+@NotNull%0A    @Contract(pure = true)
 %0A   
@@ -1517,40 +1517,43 @@
     
-/**%0A     * %7B@inheritDoc%7D%0A     */
+@NotNull%0A    @Contract(pure = true)
 %0A   
@@ -1645,40 +1645,30 @@
     
-/**%0A     * %7B@inheritDoc%7D%0A     */
+@Contract(pure = true)
 %0A   

Fix PAPI not working