Advertisement
miguelmarleau

Untitled

Feb 19th, 2020
638
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.88 KB | None | 0 0
  1. command /apply [<text>] [<offlineplayer>]:
  2. trigger:
  3. if arg 1 is not set:
  4. if {applied.%player's uuid%} is not set:
  5. open chest inventory with 1 row named "&3&lAPPLICATION &8| &7%player%" to player
  6. add "&2- &aMust be older than 13 years old" to {_req::*}
  7. add "&2- &aMust have a discord" to {_req::*}
  8. add "&2- &aMust not have a punishment history &7(Exceptions possible)" to {_req::*}
  9. add "&2&lOTHER TERMS" to {_req::*}
  10. add "&2- &aDon't bother staff about your application" to {_req::*}
  11. add "&4&lWARNING" to {_req::*}
  12. add "&cAny joke applications will result in punishment." to {_req::*}
  13. set slot 3 of player's current inventory to paper named "&aRequirements" with lore {_req::*}
  14. 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!"
  15. set {applying.%player%} to true
  16. else:
  17. send "&4&oYou already have a pending application! A reply may take up to a day at most."
  18. else if player has permission "server.admin":
  19. if arg 1 is "pending":
  20. send "&7&oYou have %size of {applications.toread::*}%&7&o applications to read."
  21. send "&aHere are the first 3 players that have applied."
  22. loop {applications.toread::*}:
  23. add 1 to {_n}
  24. if {_n} is not 4:
  25. send "&8- &a%loop-value%"
  26. else:
  27. stop loop
  28. if arg 1 is "read" or "view":
  29. if arg 2 is set:
  30. if {applications.toread::%arg 2's uuid%} is set:
  31. loop integers from 1 to 7:
  32. send "&b%loop-value%&b. &3%{application.%loop-value%.%arg 2's uuid%}%"
  33. send "&bExecute command /apply remove %arg 2%&b to remove it from the system."
  34. else:
  35. send "&c&oThis player has no pending application!"
  36. else:
  37. send "&c&oCorrect Usage: /apply [Read|View] [Player]"
  38. if arg 1 is "remove":
  39. if arg 2 is set:
  40. if {applications.toread::%arg 2's uuid%} is set:
  41. delete {applications.toread::%arg 2's uuid%}
  42. loop integers from 1 to 7:
  43. delete {application.%loop-value%.%arg 2's uuid%}
  44. delete {applied.%player's uuid%}
  45. send "&a&o%arg 2%&a&o's application was deleted. You may inform them if they passed or failed."
  46. else:
  47. send "&c&oThis player has no pending application!"
  48. else:
  49. send "&c&oCorrect Usage: /apply [Read|View] [Player]"
  50. if arg 1 is not "pending" or "read" or "view" or "remove":
  51. send "&c&oCommands"
  52. send "&4- &c/apply pending"
  53. send "&4- &c/apply [Read|View] [Player]"
  54. send "&4- &c/apply remove [Player]"
  55. else:
  56. send "&c&oYou don't have permission for this!"
  57.  
  58.  
  59.  
  60. on inventory click:
  61. if {applying.%player%} is set:
  62. cancel event
  63. if index of event-slot is 5:
  64. close player's inventory
  65. set {applied.%player's uuid%} to true
  66. send "&2Question 1 &8| &aWhat is your discord? Do you have a working mic? &7(Answer in chat)"
  67. set {applying.%player%} to 1
  68. on chat:
  69. if {applying.%player%} is 1:
  70. cancel event
  71. set {application.1.%player's uuid%} to message
  72. send "&2Question 2 &8| &aWhy do you want to be staff on this server?"
  73. set {applying.%player%} to 2
  74. stop
  75. if {applying.%player%} is 2:
  76. cancel event
  77. set {application.2.%player's uuid%} to message
  78. send "&2Question 3 &8| &aWhat new can you bring to the staff team? &7(Playtime, characteristic etc...)"
  79. set {applying.%player%} to 3
  80. stop
  81. if {applying.%player%} is 3:
  82. cancel event
  83. set {application.3.%player's uuid%} to message
  84. send "&2Question 4 &8| &aDo you have any staff experience worth mentioning? Why are you no longer staff on those servers?"
  85. set {applying.%player%} to 4
  86. stop
  87. if {applying.%player%} is 4:
  88. cancel event
  89. set {application.4.%player's uuid%} to message
  90. send "&2Question 5 &8| &aHow much playtime could you contribute per day?"
  91. set {applying.%player%} to 5
  92. stop
  93. if {applying.%player%} is 5:
  94. cancel event
  95. set {application.5.%player's uuid%} to message
  96. send "&2Question 6 &8| &c(Scenario) &aA player is spamming chat, what do you do?"
  97. set {applying.%player%} to 6
  98. stop
  99. if {applying.%player%} is 6:
  100. cancel event
  101. set {application.6.%player's uuid%} to message
  102. send "&2Question 6 &8| &c(Scenario) &aA player is hacking, what do you do?"
  103. send "&c&o(( Note: In this scenario, you don't have permission to ban players... ))"
  104. set {applying.%player%} to 7
  105. stop
  106. if {applying.%player%} is 7:
  107. cancel event
  108. set {application.7.%player's uuid%} to message
  109. send ""
  110. send "&2&lDONE!"
  111. send "&aThank your for applying, a staff member should contact you in-game or on discord within 24 hours."
  112. send ""
  113. loop all players:
  114. if loop-player has permission "server.mod":
  115. send "&7" to loop-player
  116. send "&3&lAPPLICATION" to loop-player
  117. send "%player% &bhas applied." to loop-player
  118. send "&7" to loop-player
  119. set {applications.toread::%player's uuid%} to player
  120. delete {applying.%player%}
  121. stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement