OxyIce

ChatManager Skript/Script For Minecraft

Feb 2nd, 2015
499
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.68 KB | None | 0 0
  1. options:
  2. cm: &5[&9Chat&aManager&5]&b
  3. s: &5✔&d
  4.  
  5. command /cm [<text>] [<player>] [<text>]:
  6. Permission: cm.admin
  7.  
  8. aliases: ChatManager , cm
  9.  
  10. Permission Message: {@cm} &cYou don't have permission to use this command.
  11.  
  12. Trigger:
  13.  
  14. if arg 1 is not set:
  15.  
  16. message "&f&l||&c---&f&l||| {@cm} &f&l||&c---&f&l|||"
  17. message "{@s} /cm help &c- &fShow this panel."
  18. message "{@s} /cm clearchat &c- &fClear your chat."
  19. message "{@s} /cm clearpc &c- &fClear public chat. &6[ADMIN ONLY]"
  20. message "{@s} /cm control &c- &fClear public chat. &6[ADMIN ONLY]"
  21. message "{@s} /cm lockchat &c- &fLock Chat. &6[ADMIN ONLY]"
  22. message "{@s} /cm alaymode &c- &f4l4y mode chat. &6[ADMIN ONLY]"
  23. message "{@s} /cm reload &c- &fReload this Plugin &6[ADMIN ONLY]"
  24. message "&5A&duthor &c> &3&lO&bxy&6&lI&ece"
  25. message "&f&l||&c---&f&l||| {@cm} &f&l||&c---&f&L|||"
  26.  
  27. if arg 1 is "clearchat" or "cc":
  28.  
  29. execute console command "sudo %player% cc"
  30.  
  31. if arg 1 is "clearpc" or "cpc":
  32. execute console command "sudo %player% cpc"
  33.  
  34. if arg 1 is "lockchat" or "lc":
  35.  
  36. execute console command "sudo %player% lc
  37.  
  38. if arg 1 is "unlockchat" or "uc":
  39.  
  40. execute console command "sudo %player% uc"
  41.  
  42. if arg 1 is "alaymode" or "am":
  43.  
  44. execute console command "sudo %player% am"
  45.  
  46. if arg 1 is "control" or "c":
  47.  
  48. execute console command "sudo %arg 2% c:%arg 3%"
  49.  
  50. if arg 1 is "reload":
  51.  
  52. message "&aChatManager Is Reloading..."
  53.  
  54. wait 10 tick
  55.  
  56. message "&aSuccess Reloading Chatmanager!"
  57.  
  58. execute console command "sk reload ChatManager"
  59.  
  60.  
  61. command /am:
  62. Permission: chat.admin
  63. Permission Message: {@cm} &c&cYou don't have permission to use this command.
  64. trigger:
  65. {am} is true:
  66. broadcast "&cAlayChatMode Is False !"
  67. set {am} to false
  68. else:
  69. broadcast "&cAlayChatMode Is True !"
  70. set {am} to true
  71.  
  72.  
  73.  
  74. Command /cl:
  75.  
  76. Permission: cm.admin
  77.  
  78. Permission Message: {@cm} &cYou don't have permission to use this command
  79.  
  80. Trigger:
  81.  
  82. broadcast "{@cm} &bChat Is Lock By &f%player%."
  83.  
  84. set {chatlock} to true
  85.  
  86. stop
  87.  
  88.  
  89.  
  90. Command /cu:
  91.  
  92. Permission: cm.admin
  93.  
  94. Permission Message: {@cm} &cYou don't have permission to use this command
  95.  
  96. Trigger:
  97.  
  98. broadcast "{@cm} &bChat Is Unlocked By &f%player%."
  99.  
  100. delete {chatlock}
  101.  
  102. stop
  103.  
  104.  
  105.  
  106. on chat:
  107.  
  108. player don't have permission "cm.admin":
  109.  
  110. {chatlock} is true:
  111.  
  112. send "{@cm} &cChat is Locked!"
  113.  
  114. cancel event
  115.  
  116.  
  117. on chat:
  118.  
  119. {am} is true:
  120.  
  121. replace all "A" and "a" with "4" in the message
  122.  
  123. replace all "I" and "i" with "1" in the message
  124.  
  125. replace all "E" and "e" with "3" in the message
  126.  
  127. replace all "O" and "o" with "0" in the message
  128.  
  129. replace all "G" and "g" with "9" in the message
  130.  
  131.  
  132.  
  133.  
  134.  
  135. on chat:
  136.  
  137. player don't have permission "chat.cooldown.access":
  138.  
  139. set {_chat} to difference between {chat.%player%.cooldown} and now
  140.  
  141. if {_chat} is less than 2 seconds:
  142.  
  143. message "&cPlease Wait &4%difference between 2 seconds and {_chat}% &cFor Chat Again!"
  144.  
  145. cancel event
  146.  
  147. set {chat.%player%.cooldown} to now
  148.  
  149. stop
  150.  
  151.  
  152.  
  153. Command /cpc:
  154.  
  155. Permission: cm.admin
  156.  
  157. Permission Message: {@cm} &cYou don't have permission to use this command
  158.  
  159. Trigger:
  160. loop 100 times:
  161. broadcast ""
  162.  
  163. broadcast "{@cm} &bChat Has Been Cleared By &f%player%"
  164.  
  165. stop
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172. Command /cc:
  173.  
  174. Permission: chat.player
  175.  
  176. Permission Message: {@cm} &cYou don't have permission to use this command
  177.  
  178. Trigger:
  179. loop 100 times:
  180. message ""
  181.  
  182. message "{@cm} &bYou Chat Has Been Cleared"
  183.  
  184.  
  185. stop
Advertisement
Add Comment
Please, Sign In to add comment