Jump to content

How do I make weekly ranks?


jedid

Recommended Posts

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"
  

 

  • Thanks 1
Minecraft Developer 4+ years
 
Discord: HugeAdventure

image.gif.6ea2bf97b6307b1093517252fd317d10.gif

Link to comment
Share on other sites

  • 2 weeks later...

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 by NobodyYT
Kept as arg-1 should have been player
Link to comment
Share on other sites

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 - now

Moderator - 12/20/22 - now

---------------------------------------------------------

image.png.70849a9b84e0347ce107b8e3eaee312c.pngimage.png.2111009afbd8bef10966ba9ede35a199.png

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
√ó
√ó
  • Create New...