Advertisement
C00Lgamer69420

Untitled

Aug 17th, 2021
1,333
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.52 KB | None | 0 0
  1. on chat:
  2. loop {blocked::*}:
  3. if message contains loop-value:
  4. cancel event
  5. send ""
  6. send "&7&n "
  7. send ""
  8. send "&cWe've blocked your word &7'%loop-value%&7' &cAs it breaks our chat rules. If you find a bypass and abuse it, you may be punished. &bFind out more on &6/rules&b, and if you have any questions, join our discord. (/discord)"
  9. send ""
  10. send "&7&o(Report it instead)"
  11. send ""
  12. send "&7&m "
  13. send ""
  14. send "&c&l(!) &8%player% &7tried to say &7&o'%loop-value%&7' &c&l(!) &8- &7&o(Chat alert)" to all players where [input has permission "skript.blockwords"]
  15.  
  16. command /blockword [<text>] [<text>]:
  17. permission: skript.blockwords
  18. permission message: &cYou do not have the required permission to execute this command.
  19. aliases: bw
  20. trigger:
  21. if arg-1 is "block":
  22. if arg-2 is set:
  23. if {blocked::*} does not contain arg-2:
  24. add arg-2 to {blocked::*}
  25. send "&cYou haved blocked the word &7'%arg-2%&7'&c."
  26. send "&7&o(To see all the blocked words, use /blockword list)"
  27. send "&7&o(If you accidentally added this word or want to remove it, use /blockword delete (word) , or /chc and click the option)"
  28. else:
  29. send "&cThat word is already blocked!"
  30. send "&7&o(To remove it, use /blockword delete (word) or /chc and click the option)"
  31. stop
  32. else:
  33. send "&cYou have to type the word you have to block! /blockword block (word)"
  34. stop
  35. if arg-1 is "delete":
  36. if arg-2 is set:
  37. if {blocked::*} contains arg-2:
  38. remove arg-2 from {blocked::*}
  39. send "&cYou haved unblocked the word &7'%arg-2%&7'&c."
  40. stop
  41. else:
  42. send "&cThat word was never blocked!"
  43. stop
  44. else:
  45. send "&cYou have to type the word you have to unblock! /blockword delete (word)"
  46. stop
  47. if arg-1 is "list":
  48. send "&bThe filtered words are &a• &f%{blocked::*}%"
  49. stop
  50. else:
  51. send "&cNot a argument. Block/Delete/List"
  52. stop
  53.  
  54. Variables:
  55. {mutechat} = 1
  56.  
  57. command /chc [<text>]:
  58. aliases: chatcontrol
  59. permission: skript.chc
  60. permission message: &cYou do not have the required permission to execute this command.
  61. trigger:
  62. open virtual chest inventory with size 6 named "&7- &9Chat Control" to player
  63. make gui slot 37 of player with arrow named "&4&lExit" with lore "&aClick to go back" to run:
  64. close player's inventory
  65. make gui slot 15 of player with lava bucket named "&cClear chat" with lore "&7Clears the chat, nobody will be able" and "&7to see previous messages" and "&aClick to clear chat" and "&c&l(!) WARNING CAN LAG SERVER &c&l(!)" to run:
  66. loop 6000 times:
  67. broadcast ""
  68. broadcast " &7&lChat has been cleared! "
  69. send ""
  70. close player's inventory
  71. make gui slot 11 of player with iron bar named "&6Block a word" with lore "&7Censors a word and people can't say it" and "&7This can be done with &7&o(/blockword add)&7 too" and "&aClick to censor a word" to run:
  72. set {Blockword::%player%} to 1
  73. send "&7Now please &ctype &7a word in chat that you want to block"
  74. close player's inventory
  75. make gui slot 13 of player with water bucket named "&aUnblock a word" with lore "&7Uncensors a word and everyone can say it" and "&7This can be done with &7&o(/blockword remove) &7too" and "&cClick to uncensor a word" to run:
  76. set {Removeword::%player%} to 1
  77. send "&7Now please &ctype &7a word in chat that you want to unblock"
  78. close player's inventory
  79. make gui slot 43 of player with redstone comparator named "&6&oList the blocked word" with lore "&7Lists all the blocked words" and "&7This can be done with &7&o(/blockword list) &7too" and "&cClick to see" to run:
  80. make player execute "/blockword list"
  81. make gui slot 0 and 1 and 2 and 3 and 4 and 5 and 6 and 7 and 8 and 9 and 18 and 27 and 36 and 45 and 46 and 47 and 48 and 49 and 50 and 51 and 52 and 53 and 44 and 35 and 26 and 17 of player with black stained glass pane to do nothing
  82. if {mutechat} = 1:
  83. make gui slot 31 of player with lime clay named "&bUnmute chat" with lore "&7Unmutes chat, everyone" and "&7will be able to talk" and "&cClick to Unmute chat" to run:
  84. set {mutechat} to 0
  85. broadcast "&bServername &6&l> &7Chat has been &bunmuted&7."
  86. close player's inventory
  87. else:
  88. make gui slot 31 of player with red clay named "&bMute chat" with lore "&7Mutes chat, only staff" and "&7Will be able to talk." and "&aClick to mute chat" to run:
  89. set {mutechat} to 1
  90. broadcast "&bServername &6&l> &7Chat has been &bmuted&7."
  91. close player's inventory
  92.  
  93. on chat:
  94. if {Removeword::%player%} = 1:
  95. cancel event
  96. make player execute "/blockword delete %message%"
  97. set {Removeword::%player%} to 0
  98.  
  99.  
  100. on chat:
  101. if {mutechat} = 1:
  102. if player does not have permission "skript.chc":
  103. send " &7&lChat is muted! "
  104. send ""
  105. send "&cYou have to be staff to talk!"
  106. send ""
  107. cancel event
  108.  
  109. on chat:
  110. if {Blockword::%player%} = 1:
  111. cancel event
  112. make player execute "/blockword block %message%"
  113. set {Blockword::%player%} to 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement