darwj1

OpenRP Chat Configuration

Dec 26th, 2019
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 5.13 KB | None | 0 0
  1. # OpenRP Chat.
  2. # For modification requirements, notify me!
  3. # Made by Darwin Jonathan, 2020.
  4.  
  5. # Placeholder list:
  6. # &(any color code) - 0-9, a-f.
  7. # {player$user} - Username of a player. e.g. untoldpotential.
  8. # {player$displayName} - Display name of a player. e.g. [prefix]~Darwin[suffix]
  9. # {message$msg} - The message of the player.
  10. # {channel$displayName} - The channel display-name setting.
  11. # {language$language} - The language that was used.
  12.  
  13. # You can use any PlaceholderAPI value you want, as long as you have PAPI installed. (RECOMMENDED FOR VAULT PREFIXES/SUFFIXES)
  14. # You can use EmojiChat in any chat channels when talking in game, as long as you have EmojiChat installed & working.
  15.  
  16. # Default is used if no chat command is sent.
  17. default: ic
  18.  
  19. # Set to true if you want to also let players use the default chat channel's command.
  20. # In this config's case: /ic.
  21. default-can-be-used-as-command: false
  22.  
  23. # This is the permission for others to bypass the cooldown.
  24. # Set to none or remove entirely to let nobody bypass cooldowns.
  25. bypass-cooldowns-perm: 'orpchat.cooldown.bypass'
  26.  
  27. # This is the permission for others to use chat colors.
  28. # Set to none or remove entirely to let everyone use chat colors.
  29. chat-colors-perm: 'orpchat.colors.use'
  30.  
  31. #Spy chat settings.
  32. spy:
  33.  # display-style: when in spy mode, messages get replaced to this.
  34.   default-style: '&8[SPY] &7{player$user} &fin &e{channel$displayName}&f: &7{message$msg}'
  35.  
  36.   # permission: leave empty or remove entirely to make it have no permission
  37.   # in this case, that'd be a terrible idea, since anyone could spy on the chat.
  38.   permission: 'orpchat.spy'
  39.  
  40. #All channels must be placed under the 'channels' config section. You may add as many as you want.
  41. channels:
  42.  # The configuration section name acts as the command. For Local, it's /l, for example.
  43.   ic:
  44.    # display-name: the way it looks when {channel$displayName} is used.
  45.     display-name: '&8[&7IC&8]'
  46.    
  47.     # display-style: the way it looks in chat.
  48.     display-style: '{player$displayName} &fwould say "{message$msg}&f"'
  49.    
  50.     # permission: leave empty or remove entirely to make it have no permission.
  51.     # you can have more channels share the same permission.
  52.     permission: 'orpchat.ic'
  53.    
  54.     # read-perm: leave empty or remove entirely to make reading that channel not have a permission.
  55.     # you can have more channels share the same permission.
  56.     read-perm: 'orpchat.ic.read'
  57.    
  58.     # range: the block radius this works with; leave empty to make it rangeless.
  59.     # leave empty or remove entirely for none.
  60.     range: 15
  61.    
  62.     # cooldown: the time in seconds to limit how often you can use this chat.
  63.     # leave empty or remove entirely for none.
  64.    
  65.     # force-caps: replaces all lower-case text with upper-case text.
  66.     # leave empty, remove entirely or set to false to ignore this option.
  67.    
  68.     # aliases: check for other variants of the same chat.
  69.     # leave empty or remove entirely for none.
  70.    
  71.     # disable-colors: if disabled, it will simply not allow the use of color codes, even if you have the perm.
  72.     # leave empty, remove entirely, or set to false to ignore this option
  73.    
  74.     # lang-replacement: if languages are enabled, it'll use this to replace a chat message.
  75.     lang-replacement:
  76.       known: '{player$displayName} &fwould say, in &e{language$language}&f, "{message$msg}&f"'
  77.       unknown: '{player$displayName} &fwould say something in &e{language$language}&f.'
  78.    
  79.   ## Other Useful Channels, such as OOC channels.
  80.   local:
  81.     display-name: '&9[&bLocal&9]'
  82.     display-style: '&9[&bL&9] &e{player$displayName}&b: {message$msg}'
  83.     permission: 'orpchat.local'
  84.     read-perm: 'orpchat.local.read'
  85.     range: 15
  86.     aliases:
  87.      - looc
  88.       - l
  89.   global:
  90.     display-name: '&4[&cGlobal&4]'
  91.     display-style: '&4[&cG&4] &e{player$displayName}&c&l: {message$msg}'
  92.     permission: 'orpchat.global'
  93.     read-perm: 'orpchat.global.read'
  94.     cooldown: 30
  95.     disable-colors: true
  96.     aliases:
  97.      - gooc
  98.       - ooc
  99.       - g
  100.    
  101.   ## Chat Channel for Staff Members Example.
  102.   sc:
  103.     display-name: '&e[&6Staff&e]'
  104.     display-style: '&e[&6Staff&e] &a{player$user}&e: {message$msg}'
  105.     permission: 'orpchat.staff'
  106.     read-perm: 'orpchat.staff.read'
  107.    
  108. # LANGUAGE SETUP BELOW
  109. # If you don't want to use the languages expansion of OpenRP Chat, then just set this to false.
  110. use-languages: true
  111.  
  112. # This is the language command.
  113. language-command:
  114.   label: language
  115.   aliases:
  116.  - lang
  117.  
  118. # This is the channel which gets replaced by the language command.
  119. lang-default: ic
  120.  
  121. # This is the permission to be able to use /lang.
  122. use-langs-perm: "orpchat.languages"
  123.  
  124. # This is the permission to be able to use /addlang, /addlanguuid, /removelang, /removelanguuid.
  125. modify-langs-perm: "orpchat.languages.admin"
  126.  
  127. # This is the permission to bypass languages.
  128. bypass-langs-perm: "orpchat.languages.bypass"
  129.  
  130. # Lets you use other channels, such as whispering, yelling etc. by appending the chat channel/alias after the language command.
  131. # /(languagecommand)(channel) (language) (text)
  132. # e.g. /languagewhisper Romanian Hello!
  133. extra-channels:
  134. - w
  135. - y
Add Comment
Please, Sign In to add comment