#[LuckPerms] How To Get Member's Expire Time Of Primary Group?
1 messages · Page 1 of 1 (latest)
You could probably do that with a JavaScript placeholder
something like prop a better way of doing it but thats all i can think lolll```javascript
function timeleft() {
var group = '%luckperms_primary_group_name%'
var timeleft= '%luckperms_group_expiry_time' + '_' + group + '%';
var parsed = PlaceholderAPI.static.setPlaceholders(BukkitPlayer, timeleft)
return parsed;
}
timeleft();
mmmm , So there seems to be no ready-made placeholder , I'm not good at programming, just an ordinary user🥹
Yeah that uses placeholderapi JavaScript expansion
I looked on a test sever and I think it gives the desired result if you need a helping hand let me know
You download the expansion then https://github.com/PlaceholderAPI/Javascript-Expansion
With the names changed
when you compose placeholders that will later on be parsed with setPlaceholders, you need to separate the first % from the rest of the placeholder, so it doesn't get parsed at first, before setting the variables.
so var timeleft= '%' + 'luckperms_group_expiry_time_' + group + '%';
you learn something everyday ty