ArtzifyHD

StaffHelp Skript

Jul 14th, 2017
517
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.85 KB | None | 0 0
  1. command /staffhelp [<text>]:
  2. trigger:
  3. if arg 1 is not set:
  4. if {sfm::%uuid of player%} is set:
  5. delete {sfm::%uuid of player%}
  6. send "&8[&c&lStaffHelp&8]: &7Disabled Staff Help chat."
  7. else:
  8. set {sfm::%uuid of player%} to true
  9. send "&8[&a&lStaffHelp&8]: &7Enabled Staff Help chat. Type a message and it will be sent to staff."
  10. else:
  11. if arg 1 is "reload":
  12. if player has permission "staffhelp.reload":
  13. send "&8[&a&lStaffHelp&8]: &7Reloading the StaffHelp Skript..."
  14. wait 0.25 seconds
  15. execute console command "sk reload %script%"
  16. wait 0.25 seconds
  17. send "&8[&a&lStaffHelp&8]: &7Reloaded the StaffHelp Skript."
  18. else:
  19. send "&8[&a&lStaffHelp&8]: &7No permission."
  20. else if arg 1 is "toggle":
  21. if player has permission "staffhelp.toggle":
  22. if {sfn::%uuid of player%} is set:
  23. delete {sfn::%uuid of player%}
  24. send "&8[&c&lStaffHelp&8]: &7Disabled Staff Help notifications."
  25. else:
  26. set {sfn::%uuid of player%} to true
  27. send "&8[&a&lStaffHelp&8]: &7Enabled Staff Help notifications."
  28. else:
  29. send "&8[&a&lStaffHelp&8]: &7No permission."
  30. else if arg 1 is "creators" or "creator" or "developer" or "developers":
  31. send "&8&m--------------------------"
  32. send " &a&lStaffHelp"
  33. send "&7"
  34. send "&7This Script was created by"
  35. send "&cBrettPlayMC&7!"
  36. send "&8&m--------------------------"
  37. else:
  38. send "&8[&a&lStaffHelp&8]: &7No permission."
  39. on chat:
  40. if {staffhelp::%uuid of player%} is true:
  41. cancel the event
  42. send "&8[&a&lSH&8] &7%player% &8>> &7%message%"
  43. loop all players:
  44. if player has permission "staffhelp.notifications":
  45. if {staffhelp::%uuid of player%} is true:
  46. if {staffhelps::%uuid of loop-player%} is set:
  47. if "%loop-player%" is not "%player%":
  48. send "&8[&a&lSH&8] &7%player% &8>> &7%message%" to loop-player
  49. on load:
  50. send "&8&m+--------------------+" to console
  51. send "&7Developed by: &aBrettPlayMC" to console
  52. send "&7Help from: &cmathhulk" to console
  53. send "" to console
  54. send "&7Current Version: &3%{version}%" to console
  55. send "" to console
  56. send "&7Commands loaded: &41" to console
  57. send "&7Listeners loaded: &412" to console
  58. send "" to console
  59. send "&eSuccessfully started up!" to console
  60. send "&8&m+--------------------+" to console
  61. set {version} to "0.3"
  62. on unload:
  63. send "&8&m+--------------------+" to console
  64. send "&7Developed by: &aFrostedWeFall" to console
  65. send "&7Help from: &cmathhulk" to console
  66. send "" to console
  67. send "&7Current Version: &3%{version}%" to console
  68. send "" to console
  69. send "&7Commands loaded: &41" to console
  70. send "&7Listeners loaded: &412" to console
  71. send "" to console
  72. send "&eSuccessfully unloaded! See you soon!" to console
  73. send "&8&m+--------------------+" to console
  74. # Math's version: http://hastebin.com/oputuraciy.vhdl#
Advertisement
Add Comment
Please, Sign In to add comment