Advertisement
Guest User

Untitled

a guest
Sep 9th, 2019
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.30 KB | None | 0 0
  1. command /apply:
  2. description: Receive information on how to apply for staff!
  3. executable by: players
  4. trigger:
  5. set {_waited} to difference between {apply.%player%.lastused} and now
  6. if {_waited} is less than a minute:
  7. player has permission "sk.bypass":
  8. message "&bApply for staff at the link: <link here>!"
  9. else:
  10. message "&cSorry, you must wait 1 minute between uses of /apply!"
  11. else:
  12. message "&bApply for staff at the link: <link here>!"
  13. set {apply.%player%.lastused} to now
  14. # Any player with OP will not need the sk.bypass permission.
  15. # replace <link here> with the link to any application.
  16. # You can copy/paste the same thing over for several links if you want, just replace command /apply with command /<commandname>, and
  17. # replace {apply.%player%.lastused} to {<commandname>.%player%.lastused}
  18. # The command works because it will set {_waited} to how long you waited before the last use of /apply.
  19. # It'll then see if it's less than a minute, in which case it'll deny your usage of the command.
  20. # If you have sk.bypass permission you won't get denied.
  21. # If you have waited more than a minute, you will get the application link, and the {apply.%player%.lastused} will be set to the
  22. # current time.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement