Advertisement
Guest User

Untitled

a guest
Jul 16th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.44 KB | None | 0 0
  1. command /chat <text> <text>:
  2. usage: /chat <help/prefix/nick/suffix/msgcolor/colorsymbol> <parameter>
  3. trigger:
  4. player has permission "skript.chat":
  5. if {colorsymbol::%player%} is not set:
  6. set {colorsymbol::%player%} to "~"
  7. if arg-1 = "help":
  8. send "&8-------------------------&ahelp&8------------------------" to player
  9. player has permission "skript.chat.prefix":
  10. send "&a/chat prefix &8changes your prefix in the chat" to player
  11. player has permission "skript.chat.nick":
  12. send "&a/chat nick &8changes your name in the chat" to player
  13. player has permission "skript.chat.suffix":
  14. send "&a/chat suffix &8changes your suffix in the chat" to player
  15. player has permission "skript.chat.msgcolor":
  16. send "&a/chat msgcolor &8changes your message color in the chat" to player
  17. player has permission "skript.chat.colorsymbol":
  18. send "&a/chat colorsymbol &8changes the color symbol from ""&a%{colorsymbol::%player%}%&8"" " to player
  19. send "&8to your choice of option exluding ""&""" to player
  20. send "&8use ""&a%{colorsymbol::%player%}%&8"" to change the color of any chat command" to player
  21. send "&8-------------------------&ahelp&8------------------------" to player
  22. if arg-1 = "prefix":
  23. player has permission "skript.chat.prefix":
  24. set {_str} to arg-2
  25. replace all "%{colorsymbol::%player%}%" with "§" in {_str}
  26. set {chatprefix::%player%} to {_str}
  27. player does not have permission "skript.chat.prefix":
  28. send "&8You do not have permission to use this command"
  29. if arg-1 = "nick":
  30. player has permission "skript.chat.nick":
  31. set {_str} to arg-2
  32. replace all "%{colorsymbol::%player%}%" with "§" in {_str}
  33. set {chatnick::%player%} to {_str}
  34. player does not have permission "skript.chat.nick":
  35. send "&8You do not have permission to use this command"
  36. if arg-1 = "suffix":
  37. player has permission "skript.chat.suffix":
  38. set {_str} to arg-2
  39. replace all "%{colorsymbol::%player%}%" with "§" in {_str}
  40. set {chatsuffix::%player%} to {_str}
  41. player does not have permission "skript.chat.suffix":
  42. send "&8You do not have permission to use this command"
  43. if arg-1 = "msgcolor":
  44. player has permission "skript.chat.msgcolor":
  45. set {_str} to arg-2
  46. replace all "%{colorsymbol::%player%}%" with "§" in {_str}
  47. set {chatmsgcolor::%player%} to {_str}
  48. player does not have permission "skript.chat.msgcolor":
  49. send "&8You do not have permission to use this command"
  50. if arg-1 = "colorsymbol":
  51. player has permission "skript.chat.colorsymbol":
  52. set {colorsymbol::%player%} to arg-2
  53. player does not have permission "skript.chat.colorsymbol":
  54. send "&8You do not have permission to use this command"
  55. if arg-1 = "delete":
  56. delete {chatprefix::%player%}
  57. delete {chatnick::%player%}
  58. delete {chatsuffix::%player%}
  59. delete {chatmsgcolor::%player%}
  60. player does not have permission "skript.chat":
  61. send "&8You do not have permission to use this command"
  62. on chat:
  63. player has permission "skript.chat.chat":
  64. cancel event
  65. if {chatprefix::%player%} is not set:
  66. set {chatprefix::%player%} to ""
  67. if {chatnick::%player%} is not set:
  68. set {chatnick::%player%} to "%player%"
  69. if {chatsuffix::%player%} is not set:
  70. set {chatsuffix::%player%} to " :"
  71. if {chatmsgcolor::%player%} is not set:
  72. set {chatmsgcolor::%player%} to ""
  73. send "%{chatprefix::%player%}%%{chatnick::%player%}%%{chatsuffix::%player%}%%{chatmsgcolor::%player%}%%Message%" to player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement