Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /apply [<text>] [<offlineplayer>]:
- trigger:
- 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
- add "&2- &aMust be older than 13 years old" to {_req::*}
- add "&2- &aMust have a discord" to {_req::*}
- add "&2- &aMust not have a punishment history &7(Exceptions possible)" to {_req::*}
- add "&2&lOTHER TERMS" to {_req::*}
- add "&2- &aDon't bother staff about your application" to {_req::*}
- add "&4&lWARNING" to {_req::*}
- add "&cAny joke applications will result in punishment." to {_req::*}
- 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 "server.admin":
- if arg 1 is "pending":
- send "&7&oYou have %size of {applications.toread::*}%&7&o applications to read."
- send "&aHere are the first 3 players that have applied."
- loop {applications.toread::*}:
- add 1 to {_n}
- if {_n} is not 4:
- send "&8- &a%loop-value%"
- else:
- stop loop
- if arg 1 is "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 remove %arg 2%&b to remove it from the system."
- else:
- send "&c&oThis player has no pending application!"
- else:
- send "&c&oCorrect Usage: /apply [Read|View] [Player]"
- if arg 1 is "remove":
- 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 deleted. You may inform them if they passed or failed."
- else:
- send "&c&oThis player has no pending application!"
- else:
- send "&c&oCorrect Usage: /apply [Read|View] [Player]"
- if arg 1 is not "pending" or "read" or "view" or "remove":
- send "&c&oCommands"
- send "&4- &c/apply pending"
- send "&4- &c/apply [Read|View] [Player]"
- send "&4- &c/apply remove [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 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 6 &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, a staff member should contact you in-game or on discord within 24 hours."
- send ""
- loop all players:
- if loop-player has permission "server.mod":
- 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
Advertisement