Fixed PlaceholderAPI expansions being unregistered after /papi reload

#629
This commit is contained in:
Florian CUNY 2019-05-08 14:33:20 +02:00
parent 77373f621d
commit fb87d0940f

View File

@ -1,16 +1,15 @@
package world.bentobox.bentobox.api.placeholders.placeholderapi;
import me.clip.placeholderapi.expansion.PlaceholderExpansion;
import org.bukkit.entity.Player;
import org.eclipse.jdt.annotation.NonNull;
import world.bentobox.bentobox.api.placeholders.PlaceholderReplacer;
import world.bentobox.bentobox.api.user.User;
import java.util.HashMap;
import java.util.Locale;
import java.util.Map;
import org.bukkit.entity.Player;
import me.clip.placeholderapi.expansion.PlaceholderExpansion;
import org.eclipse.jdt.annotation.NonNull;
import world.bentobox.bentobox.api.placeholders.PlaceholderReplacer;
import world.bentobox.bentobox.api.user.User;
/**
* @author Poslovitch
*/
@ -59,4 +58,9 @@ abstract class BasicPlaceholderExpansion extends PlaceholderExpansion {
public boolean isPlaceholder(@NonNull String placeholder) {
return placeholders.containsKey(placeholder);
}
@Override
public boolean persist() {
return true;
}
}