Animated-TabList

Animated-TabList

65.2k Downloads

Please look into adding sponge placeholder api

MrWhiteFlamesYT opened this issue · 8 comments

commented

Description

Suggest looking into sponge's placeholder api, will probably be better to use that to get placeholders to work on tablist. Because it makes it hard for people to add external placeholders to use the plugin, or to create a fork for the plugin. don't have to use placeholderAPI sponge has added there own placeholderapi.

commented

I don’t see any placeholder context in sponge that knows all placeholders, Sponge can only provide placeholder context for resources to implement placeholders properly. The Sponge API has only PlaceholderContext, PlaceholderParser, and other classes that allow you to parse placeholders for other resources as well if you create some. The only way, though, is just creating dependency with the PlaceholderAPI, since I haven’t seen any plugins that use the contexts mentioned above, each resource uses only its own, like the TabList. I don’t know who and why said this that Sponge’s built-in system can provide placeholders for other plugins, at least I haven’t seen it.

commented

Same again, Nucleus also uses its own placeholders, not supposed for other resources.

commented

I don’t see any placeholder context in sponge that knows all placeholders, Sponge can only provide placeholder context for resources to implement placeholders properly. The Sponge API has only PlaceholderContext, PlaceholderParser, and other classes that allow you to parse placeholders for other resources as well if you create some. The only way, though, is just creating dependency with the PlaceholderAPI, since I haven’t seen any plugins that use the contexts mentioned above, each resource uses only its own, like the TabList. I don’t know who and why said this that Sponge’s built-in system can provide placeholders for other plugins, at least I haven’t seen it.

If you can support nucleus placeholders it would be amazing. They use sponge placeholder system not the old PAPI, more info here: https://v2.nucleuspowered.org/docs/links-and-tokens.html

commented

Same again, Nucleus also uses its own placeholders, not supposed for other resources.

Isn't really possible to support Nucleous placeholders? Support for their AFK placeholder token would be amazing. It says here it's possible (https://v2.nucleuspowered.org/docs/links-and-tokens.html), in the "Using Tokens in Other Plugins" part. They seem to use it here: https://github.com/CodeCrafter47/BungeeTabListPlus/blob/4e5468a12b3dcfc4f84e018562f79834d8fd6b62/bungee/src/main/java/codecrafter47/bungeetablistplus/placeholder/PlayerPlaceholderResolver.java#L147

commented

It’s only possible if we use the available API, but if that happened, there would be a few million afk resources besides Nucleus that would have to be added as dependencies again. We don’t want to add 200 resources as dependencies. But in general, it’s worth adding resources that are popular and used by many people.

commented

It’s only possible if we use the available API, but if that happened, there would be a few million afk resources besides Nucleus that would have to be added as dependencies again. We don’t want to add 200 resources as dependencies. But in general, it’s worth adding resources that are popular and used by many people.

Nucleus fit perfectly in that phrase "popular and used by many" 👍

commented

Do you think I should fork that outdated repository? Why me? I am not the developer of that resource, but the one who created it. The reason I don't add PAPI to this plugin as a dependency is already outdated, not updated (3rd year), API availability is probably broken, and there may be issues that can't be fixed in another resource. Or maybe it's not updated because it's not needed? This is conceivable for a smaller project, but for the source code, it is somewhat necessary to add code fixes and additional implementations. Anyway, why don't you fork that repository instead of me? I have different things to do and need to break time with other projects.

Also, this is duplicates with #162

commented

A little bit rude are we, I am not revering to the papi you are talking about,
image
I am talking about this where the support team on discord told me to tell you about this to see if you can implement it to the plugin it will support the other plugins placeholder without depending on another plugin to do it. and unlike you that have coding experience, is it hard for me that can't do coding so i am frustrated cause of it, i hate myself cause of my self confidence that struggles to learn the coding languages, Struggling to understand the stuff to a point so don't just blubber words without knowing if the user can code or not, don't blabber words out that does not go to the point i am making and i did see that papi was last updated in 2017 for sponge but sponge brought out there own embedded to there api.