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
I was happing to use this info inside a script to compare permission nodes' expiry time and then have the output depend on which permission node has the longest expiry time. Just haven't been able to figure out how to get the time in seconds.
As it is right now, the only placeholder that shows such information, show it in a human-readable format
This information isn't helpful when wanting to use it in a script etc. and since I'm unsure of how else I could get the expiry time in seconds, I am unable to compare it to another permission node, inside of my Scripts / JavaSciprt placeholders etc.
Proposed Behaviour
The suggested placeholders could follow this format.
Placeholder
Argument
Description
%luckperms_expiry_time_in_seconds%
<permission>
Gets the duration remaining on a temporary permission assigned directly to the player in seconds.
%luckperms_inherited_expiry_time_in_seconds%
<permission>
Gets the duration remaining on a temporary permission assigned directly to or inherited by the player in seconds.
%luckperms_group_expiry_time_in_seconds%
<group name>
Gets the duration remaining on a temporary group membership assigned directly to the player in seconds.
This is a good suggestion, however in the mean time you could probably look into something like PlaceholderAPI's Formatter placeholder Expansion to change the output of it.
Description
I was happing to use this info inside a script to compare permission nodes' expiry time and then have the output depend on which permission node has the longest expiry time. Just haven't been able to figure out how to get the time in seconds.
As it is right now, the only placeholder that shows such information, show it in a human-readable format
This information isn't helpful when wanting to use it in a script etc. and since I'm unsure of how else I could get the expiry time in seconds, I am unable to compare it to another permission node, inside of my Scripts / JavaSciprt placeholders etc.
Proposed Behaviour
The suggested placeholders could follow this format.
<permission>
<permission>
<group name>
<group name>
Extra Details
n/a
The text was updated successfully, but these errors were encountered: