Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #This is an updated version of the /apply script that memeems(forums.minehut.com) made. 99.99% credit to them
- #Dependecies: skript, skquery, skrayfall, vault, permissions plugin
- #permissions: editable below
- #commands: /apply, /apply [argument],/apply pending,/apply view/read [player],/apply deny [player], /apply accept [player]
- #Note- The rank the player gets must have the permission that you set below -> permission1
- #Below is editable options that affect certain parts.
- #command- the command that will be executed when an application is accepted
- #permission1- the permission that regular staff will need for this to work properly
- #permission2- the permission server admins need to use /apply... (pending,read,accept,deny)
- options:
- command: execute console command "pex user %arg 2% group set jrmod"
- permission1: server.staff
- permission2: server.admin
- on join:
- if player has permission "{@permission2}":
- loop {applications.toread::*}:
- add 1 to {_app}
- if {_app} is greater than or equal to 1:
- wait 4 seconds
- send "&cThere are&8-&a%{_app}% &capplications waiting to be read."
- else if player does not have permission "{@permission2}":
- if player has permission "{@permission1}":
- stop
- else if {apending::%player%} is true:
- wait 4 seconds
- send "&3&lAPPLICATION"
- send "&cYour application is still pending."
- else if {aAccepted::%player%} is true:
- wait 4 seconds
- send "&e&lAPPLICATION"
- send "&cYour application has been &a&lACCEPTED&8. &cWelcome to the staff team!"
- send "&b&lANNOUNCEMENT &a%player% &cis now a member of the staff team!" to all players
- else if {aDenied::%player%} is true:
- wait 4 seconds
- send "&3&lAPPLICATION"
- send "&cYour application has been &4&lDENIED&8. &cYou may reapply."
- delete {aDenied::%player%}
- else:
- stop
- command /apply [<text>] [<offlineplayer>]:
- trigger:
- if player does not have permission "{@permission1}" or "{@permission2}":
- if arg 1 is not set:
- if {applied.%player's uuid%} is not set:
- open chest inventory with 1 row named "&3&lAPPLICATION &8| &7%player%" to player
- set slot 3 of player's current inventory to paper named "&aRequirements" with lore {_req::*}
- set slot 5 of player's current inventory to lime glass pane named "&aStart your application..." with lore "&2Make sure to read the terms beforehand!"
- set {applying.%player%} to true
- else:
- send "&4&oYou already have a pending application! A reply may take up to a day at most."
- else if player has permission "{@permission2}":
- if arg 1 is "pending":
- send "&7&oYou have %size of {applications.toread::*}%&7&o applications to read."
- send "&aHere are the first 5 players that have applied."
- loop {applications.toread::*}:
- add 1 to {_n}
- if {_n} is not 5:
- send "&8- &a%loop-value%"
- else:
- stop loop
- else if arg 1 contains "read" or "view":
- if arg 2 is set:
- if {applications.toread::%arg 2's uuid%} is set:
- loop integers from 1 to 7:
- send "&b%loop-value%&b. &3%{application.%loop-value%.%arg 2's uuid%}%"
- send "&bExecute command /apply deny %arg 2%&b to deny them."
- send "&bExecute command /apply accept %arg 2%&b to accept them."
- else:
- send "&c&oThis player has no pending application!"
- else:
- send "&c&oCorrect Usage: /apply [Read|View] [Player]"
- else if arg 1 contains "deny":
- if arg 2 is set:
- if {applications.toread::%arg 2's uuid%} is set:
- delete {applications.toread::%arg 2's uuid%}
- loop integers from 1 to 7:
- delete {application.%loop-value%.%arg 2's uuid%}
- delete {applied.%player's uuid%}
- send "&a&o%arg 2%&a&o's application was denied and deleted."
- loop all players:
- if loop-player is arg 2:
- send "&7" to loop-player
- send "&3&lAPPLICATION" to loop-player
- send "%player% &byour application has been &cdenied." to arg 2
- send "&bYou may apply again!"
- send "&7" to loop-player
- else:
- set {aDenied::%arg 2%} to true
- else:
- send "&c&oThis player has no pending application!"
- else:
- send "&c&oCorrect Usage: /apply [deny] [Player]"
- else if arg 1 contains "accept":
- if arg 2 is set:
- if {applications.toread::%arg 2's uuid%} is set:
- delete {applications.toread::%arg 2's uuid%}
- loop integers from 1 to 7:
- delete {application.%loop-value%.%arg 2's uuid%}
- delete {applied.%player's uuid%}
- send "&a&o%arg 2%&a&o's application was accepted and deleted."
- loop all players:
- if loop-player is arg 2:
- send "&3&lAPPLICATION" to loop-player
- send "&cYour application has been &a&lACCEPTED&8. &cWelcome to the staff team!" to arg 2
- send "&b&lANNOUNCEMENT&e&l-&a%player% &3is now a member of the staff team!" to all players
- {@command}
- else:
- set {aAccepted::%player%} to true
- else:
- send "&c&oThis player has no pending application!"
- else:
- send "&c&oCorrect Usage: /apply [accept] [player]"
- else:
- send "&c&oCommands"
- send "&4- &c/apply [pending]"
- send "&4- &c/apply [read|view] [Player]"
- send "&4- &c/apply [accept] [Player]"
- send "&4- &c/apply [deny] [Player]"
- else:
- send "&c&oYou don't have permission for this!"
- on inventory click:
- if {applying.%player%} is set:
- cancel event
- if index of event-slot is 3:
- close player's inventory
- send "&a&lREQUIREMENTS"
- if {_req::*} is set:
- loop integers from 1 to 7:
- send "&b%loop-value%&b. &3%{_req::*}%"
- else:
- send "&2- &aMust be older than 13 years old"
- send "&2- &aMust have a discord"
- send "&2- &aMust not have a punishment history &7(Exceptions possible)"
- send "&2&lOTHER TERMS"
- send "&2- &aDon't bother staff about your application"
- send "&4&lWARNING"
- send "&cAny joke applications will result in punishment."
- if index of event-slot is 5:
- close player's inventory
- set {applied.%player's uuid%} to true
- send "&2Question 1 &8| &aWhat is your discord? Do you have a working mic? &7(Answer in chat)"
- set {applying.%player%} to 1
- on chat:
- if {applying.%player%} is 1:
- cancel event
- set {application.1.%player's uuid%} to message
- send "&2Question 2 &8| &aWhy do you want to be staff on this server?"
- set {applying.%player%} to 2
- stop
- if {applying.%player%} is 2:
- cancel event
- set {application.2.%player's uuid%} to message
- send "&2Question 3 &8| &aWhat new can you bring to the staff team? &7(Playtime, characteristic etc...)"
- set {applying.%player%} to 3
- stop
- if {applying.%player%} is 3:
- cancel event
- set {application.3.%player's uuid%} to message
- send "&2Question 4 &8| &aDo you have any staff experience worth mentioning? Why are you no longer staff on those servers?"
- set {applying.%player%} to 4
- stop
- if {applying.%player%} is 4:
- cancel event
- set {application.4.%player's uuid%} to message
- send "&2Question 5 &8| &aHow much playtime could you contribute per day?"
- set {applying.%player%} to 5
- stop
- if {applying.%player%} is 5:
- cancel event
- set {application.5.%player's uuid%} to message
- send "&2Question 6 &8| &c(Scenario) &aA player is spamming chat, what do you do?"
- set {applying.%player%} to 6
- stop
- if {applying.%player%} is 6:
- cancel event
- set {application.6.%player's uuid%} to message
- send "&2Question 7 &8| &c(Scenario) &aA player is hacking, what do you do?"
- send "&c&o(( Note: In this scenario, you don't have permission to ban players... ))"
- set {applying.%player%} to 7
- stop
- if {applying.%player%} is 7:
- cancel event
- set {application.7.%player's uuid%} to message
- send ""
- send "&2&lDONE!"
- send "&aThank your for applying, you should be notified in-game or on discord within 24 hours."
- send ""
- loop all players:
- if loop-player has permission "server.admin":
- send "&7" to loop-player
- send "&3&lAPPLICATION" to loop-player
- send "%player% &bhas applied." to loop-player
- send "&7" to loop-player
- set {applications.toread::%player's uuid%} to player
- delete {applying.%player%}
- stop
Advertisement
Add Comment
Please, Sign In to add comment