Advertisement
ArifJan

Untitled

Aug 9th, 2019
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 10.58 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: ""
  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: false
  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: true
  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: "!"
  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.   # The ignore the Distance above, and every player in the other world will see the message.
  136.   #
  137.   Linked_Worlds:
  138.       normal:
  139.         - world
  140.         - world_the_end
  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: "&f[L]{gangsplus_gang_tag} {vault_prefix}"
  171.     # The second part simply displays the player's name.
  172.    Second_Part:
  173.      # The message that is shown in the chat.
  174.      # If you want to show player's nick instead, use {nick}
  175.       Message: "{player}{vault_suffix}&8➟ "
  176.       # And show some fancy hover text, see above.
  177.       # This part also contains click event feature that will
  178.       # write /msg <playername> into your chat when clicked.
  179.       #
  180.       # Unlike the part name, you must name this "Click_Event"
  181.  
  182.     # The third part that simply renders the actual chat message.
  183.     Third_Part:
  184.       # The message that is shown in the chat
  185.       Message: "&7{message}"
  186.  
  187.   #
  188.   # This example format is used in private messages for the sender.
  189.   #
  190.   Private_Message_Sender:
  191.     Everything:
  192.       Message: "&c&l✉ &7[&c{receiver} &6-> &c{sender}&7] &c: &f{message}"
  193.       Hover_Event:
  194.         Action: SHOW_TEXT
  195.         Values:
  196.           - "     &c~ &fПриватное сообщение &a~     "
  197.           - "&cПолучатель: &f{receiver}"
  198.           - "&cСодержание: &f{message}"
  199.       Click_Event:
  200.         Action: SUGGEST_COMMAND
  201.         Value: "/msg {player} "
  202.   #
  203.   # This example format is used in private messages for the receiver.
  204.   #
  205.   Private_Message_Receiver:
  206.     Everything:
  207.       Message: "&c&l✉ &7[&c{sender} &6-> &c{receiver}&7] &c: &f{message}"
  208.       Hover_Event:
  209.         Action: SHOW_TEXT
  210.         Values:
  211.           - "     &c~ &fPrivate Message &c~     "
  212.           - "&cОтправитель: &f{sender}"
  213.           - ""
  214.           - "&7Нажми, чтобы ответить."
  215.       Click_Event:
  216.         Action: SUGGEST_COMMAND
  217.         Value: "/r "
  218.   #
  219.   # This example format is used in admin chat with "/chc ach".
  220.   #
  221.   Admin_Chat:
  222.     Bracket_Start:
  223.       Message: "&8[&2A-Chat "
  224.     Player:
  225.       Message: "{player}"
  226.     Bracket_End:
  227.       Message: "&8] &2"
  228.     Message:
  229.       Message: "{message}"
  230.   #
  231.   # This example format is used in global bungee chat with "/chc g".
  232.   #
  233.   Bungee_Chat:
  234.     Everything:
  235.       Message: "&8[&fG&8] {player} &7>&f {message}"
  236.   #
  237.   # This example format is used when you send a message from Discord.
  238.   # Only works if you have DiscordSRV plugin installed and configured properly.
  239.   #
  240.   Discord_Chat:
  241.     Everything:
  242.       Message: "&8[&3Discord&8] &7{player}: &f"
  243.   #
  244.   # This example format is used in global chat when ranged mode is enabled.
  245.   #
  246.   Global_Chat:
  247.     Everything:
  248.       Message: "&6[G]{gangsplus_gang_tag} {vault_prefix}{player}{vault_suffix}&8➟ &7{message}"
  249.   #
  250.   # This example format is used in spy chat for admins, when ranged mode is enabled.
  251.   #
  252.   Spy_Chat:
  253.     Everything:
  254.       Message: "&8SPY: [{world}&8]&f {pl_prefix}{player}:{pl_suffix} {message}"
  255.   #
  256.   # This example format is used in spy chat when party mode is enabled.
  257.   #
  258.   Spy_Party_Chat:
  259.     Everything:
  260.       Message: "&8SPY: [{party}&8]&f {pl_prefix}{player}:{pl_suffix} {message}"
  261.   #
  262.   # This example format is used in /me
  263.   #
  264.   Me:
  265.     Vip:
  266.       Message: "&6* "
  267.       Condition: 'player.hasPermission("chatcontrol.groups.vip")'
  268.       Hover_Event:
  269.         Action: SHOW_TEXT
  270.         Values:
  271.           - "&6This player is VIP"
  272.           - "&6Check out &e/web &6to obtain VIP"
  273.     Normal:
  274.       Message: "&f* "
  275.       Condition: '!player.hasPermission("chatcontrol.groups.vip")'
  276.     Player:
  277.       Message: "{player} "
  278.       Click_Event:
  279.         Action: SUGGEST_COMMAND
  280.         Value: "/tell {player} "
  281.     The_Rest:
  282.       Message: "{message}"
  283.   #
  284.   # This example format is used for admins when an advertising message is caught.
  285.   #
  286.   Ad_Info:
  287.     Info:
  288.       Message: |-
  289.                &6&m----------------------------------------------
  290.                &r              &7&o(( Advertisement! ))
  291.  
  292.                  &6x &ePlayer: &f{player}
  293.                  &6x &eMessage: &f{message}
  294.  
  295.     More_Info:
  296.       Message: |-
  297.                &r
  298.                  &8[&9x&8] Hover for more information."
  299.               &6&m----------------------------------------------
  300.      Hover_Event:
  301.        Action: SHOW_TEXT
  302.        Values:
  303.          - "     &8~ &3Information &8~     "
  304.          - "&3Time: &f{timestamp}"
  305.      Click_Event:
  306.        Action: SUGGEST_COMMAND
  307.        Value: "/tempban {player} 10m Advertising is not allowed!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement