add papi support#6
Conversation
|
Have you tested if this still works on servers without PlaceholderAPI installed? |
|
Oh, and could you give a few example config files that I can use to test this locally on my own server? |
I added PAPI to soft dependenses and if PAPI is not present then PAPI related code is not executed public static String processPAPI(Player player, String str) {
if (Bukkit.getPluginManager().getPlugin("PlaceholderAPI") != null && player != null) {
return PlaceholderAPI.setPlaceholders(player, str);
}
else return str;
} |
install papi, install anything papi placeholder processer (example: this) and write config: url: "https://mc-heads.net/skin/{UUID}.png#%player_displayname%" |
TechnicJelle
left a comment
There was a problem hiding this comment.
And could you please also mention in the config.yml file that this supports PAPI, and give a few examples there, too?
TechnicJelle
left a comment
There was a problem hiding this comment.
This is the last code change I'd like to see for now.
I will try it myself later. Hopefully next weekend, but I can't promise anything.
No problem! I'll be waiting, thanks for your time |
Added PAPI dependency to pom, implemented string processing using PAPI