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

Support for placeholders #315

Open
xEllesi opened this issue Dec 26, 2021 · 3 comments
Open

Support for placeholders #315

xEllesi opened this issue Dec 26, 2021 · 3 comments

Comments

@xEllesi
Copy link

xEllesi commented Dec 26, 2021

Add Placeholders to the cooldown of each portal

Usage:

Use scoreboard or holograms to show how mutch time left to the player use the portal again.

example:
%advancedportals_portalname_remaintime%

@sekwah41 sekwah41 changed the title Suggestion Support for placeholders Dec 26, 2021
@sekwah41
Copy link
Owner

Would you have a link to the API you were wanting to support? we don't currently actually check the times other than when people try to tp and they are user-specific, not global.

@xEllesi
Copy link
Author

xEllesi commented Dec 27, 2021

oh, so its not possible to add that feature right
i wanted to use it on scoreboard to show the player how mutch time left to they can enter but if its not possible its ok

@imDaniX
Copy link
Contributor

imDaniX commented Feb 21, 2022

Would you have a link to the API you were wanting to support? we don't currently actually check the times other than when people try to tp and they are user-specific, not global.

I guess it's PlaceholderAPI. onRequest is called only when placeholder is used, so you can do exactly the same - just calculate cooldown when needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants