MasterKyle08

/apply

Apr 16th, 2020 (edited)
1,017
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.05 KB | None | 0 0
  1. #This is an updated version of the /apply script that memeems(forums.minehut.com) made. 99.99% credit to them
  2.  
  3.  
  4.  
  5.  
  6. #Dependecies: skript, skquery, skrayfall, vault, permissions plugin
  7. #permissions: editable below
  8. #commands: /apply, /apply [argument],/apply pending,/apply view/read [player],/apply deny [player], /apply accept [player]
  9. #Note- The rank the player gets must have the permission that you set below -> permission1
  10.  
  11.  
  12. #Below is editable options that affect certain parts.
  13. #command- the command that will be executed when an application is accepted
  14. #permission1- the permission that regular staff will need for this to work properly
  15. #permission2- the permission server admins need to use /apply... (pending,read,accept,deny)
  16.  
  17. options:
  18. command: execute console command "pex user %arg 2% group set jrmod"
  19. permission1: server.staff
  20. permission2: server.admin
  21.  
  22.  
  23.  
  24.  
  25.  
  26. on join:
  27. if player has permission "{@permission2}":
  28. loop {applications.toread::*}:
  29. add 1 to {_app}
  30. if {_app} is greater than or equal to 1:
  31. wait 4 seconds
  32. send "&cThere are&8-&a%{_app}% &capplications waiting to be read."
  33. else if player does not have permission "{@permission2}":
  34. if player has permission "{@permission1}":
  35. stop
  36. else if {apending::%player%} is true:
  37. wait 4 seconds
  38. send "&3&lAPPLICATION"
  39. send "&cYour application is still pending."
  40. else if {aAccepted::%player%} is true:
  41. wait 4 seconds
  42. send "&e&lAPPLICATION"
  43. send "&cYour application has been &a&lACCEPTED&8. &cWelcome to the staff team!"
  44. send "&b&lANNOUNCEMENT &a%player% &cis now a member of the staff team!" to all players
  45. else if {aDenied::%player%} is true:
  46. wait 4 seconds
  47. send "&3&lAPPLICATION"
  48. send "&cYour application has been &4&lDENIED&8. &cYou may reapply."
  49. delete {aDenied::%player%}
  50. else:
  51. stop
  52.  
  53.  
  54.  
  55.  
  56. command /apply [<text>] [<offlineplayer>]:
  57. trigger:
  58. if player does not have permission "{@permission1}" or "{@permission2}":
  59. if arg 1 is not set:
  60. if {applied.%player's uuid%} is not set:
  61. open chest inventory with 1 row named "&3&lAPPLICATION &8| &7%player%" to player
  62. set slot 3 of player's current inventory to paper named "&aRequirements" with lore {_req::*}
  63. 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!"
  64. set {applying.%player%} to true
  65. else:
  66. send "&4&oYou already have a pending application! A reply may take up to a day at most."
  67. else if player has permission "{@permission2}":
  68. if arg 1 is "pending":
  69. send "&7&oYou have %size of {applications.toread::*}%&7&o applications to read."
  70. send "&aHere are the first 5 players that have applied."
  71. loop {applications.toread::*}:
  72. add 1 to {_n}
  73. if {_n} is not 5:
  74. send "&8- &a%loop-value%"
  75. else:
  76. stop loop
  77. else if arg 1 contains "read" or "view":
  78. if arg 2 is set:
  79. if {applications.toread::%arg 2's uuid%} is set:
  80. loop integers from 1 to 7:
  81. send "&b%loop-value%&b. &3%{application.%loop-value%.%arg 2's uuid%}%"
  82. send "&bExecute command /apply deny %arg 2%&b to deny them."
  83. send "&bExecute command /apply accept %arg 2%&b to accept them."
  84. else:
  85. send "&c&oThis player has no pending application!"
  86. else:
  87. send "&c&oCorrect Usage: /apply [Read|View] [Player]"
  88. else if arg 1 contains "deny":
  89. if arg 2 is set:
  90. if {applications.toread::%arg 2's uuid%} is set:
  91. delete {applications.toread::%arg 2's uuid%}
  92. loop integers from 1 to 7:
  93. delete {application.%loop-value%.%arg 2's uuid%}
  94. delete {applied.%player's uuid%}
  95. send "&a&o%arg 2%&a&o's application was denied and deleted."
  96. loop all players:
  97. if loop-player is arg 2:
  98. send "&7" to loop-player
  99. send "&3&lAPPLICATION" to loop-player
  100. send "%player% &byour application has been &cdenied." to arg 2
  101. send "&bYou may apply again!"
  102. send "&7" to loop-player
  103. else:
  104. set {aDenied::%arg 2%} to true
  105. else:
  106. send "&c&oThis player has no pending application!"
  107. else:
  108. send "&c&oCorrect Usage: /apply [deny] [Player]"
  109. else if arg 1 contains "accept":
  110. if arg 2 is set:
  111. if {applications.toread::%arg 2's uuid%} is set:
  112. delete {applications.toread::%arg 2's uuid%}
  113. loop integers from 1 to 7:
  114. delete {application.%loop-value%.%arg 2's uuid%}
  115. delete {applied.%player's uuid%}
  116. send "&a&o%arg 2%&a&o's application was accepted and deleted."
  117. loop all players:
  118. if loop-player is arg 2:
  119. send "&3&lAPPLICATION" to loop-player
  120. send "&cYour application has been &a&lACCEPTED&8. &cWelcome to the staff team!" to arg 2
  121. send "&b&lANNOUNCEMENT&e&l-&a%player% &3is now a member of the staff team!" to all players
  122. {@command}
  123. else:
  124. set {aAccepted::%player%} to true
  125. else:
  126. send "&c&oThis player has no pending application!"
  127. else:
  128. send "&c&oCorrect Usage: /apply [accept] [player]"
  129. else:
  130. send "&c&oCommands"
  131. send "&4- &c/apply [pending]"
  132. send "&4- &c/apply [read|view] [Player]"
  133. send "&4- &c/apply [accept] [Player]"
  134. send "&4- &c/apply [deny] [Player]"
  135. else:
  136. send "&c&oYou don't have permission for this!"
  137.  
  138.  
  139.  
  140. on inventory click:
  141. if {applying.%player%} is set:
  142. cancel event
  143. if index of event-slot is 3:
  144. close player's inventory
  145. send "&a&lREQUIREMENTS"
  146. if {_req::*} is set:
  147. loop integers from 1 to 7:
  148. send "&b%loop-value%&b. &3%{_req::*}%"
  149. else:
  150. send "&2- &aMust be older than 13 years old"
  151. send "&2- &aMust have a discord"
  152. send "&2- &aMust not have a punishment history &7(Exceptions possible)"
  153. send "&2&lOTHER TERMS"
  154. send "&2- &aDon't bother staff about your application"
  155. send "&4&lWARNING"
  156. send "&cAny joke applications will result in punishment."
  157. if index of event-slot is 5:
  158. close player's inventory
  159. set {applied.%player's uuid%} to true
  160. send "&2Question 1 &8| &aWhat is your discord? Do you have a working mic? &7(Answer in chat)"
  161. set {applying.%player%} to 1
  162. on chat:
  163. if {applying.%player%} is 1:
  164. cancel event
  165. set {application.1.%player's uuid%} to message
  166. send "&2Question 2 &8| &aWhy do you want to be staff on this server?"
  167. set {applying.%player%} to 2
  168. stop
  169. if {applying.%player%} is 2:
  170. cancel event
  171. set {application.2.%player's uuid%} to message
  172. send "&2Question 3 &8| &aWhat new can you bring to the staff team? &7(Playtime, characteristic etc...)"
  173. set {applying.%player%} to 3
  174. stop
  175. if {applying.%player%} is 3:
  176. cancel event
  177. set {application.3.%player's uuid%} to message
  178. send "&2Question 4 &8| &aDo you have any staff experience worth mentioning? Why are you no longer staff on those servers?"
  179. set {applying.%player%} to 4
  180. stop
  181. if {applying.%player%} is 4:
  182. cancel event
  183. set {application.4.%player's uuid%} to message
  184. send "&2Question 5 &8| &aHow much playtime could you contribute per day?"
  185. set {applying.%player%} to 5
  186. stop
  187. if {applying.%player%} is 5:
  188. cancel event
  189. set {application.5.%player's uuid%} to message
  190. send "&2Question 6 &8| &c(Scenario) &aA player is spamming chat, what do you do?"
  191. set {applying.%player%} to 6
  192. stop
  193. if {applying.%player%} is 6:
  194. cancel event
  195. set {application.6.%player's uuid%} to message
  196. send "&2Question 7 &8| &c(Scenario) &aA player is hacking, what do you do?"
  197. send "&c&o(( Note: In this scenario, you don't have permission to ban players... ))"
  198. set {applying.%player%} to 7
  199. stop
  200. if {applying.%player%} is 7:
  201. cancel event
  202. set {application.7.%player's uuid%} to message
  203. send ""
  204. send "&2&lDONE!"
  205. send "&aThank your for applying, you should be notified in-game or on discord within 24 hours."
  206. send ""
  207. loop all players:
  208. if loop-player has permission "server.admin":
  209. send "&7" to loop-player
  210. send "&3&lAPPLICATION" to loop-player
  211. send "%player% &bhas applied." to loop-player
  212. send "&7" to loop-player
  213. set {applications.toread::%player's uuid%} to player
  214. delete {applying.%player%}
  215. stop
Advertisement
Add Comment
Please, Sign In to add comment