CuukyOfficial / VaroPlugin

Ein sehr funktionsreiches und performantes ODV & Varo Plugin mit API u.v.m.
https://docs.varoplugin.de
GNU Affero General Public License v3.0
17 stars 21 forks source link

PlaceholderAPI #95

Closed Kalibrier closed 1 month ago

Kalibrier commented 2 months ago

Would it perhaps be possible to integrate PlaceholderAPI into the plugin so that it can be used with another plugin, e.g. LuckPerms?

CuukyOfficial commented 2 months ago

Afaik PlaceholderAPI is currently being used in the plugin.

Kalibrier commented 2 months ago

Did you say a fake one is being used? Or what do you mean with Afaik?

LeStegii commented 2 months ago

AFAIK = As far as I know

Kalibrier commented 2 months ago

Ohh okay. But when I try to use it with PlaceholderAPI, it just tells me that there was no expansion class found in the file. Same when I try with /papi reload, it just says 0 placeholder hooks registered!

Which version of PlaceholderAPI is currently being used in the plugin?

CuukyOfficial commented 2 months ago

Version 2.10.10. Could you send us the exact error message displayed when trying to use the PlaceholderAPI with the Varo Plugin?

And btw, I'm not sure if the plugin exposes it's own placeholders to the PlaceholderAPI, maybe it's just capable of reading the placeholders of the other plugins using PAPI. Could you try using a PAPI Placeholder within a Varo Plugin message? Maybe it doesn't work the other way around, but I'm not sure.

Kalibrier commented 2 months ago

I currently have Version 2.11.6 installed on my server. As said, when I try to execute /papi reload the error message "0 placeholder hook(s) registered!" gets shown to me. When I try with the command /papi register VaroPlugin-4.17.3.jar the error message "No expansion class found in file: plugins/PlaceholderAPI/expansions/VaroPlugin-4.17.3.jar

I tried using the LuckPerms Expansion with PlaceholderAPI, and used for example %luckperms_groups% which seemed to work.

CuukyOfficial commented 2 months ago

I think the plugin is just capable of reading other plugins placeholders. For example you can use %luckperms_groups% in a varo plugin message, not the other way around.

Kalibrier commented 2 months ago

Yeah. But as mentioned before, I'd really need PlaceholderAPI for the Varo plugin so I can show %team% in LuckPerms.

CuukyOfficial commented 2 months ago

That would be an entirely new feature. As mentioned in the Discord, the v4 (and the v5 btw.) aren't currently being worked on - at least we are not planning on adding new features anytime soon. So I wouldn't rely on that feature getting implemented in the future.

Kalibrier commented 2 months ago

I completely understand.

CuukyOfficial commented 2 months ago

I will mark this as a feature request. Still, this is not a promise of implementing this.

Almighty-Satan commented 2 months ago

This should be fixed in cb2e6d9, but I can't publish a release as our maven repository appears to still be partially unavailable.

Kalibrier commented 2 months ago

I'll just wait for it to be compiled and posted on spigotmc

Almighty-Satan commented 1 month ago

A beta version with this feature should now be available on our Discord