Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] PAPI integration #28

Open
KayaEdwin opened this issue Aug 13, 2022 · 3 comments
Open

[Feature Request] PAPI integration #28

KayaEdwin opened this issue Aug 13, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@KayaEdwin
Copy link

KayaEdwin commented Aug 13, 2022

Is your feature request related to a problem? Please describe.
When using external plugins like DeluxeMenus or MyCommand, there's no way to tell whether or not a flag is set/unset inside of someone's claim, nor is it possible to view the status of any flag.

Describe the solution you'd like
A PlaceholderAPI integration to be added to GPFlags with placeholders to view whether or not a flag is set, what the value of a flag is (for instance, with the claimweather flag) and whether or not the player has permission to set flags.

Examples;
%gpflags_status_{flag}%
%gpflags_value_{flag}%
%gpflags_canset%

Describe alternatives you've considered
Getting one commissioned, though I think this is useful enough for everyone! ^_^

Additional context
Having these placeholders implemented means GUIs can be made for GPFlags externally, without the need for any Java knowledge
I already have one implemented, though the expansion is not working properly anymore, log onto thespotsmp.org to check them out (/claimflags) ^_^

@KayaEdwin KayaEdwin added the enhancement New feature or request label Aug 13, 2022
@KayaEdwin KayaEdwin changed the title [Feature Request] [Feature Request] PAPI integration Aug 13, 2022
@KayaEdwin
Copy link
Author

Hey! here's the expansion we had commissioned with a freelancer at some point as said before, hopefully it's not too much of a mess ^^
GPFlagsExpansion-1.0-all (3).jar-2022-08-28T094804Z.tar.gz

@akdukaan
Copy link
Owner

akdukaan commented Jan 3, 2023

Looking into Papi more, and if I'm understanding this right, it looks like this isn't something that would be integrated into GPFlags but would rather be its own plugin. I'm not too interested in doing and maintaining that but if anyone else wants to, please feel free and let me know so I can thank you!

Also, I think people can take the jar file you sent and put it into /plugins/PlaceholderAPI/expansions to be able to use it for themselves. Thanks for sharing it, Kaya!

@FakEEE14
Copy link

FakEEE14 commented Feb 1, 2023

@kayalambrechts
i can decompile if you want

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants