#How to tell if a player has been online within 30 days of being offline today?
1 messages · Page 1 of 1 (latest)
I can't seem to decide this.
I mainly want him to automatically identify all players who are offline every minute, and automatically cancel the test.222 permission if the player is not online within a month
set {%player%.lastonline} to now
add player to {players::*}
every minute:
loop {players::*}:
if difference between {%loop-value%.lastonline} and now > 30 days:
#do sometihng```
Let me try
If the player has logged in within 30 days, will this affect the logged in player?
?
ask bro
I think it much better to check player's last-online-date when player joined
?
I want to implement if player is not online for 30 days
Automatically revoke a permission
Is there a good way?
Brothers
i think you cant remove permissions with skript
on quit:
set {lastJoined::%player%} to now
every minute:
loop {lastJoined::*}:
if difference between {lastJoined::%loop-value%} and now > 30 days:
set {_player} to loop value parsed as player
remove <your-permission-node> from {_player}'s permissions```
I think it might be work, but I never tested it
And I don't know is it possible to revoke offline player's permission