You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PAPI has an extension called LocalTime, this extension allows you to show localized time this way: %localtime_timezone_[here-goes-timezone],[time-format]%
so, using this with essentialsx geolocation extension for PAPI it can be used this way: %localtime_timezone_{geolocation_timezone},HH:mm:ss%
this way it will show the player's local time...
but here's the problem, I tried this:
and got this:
which just used the default GMT+0 time because the timezone given was incorrect....
then i tried this:
and got this:
and this in console:
[04:38:34 WARN]: [AdvancedTabOverlay] There have been 1 warnings while loading plugins/AdvancedTabOverlay/tabLists/default.ymlWARNING: Error in placeholder ${viewer localtime_timezone_${viewer geolocation_timezone},HH:mm:ss%}:Unknown placeholder
Finally I decided to hardcode it:
and got this:
so it works, but it would always show the same time instead of the viewer's localized time, which is my intention... The problem is that, when using placeholders inside the placeholders, it needs a space before the $ character... anyways, I believe this should be fixed. because there is another PAPI extension, Math, that uses the same principle to use other placeholders...
The text was updated successfully, but these errors were encountered:
Coming back to this, I can suggest a small workaround for you to solve this issue for the time being.
You can use the Shortcut expansion to bypass this annoying placeholder limitation. You simply need to make a file (i.e. localtime.txt) in the shortcuts folder and have the following content in it:
%localtime_timezone_{geolocation_timezone}%
You would then use ${viewer shortcut_localtime} as the placeholder in your tab and it should work.
PAPI has an extension called LocalTime, this extension allows you to show localized time this way:
%localtime_timezone_[here-goes-timezone],[time-format]%
so, using this with essentialsx geolocation extension for PAPI it can be used this way:
%localtime_timezone_{geolocation_timezone},HH:mm:ss%
this way it will show the player's local time...
but here's the problem, I tried this:
and got this:
which just used the default GMT+0 time because the timezone given was incorrect....
then i tried this:
and got this:
and this in console:
Finally I decided to hardcode it:
and got this:
so it works, but it would always show the same time instead of the viewer's localized time, which is my intention... The problem is that, when using placeholders inside the placeholders, it needs a space before the
$
character... anyways, I believe this should be fixed. because there is another PAPI extension, Math, that uses the same principle to use other placeholders...The text was updated successfully, but these errors were encountered: