Advertisement
Guest User

Untitled

a guest
Sep 21st, 2021
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.89 KB | None | 0 0
  1. on join:
  2. if {whitelist::*} does not contain player:
  3. set {testing::%player's uuid%} to true
  4.  
  5. on chat:
  6. if {testing::%player's uuid%} is true:
  7. set {_m} to message
  8. cancel event
  9. if {_m} contains {password}:
  10. set {testing::%player's uuid%} to false
  11. else:
  12. send "&8(&c*&8) &8| &c5 more seconds remaining."
  13. wait 1 second
  14. if {testing::%player's uuid%} is false:
  15. stop
  16. send "&8(&c*&8) &8| &c4 more seconds remaining."
  17. wait 1 second
  18. if {testing::%player's uuid%} is false:
  19. stop
  20. send "&8(&c*&8) &8| &c3 more seconds remaining."
  21. wait 1 second
  22. if {testing::%player's uuid%} is false:
  23. stop
  24. send "&8(&c*&8) &8| &c2 more seconds remaining."
  25. wait 1 second
  26. if {testing::%player's uuid%} is false:
  27. stop
  28. send "&8(&c*&8) &8| &c1 more seconds remaining."
  29. wait 1 second
  30. if {testing::%player's uuid%} is false:
  31. stop
  32. kick player
  33.  
  34. every second:
  35. loop all players:
  36. if {testing::%loop-player's uuid%}:
  37. teleport loop-player to {lockspawn}
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44. command /lock [<text>] [<text>]:
  45. permission: lock.staff
  46. trigger:
  47. if arg-1 is "password":
  48. if arg-2 is set:
  49. set {password} to arg-2
  50. send "&8(&c*&8) &8| &7Set server password to %{password}%" to player
  51. else:
  52. send "&8(&c*&8) &8| &cPlease input a password." to player
  53. if arg-1 is "whitelist":
  54. if arg-2 is set:
  55. set {_p} to arg-2 parsed as a offlineplayer
  56. if {_p} is online:
  57. if {whitelist::*} contains {_p}:
  58. remove {_p} from {whitelist::*}
  59. send "&8(&c*&8) &8| &7Removed %{_p}%&7 from the whitelist." to player
  60. else:
  61. send "&8(&c*&8) &8| &7Added %{_p}%&7 to the whitelist." to player
  62. add {_p} to {whitelist::*}
  63. if arg-1 is "spawn":
  64. if arg-2 is not set:
  65. set {lockspawn} to player's location
  66. send "&8(&c*&8) &8| &7Set locked spawn for non-whitelisted users to your location." to player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement