Advertisement
Momshroom

Channels.yml

May 4th, 2025
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 7.16 KB | None | 0 0
  1.  
  2.  
  3. Channels:
  4.   general:
  5.     commands:
  6.    - g
  7.     type: GLOBAL
  8.     channeltag: '&f[g]'
  9.     messagecolour: '&f'
  10.     permission: towny.chat.general
  11.     default: true
  12.     craftIRCTag: admin
  13.     range: '-1'
  14.   town:
  15.     commands:
  16.    - tc
  17.     type: TOWN
  18.     channeltag: '&f[&bTOWN&f]'
  19.     messagecolour: '&b'
  20.     permission: towny.chat.town
  21.     craftIRCTag: admin
  22.     autojoin: true
  23.     range: '-1'
  24.   nation:
  25.     commands:
  26.    - nc
  27.     type: NATION
  28.     autojoin: true
  29.     channeltag: '&f[&eNATION&f]'
  30.     messagecolour: '&e'
  31.     permission: towny.chat.nation
  32.     craftIRCTag: admin
  33.     range: '-1'
  34.   alliance:
  35.     commands:
  36.    - ally
  37.     type: ALLIANCE
  38.     autojoin: true
  39.     channeltag: '&f[&9ALLY&f]'
  40.     messagecolour: '&9'
  41.     permission: towny.chat.alliance
  42.     range: '-1'
  43.   admin:
  44.     commands:
  45.    - ad
  46.     - admin
  47.     type: DEFAULT
  48.     channeltag: '&f[&4ADMIN&f]'
  49.     messagecolour: '&c'
  50.     permission: towny.chat.admin
  51.     craftIRCTag: admin
  52.     range: '-1'
  53.   mod:
  54.     commands:
  55.    - m
  56.     - mod
  57.     type: DEFAULT
  58.     channeltag: '&f[&dMOD&f]'
  59.     messagecolour: '&d'
  60.     permission: towny.chat.mod
  61.     craftIRCTag: admin
  62.     range: '-1'
  63.   Hero:
  64.     commands:
  65.    - z
  66.     - z
  67.     type: DEFAULT
  68.     channeltag: '&f[&bHERO&f]'
  69.     messagecolour: '&a'
  70.     permission: towny.chat.hero
  71.     craftIRCTag: admin
  72.     range: '-1'
  73.   TTC:
  74.     commands:
  75.    - ttc
  76.     type: DEFAULT
  77.     channeltag: '&f[&fT&4T&bC&f]'
  78.     messagecolour: '&6'
  79.     permission: towny.chat.TTC
  80.     craftIRCTag: admin
  81.     range: '-1'
  82.   local:
  83.     commands:
  84.    - l
  85.     - lc
  86.     type: DEFAULT
  87.     channeltag: '&f[&7LOCAL&f]'
  88.     messagecolour: '&7'
  89.     permission: towny.chat.local
  90.     craftIRCTag: admin
  91.     range: '100'
  92. # This file contains all configuration data for the TownyChat channels.
  93. # Each channel is a map of keys and values. You can add and remove channels, as you see fit.
  94. #
  95. # Channels do not require all of the keys to be set. The keys which are required are:
  96. #    - type
  97. #    - commands
  98. # The other keys are not required.
  99. #
  100. # The keys are as follows: commands, type, channeltag, messagecolour, permission, leavepermission, speakpermission, listenpermission, sound, range,
  101. # spam_time, focusable, default.
  102. #
  103. # The TYPE key will determine what formatting is used in a channel. Types' formats are configured in the chatconfig.yml file in the channel_formats section.
  104. #
  105. # *** Further Explanation of the available keys is below: ***
  106. #
  107. #
  108. # COMMANDS
  109. # --------
  110. # In order to swap channels, you must use the desired channel's command to enter the new chat and leave the old one.
  111. #    eg: /tc (would put you in town chat) and typing it again would not change your channel. To get back to general chat, you can do /g.
  112. #
  113. # Commands can also be used to speak into a channel, without leaving the channel you are speaking in.
  114. #    eg: '/tc somewords' will send 'somewords' to the townchat channel.
  115. #
  116. #
  117. # TYPE
  118. # ----
  119. # The channel type is either GLOBAL, TOWN, NATION, ALLIANCE, or DEFAULT. These specify what chat formating is used from the chatconfig.yml's channel_formats
  120. # section.)
  121. #
  122. #
  123. # CHANNELTAG
  124. # ----------
  125. # channeltag is what defines how the chatconfig.yml's {channelTag} chat tag will appear in the channel.
  126. #
  127. #
  128. # PERMISSION
  129. # ----------
  130. # permission is an optional key in a channel, when it is set the given value will be the permission node required to listen/speak in the channel. It is used
  131. # when either spearkpermission or listenpermission is not set.
  132. #
  133. #
  134. # SPEAKPERMISSION
  135. # ---------------
  136. # speakpermission is an optional key in a channel, when it is set the given value will be the permission node required to speak in the channel, overriding
  137. # the channel's permission key when players are speaking.
  138. #
  139. #
  140. # LISTENPERMISSION
  141. # ----------------
  142. # listenpermission is an optional key in a channel, when it is set the given value will be the permission node required to listen to the channel, overriding
  143. # the channel's permission key when a player's ability to hear a channel is tested.
  144. #
  145. #
  146. # LEAVEPERMISSION
  147. # ---------------
  148. # leavepermission is an optional key in a channel, when it is set the given value will be the permission node required to listen to the channel, when not
  149. # set this is automatically set to 'towny.chat.leave.{channelname}'.
  150. #
  151. #
  152. # MESSAGECOLOUR
  153. # -------------
  154. # messagecolour is what defines how the chatconfig.yml's {msgcolour} chat tag will appear in the channel.
  155. #
  156. # Tip: if you want to have message colour determined per-rank on your server this is possible:
  157. # in your chatconfig.yml's channel_formats section add {permsuffix} or {permgroupsuffix} after the {msgcolour} tag. Then in your permission plugin give the
  158. # ranks you want to have coloured chat a suffix consisting of a colour code. Ranks without a suffix set will have the normal channel message colour used.
  159. #
  160. #
  161. # RANGE
  162. # -----
  163. # range is what defines whether a channel has distance-based or world-based listening logic. Someone outside of the configured range will not see messages
  164. # in chat and cannot be 'heard' by others outside of the range. Range is in blocks (when set above 0).
  165. #
  166. # Options for range:
  167. #   -1 = no limits, everyone will hear messages if they have permission.
  168. #     0 = same world only
  169. #     any positive value = limited range in the same world.
  170. #
  171. #
  172. # SPAM_TIME
  173. # ---------
  174. # spam_time sets how long between chatting a player must wait, to prevent players from flooding chat with spam.
  175. #
  176. #
  177. # FOCUSABLE
  178. # ---------
  179. # focusable is a setting which allows players to set their focused channel, ie: using the /tc command with no message. Channels are focusable by default, so
  180. # there is no point to adding focusable: true. You make a channel un-focusable by adding the key/value 'focusable: false'.
  181. #
  182. #
  183. # IGNOREABLE
  184. # ---------
  185. # ignoreable is a setting which determines if a player can ignore the channel by using /res toggle ignoreotherchannels. By default a channel will have
  186. # ignoreable set to true. You can add ignoreable: false to a channel in order to make it something that players cannot ignore, and will see the channel chat
  187. # from this channel even when that player has other channels ignored. This is useful for staff chat channels which should always be monitored.
  188. #
  189. #
  190. # DEFAULT
  191. # -------
  192. # default is a setting which decides which channel is the default when a player logs in to the server.
  193. #
  194. #
  195. # HOOKED
  196. # ------
  197. # hooked is a setting which decides if a channel can be view by other plugins which are using the TownyChat AsyncChatHookEvent. You may find that a plugin
  198. # you are using will ask for 'hooked: true' to be added to a channel, in order for that plugin to further modify chat being spoken in town/nation channels.
  199. #
  200. #
  201. # SOUND
  202. # -----
  203. # Each channel can have a sound by adding the key/value 'sound: SOUND_TO_USE'
  204. # Sounds can be found here: https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Sound.html
  205. #
  206. #
  207. # Text Colouring Hints
  208. # --------------------
  209. # Black = &0, Navy = &1, Green = &2, Blue = &3, Red = &4, Purple = &5, Gold = &6, LightGray = &7, Gray = &8, DarkPurple = &9, LightGreen = &a,
  210. # LightBlue = &b, Rose = &c, LightPurple = &d, Yellow = &e, White = &f
  211. channelscomments: ''
  212.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement