Advanced-Portals icon indicating copy to clipboard operation
Advanced-Portals copied to clipboard

Support for placeholders

Open xEllesi opened this issue 4 years ago • 3 comments

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%

xEllesi avatar Dec 26 '21 21:12 xEllesi

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.

sekwah41 avatar Dec 26 '21 23:12 sekwah41

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

xEllesi avatar Dec 27 '21 10:12 xEllesi

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.

imDaniX avatar Feb 21 '22 10:02 imDaniX