CodeRida

Untitled

Nov 20th, 2020
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.48 KB | None | 0 0
  1. # !-----------------------------------------------------------------------------------------!
  2. # Welcome to ChatControl's Chat Formatting Configuration
  3. #
  4. # In this configuration you can setup how the message in the chat should look like.
  5. #
  6. # Since we support different message formats per different permissions,
  7. # per channels, or many other places in the plugin, you can create a so-called
  8. # formats that can be reused multiple times.
  9. #
  10. # For configuration, see:
  11. # - https://github.com/kangarko/ChatControl-Pro/wiki/Formats
  12. #
  13. # For variables, see:
  14. # - https://github.com/kangarko/ChatControl-Pro/wiki/Variables
  15. #
  16. # Remember, you can remove or edit all formats below, and create your own ones!
  17. #
  18. # !-----------------------------------------------------------------------------------------!
  19.  
  20. # -----------------------------------------------------------------------------------------
  21. # Enable chat formatting?
  22. # -----------------------------------------------------------------------------------------
  23. Enabled: true
  24.  
  25. # -----------------------------------------------------------------------------------------
  26. # Integration with other plugins
  27. # -----------------------------------------------------------------------------------------
  28. Integration:
  29. #
  30. # Requires DiscordSRV.
  31. #
  32. # Send your normal chat message to your DiscordSRV channel? If so, set the name of the
  33. # channel to which we shall send the message.
  34. #
  35. Discord_Channel: "creative"
  36.  
  37. # -----------------------------------------------------------------------------------------
  38. # Configuration of the default chat types in the game.
  39. # -----------------------------------------------------------------------------------------
  40. Formatting:
  41. #
  42. # The default chat format applied over all worlds.
  43. #
  44. Default: Chat
  45. #
  46. # If range mode is enabled, used if the ranged message starts with and "!".
  47. # Such messages are send to everyone (if the sender has "chatcontrol.chat.globalrange" permission).
  48. #
  49. Global: Global_Chat
  50. #
  51. # A format used in the /me command.
  52. #
  53. Me: Me
  54. #
  55. # If range mode is enabled, used to send messages to players with "chatcontrol.chat.spy"
  56. # permission that they normally shouldn't see (because it's outside their range).
  57. #
  58. # To spy on private messages (e.g. /tell or /mail), use /spy feature.
  59. #
  60. Spy: Spy_Chat
  61. #
  62. # If party chat is enabled, you can then spy on the messages with "chatcontrol.chat.spy" permission.
  63. # Requires mcMMO.
  64. #
  65. Party_Spy: Spy_Party_Chat
  66. #
  67. # Used in admin chat via "/chc ach" command, used by staff to communicate with each other.
  68. #
  69. Admin: Admin_Chat
  70. #
  71. # Used in "/chc bungeechat" command which sends messages over bungee.
  72. #
  73. # Requires BungeeCord support.
  74. #
  75. Bungee: Bungee_Chat
  76.  
  77. # -----------------------------------------------------------------------------------------
  78. # If TownyChat is installed, let it format your Towny channels while letting ChatControl
  79. # format the normal chat.
  80. # -----------------------------------------------------------------------------------------
  81. Towny_Chat:
  82. #
  83. # Should formatting for listed channels be handled by Towny or ignored?
  84. # (Channels not listed will do the opposite)
  85. #
  86. Channel_Mode_Replace: true
  87. #
  88. # What channels should we format (or not format)?
  89. # The * channel is a placeholder for when a player is not speaking in a channel
  90. #
  91. Channels:
  92. - '*'
  93. - general
  94.  
  95. # -----------------------------------------------------------------------------------------
  96. # You can optionally enable or disable the formatter depending on the world
  97. # that the player speaking is in
  98. # -----------------------------------------------------------------------------------------
  99. World_Settings:
  100. #
  101. # Should the listed worlds be the only worlds where the formatter runs?
  102. # The default (false) treats the listed worlds as a list of where the formatter does not run.
  103. #
  104. Use_As_Whitelist: false
  105. #
  106. # List of worlds to disable (or enable) the formatter
  107. #
  108. Worlds:
  109. - World_to_disable_formatter_on
  110.  
  111. # -----------------------------------------------------------------------------------------
  112. # Ranged mode limits the reach of player's message.
  113. #
  114. # For per-world chat, give everyone 'chatcontrol.chat.overrideranged' permission.
  115. # -----------------------------------------------------------------------------------------
  116. Range:
  117. #
  118. # Enable ranged mode?
  119. #
  120. Enabled: false
  121. #
  122. # Send a ranged message everywhere if it begins with the letter below and player has
  123. # the chatcontrol.chat.globalrange permission.
  124. #
  125. # Set to none to disable. Traditionally, this used to be "!"
  126. #
  127. Global_Shortcut: "none"
  128. #
  129. # How many blocks around the sender should the players see their message?
  130. #
  131. Distance: 100.0
  132. #
  133. # Worlds that shares the same chat.
  134. #
  135. # If the receiver is in a different world, we ignore the Distance above,
  136. # and he will see the message.
  137. #
  138. Linked_Worlds:
  139. normal:
  140. - world
  141. - world_nether
  142. skyland:
  143. - skyland
  144. - skyland_nether
  145.  
  146. # -----------------------------------------------------------------------------------------
  147. # Here are the actual formats. A format represents how a message should look like.
  148. # Each format consists of Parts (each part is configured individually).
  149. #
  150. # You can re-use them in different parts of the plugin, for example in chat channels.
  151. #
  152. # For tutorial, see https://github.com/kangarko/ChatControl-Pro/wiki/Formats
  153. # -----------------------------------------------------------------------------------------
  154. Formats:
  155. #
  156. # This is a very basic format named "Chat" used by default to format your main chat.
  157. #
  158. # You can name this whatever you want, however you will use
  159. # the name in other places of the plugin if you call 'Chat'.
  160. #
  161. Chat:
  162. # The first part (you can name all parts whatever you want)
  163. # that simply renders players prefix, and also contains
  164. # some fancy hover and click elements.
  165. First_Part:
  166. # The message that is shown in the chat.
  167. # In this case the variable ends with +, meaning we insert a
  168. # space " " automatically if prefix is not empty. Note only few variables
  169. # have this special feature, see our GitHub.
  170. Message: "&7{pl_prefix+}"
  171. # This part contains hover event which display an optional
  172. # message when you move your mouse over that chat part.
  173. #
  174. # Unlike the part name, you must name this "Hover_Event"
  175. Hover_Event:
  176. # What action should happen when you put your mouse on this part?
  177. Action: SHOW_TEXT
  178. # The messages that are shown to you in game.
  179. Values:
  180. - "&8*-----* &f{player} &8*-----*"
  181. - "&7Prefix&8: &7{pl_prefix}"
  182. - "&7Group&8: &b{pl_group}"
  183.  
  184. # The second part simply displays the player's name.
  185. Second_Part:
  186. # The message that is shown in the chat.
  187. # If you want to show player's nick instead, use {nick}
  188. Message: "{player}&7: &f"
  189. # And show some fancy hover text, see above.
  190. Hover_Event:
  191. Action: SHOW_TEXT
  192. Values:
  193. - "&7Message issued: &b{timestamp}"
  194. - "&7Click to send a message"
  195. # This part also contains click event feature that will
  196. # write /msg <playername> into your chat when clicked.
  197. #
  198. # Unlike the part name, you must name this "Click_Event"
  199. Click_Event:
  200. # What action should happen when you click on this part?
  201. Action: SUGGEST_COMMAND
  202. # The message or value when action is fired.
  203. Value: '/msg {player} '
  204.  
  205. # The third part that simply renders the actual chat message.
  206. Third_Part:
  207. # The message that is shown in the chat
  208. Message: "{message}"
  209.  
  210. #
  211. # This example format is used in private messages for the sender.
  212. #
  213. Private_Message_Sender:
  214. Everything:
  215. Message: "&3✉ &bYou &3&l⇒ &b{player}&7: &f{message}"
  216. Hover_Event:
  217. Action: SHOW_TEXT
  218. Values:
  219. - " &8~ &3Private Message &8~ "
  220. - "&8&oSent {timestamp}"
  221. - "&3Receiver: &f{receiver}"
  222. - "&3Body: &f{message}"
  223. Click_Event:
  224. Action: SUGGEST_COMMAND
  225. Value: "/tell {player} "
  226. #
  227. # This example format is used in private messages for the receiver.
  228. #
  229. Private_Message_Receiver:
  230. Everything:
  231. Message: "&3✉ &b{player} &3&l⇒ &bYou&7: &f{message}"
  232. Hover_Event:
  233. Action: SHOW_TEXT
  234. Values:
  235. - " &8~ &3Private Message &8~ "
  236. - "&8&oReceived {timestamp}"
  237. - "&3Sender: &f{sender}"
  238. - ""
  239. - "&7Click for a reply."
  240. Click_Event:
  241. Action: SUGGEST_COMMAND
  242. Value: "/r "
  243. #
  244. # This example format is used in admin chat with "/chc ach".
  245. #
  246. Admin_Chat:
  247. Bracket_Start:
  248. Message: "&3[&b"
  249. Player:
  250. Message: "{pl_prefix}&7{player}{pl_suffix}"
  251. Bracket_End:
  252. Message: "&3]&b "
  253. Message:
  254. Message: "{message}"
  255. #
  256. # This example format is used in global bungee chat with "/chc g".
  257. #
  258. Bungee_Chat:
  259. Everything:
  260. Message: "&3C&8 ┃ {pl_prefix}&7{nick}{pl_suffix}{deluxetags_tag}&3 »&7 {message}"
  261. #
  262. # This example format is used when you send a message from Discord.
  263. # Only works if you have DiscordSRV plugin installed and configured properly.
  264. #
  265. Discord_Chat:
  266. Everything:
  267. Message: "&3Discord&8 ┃ {pl_prefix}&7{nick}{pl_suffix}{deluxetags_tag}&3 »&7 {message}"
  268. #
  269. # This example format is used in global chat when ranged mode is enabled.
  270. #
  271. Global_Chat:
  272. Everything:
  273. Message: "&3C&8 ┃ {pl_prefix}&7{nick}{pl_suffix}{deluxetags_tag}&3 »&7 {message}"
  274. #
  275. # This example format is used in spy chat for admins, when ranged mode is enabled.
  276. #
  277. Spy_Chat:
  278. Everything:
  279. Message: "&8SPY: [Creative&8]&f {pl_prefix}{player}{pl_suffix}&3 »&7 {message}"
  280. #
  281. # This example format is used in spy chat when party mode is enabled.
  282. #
  283. Spy_Party_Chat:
  284. Everything:
  285. Message: "&8SPY: [{party}&8]&f {pl_prefix}{player}{pl_suffix}: {message}"
  286. #
  287. # This example format is used in /me
  288. #
  289. Me:
  290. Vip:
  291. Message: "&6* "
  292. Condition: 'player.hasPermission("chatcontrol.groups.vip")' # Consider using Sender_Permission key instead for better performance
  293. Hover_Event:
  294. Action: SHOW_TEXT
  295. Values:
  296. - "&6This player is VIP"
  297. - "&6Check out &e/web &6to obtain VIP"
  298. Normal:
  299. Message: "&f* "
  300. Condition: '!player.hasPermission("chatcontrol.groups.vip")'
  301. Player:
  302. Message: "{player} "
  303. Click_Event:
  304. Action: SUGGEST_COMMAND
  305. Value: "/tell {player} "
  306. The_Rest:
  307. Message: "{message}"
  308. #
  309. # This example format is used for admins when an advertising message is caught.
  310. #
  311. Ad_Info:
  312. Info:
  313. Message: |-
  314. &6&m----------------------------------------------
  315. &r &7&o(( Advertisement! ))
  316.  
  317. &6x &ePlayer: &f{player}
  318. &6x &eMessage: &f{message}
  319.  
  320. More_Info:
  321. Message: |-
  322. &r
  323. &8[&9x&8] Hover for more information."
  324. &6&m----------------------------------------------
  325. Hover_Event:
  326. Action: SHOW_TEXT
  327. Values:
  328. - " &8~ &3Information &8~ "
  329. - "&3Time: &f{timestamp}"
  330. Click_Event:
  331. Action: SUGGEST_COMMAND
  332. Value: "/tempban {player} 10m Advertising is not allowed!"
  333.  
Advertisement
Add Comment
Please, Sign In to add comment