"VIP" System, Skript

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

BrazilianBug

Member
Jun 16, 2021
1
0
1
Guys, I'm new using Skript and I have a doubt!

I want to know if with Skript being able to make a command that executes other console commands, and for a certain period.

Example:

1 - Add the player to a specific group (VIP, VIP+, MVP)

2 - Execute "GIVE" commands to give items to players.

3 - Remove the player from the Group after 30 days.

Is this kind of thing possible using Skript?
 
I don't know which permissions system are you using or if it supports UUIDs.

Code:
command /giverank <player> <text> <timespan>:
  trigger:
    give arg-1 diamond # use just: execute console command "give %arg-1% diamond"
    make console execute command "addrank %arg-1% %arg-2%"
    set {timeleft:%player's uuid%} to (now + arg-3)
    set {rank:%player's uuid%} to arg-2
    send "Player %arg-1% is now in group %arg-2% for %arg-3%"

every 1 minute:
  loop {timeleft:*}:
    if difference between now and {timeleft:%loop-value%} is less than 1 minute:
      make console execute command "removerank %loop-value% %{rank:%loop-value%}%"
      delete {timeleft:%loop-value%}
      delete {rank:%loop-value%}
 
Status
Not open for further replies.