jedid Posted December 28, 2023 Share Posted December 28, 2023 How do I make a skript that gives a player a rank then removes that rank after a week? Link to comment Share on other sites More sharing options...
HugeAdventure Posted December 30, 2023 Share Posted December 30, 2023 u can make it just with luckperms, but here is a example: please like the post if you like it command weeklyvip [<player>]: permission: your.permission trigger: send title "&bWeakly VIP" with subtitle "&aLets go" to arg-1 set {weeklyvip::%arg-1%} to 7 execute console command "/lp user %arg-1% parent set vip" every 24 hours: loop all players: if {weeklyvip::%loop-player%} is set: remove 1 from {weeklyvip::%loop-player%} if {weeklyvip::%loop-player%} = 0: delete {weeklyvip::%loop-player%} execute console command "/lp user %arg-1% parent clear" 1 Minecraft Developer 4+ years Discord: HugeAdventure Link to comment Share on other sites More sharing options...
jedid Posted December 31, 2023 Author Share Posted December 31, 2023 Thank you! 1 Link to comment Share on other sites More sharing options...
NobodyYT Posted January 9 Share Posted January 9 (edited) Full credits of the skript to HugeAdventure all I did was change a grammar issue and made it so any player can use it command weeklyvip: send title "&bWeekly VIP" with subtitle "&aLets go" to %player% set {weeklyvip::%arg-1%} to 7 execute console command "/lp user %arg-1% parent set vip" every 24 hours: loop all players: if {weeklyvip::%loop-player%} is set: remove 1 from {weeklyvip::%loop-player%} if {weeklyvip::%loop-player%} = 0: delete {weeklyvip::%loop-player%} execute console command "/lp user %arg-1% parent clear" Edited January 9 by NobodyYT Kept as arg-1 should have been player Link to comment Share on other sites More sharing options...
_Tarna_ Posted January 10 Share Posted January 10 All this isn't needed. Luckperms has a built in temporary rank feature. Just do /lp user (user) parent addtemp 7d All those loops above will break anyways if the server is every restarted or the script is reloaded. Discord - tarna256 In-game name - _Tarna_ Website - https://tarna.dev Paste Site: https://paste.tarna.dev --------------------------------------------------------- [VIP] - 7/27/2020 Community Support - 7/8/20 - 11/3/20 Helper - 11/3/20 - 2/21/21 Moderator - 2/21/21 - 5/17/21 - 5/17/21 - 12/20/22 Moderator - 12/20/22 - now --------------------------------------------------------- Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now