Advertisement
AidanStitched

Untitled

Aug 20th, 2017
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.27 KB | None | 0 0
  1. # _____ _ _ ___ ___
  2. #/ __ \ | | | | \/ |
  3. #| / \/ |__ __ _| |_ | . . | __ _ _ __ __ _ __ _ ___ _ __
  4. #| | | '_ \ / _` | __| | |\/| |/ _` | '_ \ / _` |/ _` |/ _ \ '__|
  5. #| \__/\ | | | (_| | |_ | | | | (_| | | | | (_| | (_| | __/ |
  6. # \____/_| |_|\__,_|\__| \_| |_/\__,_|_| |_|\__,_|\__, |\___|_|
  7. # __/ |
  8. # |___/
  9. #
  10. #______ _ _ ___ _ _______ _ _ _ __
  11. #| ___ \ | | | | / _ \| | / | ___ \ (_) | | | | \ \
  12. #| |_/ /_ _ | | | |_/ /_\ | |_ _ __ _____ __ | || |_/ /_____ ___ _ __ | | | | ___ ___ | |
  13. #| ___ | | | | | | | __| _ | __| '__/ _ \ \/ / | || // _ \ \ / | | '_ \| |/\| |/ _ \ / _ \| |
  14. #| |_/ | |_| | | |___| |_| | | | |_| | | __/> < | || |\ | __/\ V /| | | | \ /\ | (_) | (_) | |
  15. #\____/ \__, | \_____/\__\_| |_/\__|_| \___/_/\_\ | |\_| \_\___| \_/ |_|_| |_|\/ \/ \___/ \___/| |
  16. # __/ | \_\ /_/
  17. # |___/
  18. #
  19.  
  20.  
  21. command /cm [<text>]:
  22. aliases: /chatmanager
  23. trigger:
  24. if arg 1 is set:
  25. execute console command "sk reload ChatManager"
  26. send "&7[&9ChatManager&7] &aSkript reloaded successfully!"
  27. else:
  28. send "&7[&9ChatManager&7] &aThis server is running ChatManager v1.0 by Revin/LtAtrex"
  29.  
  30.  
  31.  
  32. # _____ _ _ ___ ___
  33. #/ __ | | | | | \/ |
  34. #| / \| |__ __ _| |_ | . . | ___ _ __ _ _
  35. #| | | '_ \ / _` | __| | |\/| |/ _ | '_ \| | | |
  36. #| \__/| | | | (_| | |_ | | | | __| | | | |_| |
  37. # \____|_| |_|\__,_|\__| \_| |_/\___|_| |_|\__,_|
  38. #
  39.  
  40.  
  41. command /chat:
  42. aliases: /c
  43. permission: skcm.menu
  44. permission message: &7[&9ChatManager&7] &cYou don't have permission to use this command!
  45. trigger:
  46. open chest with 1 row named "&cChat Menu &7[&9ChatManager&7]" to player
  47. wait 1 tick
  48. format slot 0 of player with 1 redstone block named "&cPause Chat &a(GLOBAL)" to close then run [execute player command "/mutechat"]
  49. format slot 1 of player with 1 blue wool named "&9Staff Chat &a(PERSONAL)" to close then run [execute player command "/sc"]
  50. format slot 2 of player with 1 green wool named "&bClear Chat &a(GLOBAL)" to close then run [execute player command "/clearchat"]
  51.  
  52. #___ ___ _ _____ _ _
  53. #| \/ | | | / __ | | | |
  54. #| . . |_ _| |_ ___ | / \| |__ __ _| |_
  55. #| |\/| | | | | __/ _ \ | | | '_ \ / _` | __|
  56. #| | | | |_| | || __/ | \__/| | | | (_| | |_
  57. #\_| |_/\__,_|\__\___| \____|_| |_|\__,_|\__|
  58. #
  59.  
  60.  
  61. command /mutechat [<time span>]:
  62. aliases: /mc
  63. permission: skcm.mutechat
  64. permission message: &7[&9ChatManager&7] &cYou don't have permission to use this command!
  65. trigger:
  66. if arg 1 is set:
  67. set {chatmute} to 1
  68. broadcast "&7[&9Chat&7] &cThe chat is now muted for %arg 1%!"
  69. wait arg 1
  70. set {chatmute} to 0
  71. broadcast "&7[&9Chat&7] &aThe chat is now unmuted!"
  72. else:
  73. if {chatmute} is 0:
  74. set {chatmute} to 1
  75. broadcast "&7[&9Chat&7] &cThe chat is now muted!"
  76. else:
  77. set {chatmute} to 0
  78. broadcast "&7[&9Chat&7] &aThe chat is now unmuted!"
  79.  
  80. on chat:
  81. if {chatmute} is 1:
  82. if player has permission "skcm.chatmute.bypass":
  83.  
  84. else:
  85. cancel event
  86. send "&7[&9Chat&7] &cThe chat is currently muted!"
  87. else:
  88.  
  89.  
  90. # _____ _ __ __ _____ _ _
  91. #/ ___| | / _|/ _| / __ | | | |
  92. #\ `--.| |_ __ _| |_| |_ | / \| |__ __ _| |_
  93. # `--. | __/ _` | _| _| | | | '_ \ / _` | __|
  94. #/\__/ | || (_| | | | | | \__/| | | | (_| | |_
  95. #\____/ \__\__,_|_| |_| \____|_| |_|\__,_|\__|
  96. #
  97.  
  98.  
  99. command /staffchat [<text>]:
  100. aliases: /sc
  101. permission: skcm.staffchat
  102. permission message: &7[&9ChatManager&7] &cYou don't have permission to use this command!
  103. trigger:
  104. if arg 1 is not set:
  105. if {sc.%player%} is 0:
  106. set {sc.%player%} to 1
  107. send "&7[&9Staff Chat&7] &aStaff chat is now enabled!"
  108. else:
  109. set {sc.%player%} to 0
  110. send "&7[&9Staff Chat&7] &cStaff chat is now disabled!"
  111. if arg 1 is set:
  112. loop all players:
  113. loop-player has permission "skcm.staffchat":
  114. send "&7[&9Staff Chat&7] &b%player%: &7%arg 1%" to loop-player
  115. on chat:
  116. if {sc.%player%} is 1:
  117. cancel event
  118. execute player command "/sc %message%"
  119.  
  120. # _____ _ _____ _ _
  121. #/ __ \ | / __ \ | | |
  122. #| / \/ | ___ __ _ _ __ | / \/ |__ __ _| |_
  123. #| | | |/ _ \/ _` | '__| | | | '_ \ / _` | __|
  124. #| \__/\ | __/ (_| | | | \__/\ | | | (_| | |_
  125. # \____/_|\___|\__,_|_| \____/_| |_|\__,_|\__|
  126. #
  127.  
  128.  
  129. command /clearchat:
  130. aliases: /cc
  131. permission: skcm.clearchat
  132. permission message: &7[&9ChatManager&7] &cYou don't have permission to use this command!
  133. trigger:
  134. loop 100 times:
  135. broadcast ""
  136. broadcast "&7[&9ChatManager&7] &aChat cleared by %player%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement