1.16.5 How use my placeholder in other plugins. (PAPI)

Discussion in 'Spigot Plugin Development' started by SpGerg, May 14, 2022.

  1. I know I can do it like this: PlaceholderAPI.setPlaceholders(.., ...). But how do I get my placeholder to work in other plugins?
     
  2. You have to create and register your own placeholders.
    This tutorial isn't up to date, but it should works.

    You must only replace:
    Code (Java):
    @Override
        public String onPlaceholderRequest(Player p, String identifier)
    with:
    Code (Java):
    @Override
        public String onPlaceholderRequest(OfflinePlayer p, String identifier) {