Advanced Portals

Advanced Portals

307k Downloads

Support for placeholders

xEllesi opened this issue ยท 3 comments

commented

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%

commented

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.

commented

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.

commented

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