Guest User

Untitled

a guest
Jan 2nd, 2021
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.82 KB | None | 0 0
  1. # !-------------------------------------------------------------------------------------------------!
  2. # Welcome to the main configuration of PunishControl
  3. # For support and documentation, please visit:
  4. # - https://github.com/Simplix-Softworks/PunishControl/wiki
  5. # 1) COLOR CODES are supported with the & character. See
  6. # - http://minecraftwiki.net/wiki/Formatting_codes
  7. # [!] When you use them, omit the message with " " or .
  8. # 2) For UNICODE CHARACTERS (smileys, symbols, ..), save the file in UTF-8 encoding. See
  9. # - https://github.com/Simplix-Softworks/ChatControl/wiki/Use-Right-Encoding
  10. # PS: The information above applies for all files within the PunishControl folder.
  11. # !! Messages (e.g. Please wait 2 seconds [...]) are stored in localization, see:
  12. # - https://github.com/Simplix-Softworks/PunishControl/wiki/Localization
  13. # !-------------------------------------------------------------------------------------------------!
  14.  
  15. # -------------------------------------------------------------------------------------------
  16. # Advanced settings
  17. # In most cases it is absolutely unnecessary to touch them.
  18. #
  19. # -> Dont change them unless you really know what you are doing.
  20. # -------------------------------------------------------------------------------------------
  21. advanced {
  22. cache {
  23. duration-ms=1800000
  24. enabled=true
  25. }
  26. # Change how the date should be formatted in our menus & commands
  27. date-format="hh:mm MM/dd/yyyy"
  28. #
  29. # Only applies on Spigot. If a notification will be display in the menu
  30. # if BungeeCord is detected and PunishControl is used on Spigot.
  31. encourage-bungee-cord-usage=true
  32. #
  33. # Will special commands be blocked when players are muted?
  34. listen-for-commands=true
  35. #
  36. # (Bungee-Only) Defines the latest protocol-version that our items should be compatible with
  37. # For a list of Protocol-Versions, please see: https://wiki.vg/Protocol_version_numbers
  38. # This changes how many items will be available to select in the material browsers, which
  39. # for example shows up, when you want to customize ur items
  40. min-protocol-version-supported=47
  41. #
  42. # Define how PunishControl searches for values (e.g: Names)
  43. searcher {
  44. min-similarity-needed=0.85
  45. use-starts-with=true
  46. }
  47. #
  48. # Only applies on Spigot:
  49. # Defines whether the server is in online mode or not.
  50. # The UUID fetcher won't work in offline mode.
  51. # <Auto> - Automatically detect whether the server is in offline or online mode
  52. # <Offline> - Set the server to offline mode
  53. # <Online> - Set the server to online mode
  54. #
  55. # Important: If you set the server to online mode, whilst in offline mode you
  56. # risk to invalidate the player database since the player-name -> player-uuid mapping
  57. # will get invalidated.
  58. server-mode=AUTO
  59. }
  60. # -------------------------------------------------------------------------------------------
  61. # Defines the command aliases of the main PunishControl command
  62. # * THE FIRST ALIAS IS THE MAIN LABEL, PLEASE DO NOT REMOVE IT.
  63. # -------------------------------------------------------------------------------------------
  64. command-aliases=[
  65. punishcontrol,
  66. phc,
  67. pun,
  68. pc
  69. ]
  70. # -------------------------------------------------------------------------------------------
  71. # Defines how punishment & kick reasons should be defined
  72. # -------------------------------------------------------------------------------------------
  73. formats {
  74. #
  75. # Available placeholders: (For ban, mute & warn)
  76. # {is_permanent}, {reason}, {creation}, {creator_name}, {target_name}, {duration}, {end_date}
  77. ban {
  78. permanent=[
  79. "&4You have been banned",
  80. "&8Reason: &7{reason}",
  81. "&8Banned by: &7{creator_name}"
  82. ]
  83. temporary=[
  84. "&4You have been banned",
  85. "&8Reason: &7{reason}",
  86. "&8Try again: &7{end_date}",
  87. "&8Banned by: &7{creator_name}"
  88. ]
  89. }
  90. #
  91. # Available placeholders:
  92. # {creator_name}, {reason}, {creation}
  93. kick {
  94. message=[
  95. "&4You have been kicked!",
  96. "&8Reason: &7{reason}"
  97. ]
  98. }
  99. mute {
  100. permanent=[
  101. "&4You have been muted",
  102. "&8Reason: &7{reason}",
  103. "&8Muted by: &7{creator_name}"
  104. ]
  105. temporary=[
  106. "&4You have been muted",
  107. "&8Reason: &7{reason}",
  108. "&8Try again: &7{end_date}",
  109. "&8Muted by: &7{creator_name}"
  110. ]
  111. }
  112. warn {
  113. permanent=[
  114. "&4You have been warned",
  115. "&8Reason: &7{reason}",
  116. "&8Warned by: &7{creator_name}"
  117. ]
  118. temporary=[
  119. "&4You have been warned",
  120. "&8Reason: &7{reason}",
  121. "&8Until: &7{end_date}",
  122. "&8Warned by: &7{creator_name}"
  123. ]
  124. }
  125. }
  126. # -------------------------------------------------------------------------------------------
  127. # Groups are used to determine whether a user can create a punishment or not.
  128. #
  129. # Example: Your server has got a helper group that should only be able to warn people.
  130. # -------------------------------------------------------------------------------------------
  131. groups {
  132. default {
  133. item=stone
  134. name=default
  135. }
  136. groups=[
  137. {
  138. ban-limit=permanent
  139. exempt-kicks=true
  140. exempt-punishments=true
  141. item=STONE
  142. mute-limit=permanent
  143. name=admin
  144. override-punishments=true
  145. permission="punishcontrol.group.admin"
  146. priority=0
  147. warn-limit=permanent
  148. },
  149. {
  150. ban-limit="365 days"
  151. exempt-kicks=false
  152. exempt-punishments=false
  153. item=STONE
  154. mute-limit="365 days"
  155. name=moderator
  156. override-punishments=true
  157. permission="punishcontrol.group.moderator"
  158. priority=1
  159. warn-limit="365 days"
  160. }
  161. ]
  162. }
  163. # -------------------------------------------------------------------------------------------
  164. # Default settings for kicks
  165. # -------------------------------------------------------------------------------------------
  166. kicks {
  167. #
  168. # Things that should happen once a kick is initialized
  169. actions {
  170. #
  171. # Available variables: {creator_name}, {reason}, {creation}
  172. commands=[]
  173. }
  174. }
  175. # -------------------------------------------------------------------------------------------
  176. # The default locale PunishControl is using
  177. # -------------------------------------------------------------------------------------------
  178. locale=en
  179. # -------------------------------------------------------------------------------------------
  180. # Manage notifications created by PunishControl
  181. # -------------------------------------------------------------------------------------------
  182. notifications {
  183. punishment {
  184. #
  185. # Will be triggered: When a banned player tries to join, a muted player tries to chat.
  186. by-pass-try {
  187. # Available placeholders:
  188. # {is_permanent}, {reason}, {creation}, {creator_name}, {target_name}, {duration}, {end_date}
  189. # {translated_message} - Example: (Player xy tried to chat whilst muted)
  190. # is pulled from the localization files and can also be configured.
  191. message=" {\"text\":\"\",\"extra\":[\n { \"text\":\"―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――\"},\n { \"text\":\" \"},\n { \"text\":\"{translated_message}\",\"hoverEvent\":{\"action\":\"show_text\", \n\"contents\":[\"&7Creator:&7{creator_name}\",\"&7Duration: &7{duration}\"]}},\n { \"text\":\" \"},\n{\"text\":\"―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――\", \n\"hoverEvent\":{\"action\":\"show_text\",\"contents\":[\"&7Creator:&7{creator_name}\",\"&7Duration: &7{duration}\"]}}]}"
  192. #
  193. # Permission to see this notification
  194. permission="punishcontrol.notify.punishment.bypass.try"
  195. }
  196. creation {
  197. default {
  198. #
  199. # Available placeholders:
  200. # {is_permanent}, {reason}, {creation}, {creator_name}, {target_name}, {duration}, {end_date}
  201. message="{ \"text\": \"―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――\",\"extra\": [\n{ \"text\": \"&7{target_name} &7has been {type} by {creator_name}\" },\n{ \"text\": \"&8Reason:&7 {reason}\" },\n{ \"text\": \"Duration: {duration}\" },\n{ \"text\": ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――\" } ] }"
  202. #
  203. # Permission to see this notification
  204. permission="punishcontrol.notify.punishment.creation.default"
  205. }
  206. silent {
  207. #
  208. # Available placeholders:
  209. # {is_permanent}, {reason}, {creation}, {creator_name}, {target_name}, {duration}, {end_date}
  210. message="{ \"text\": \"―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――\",\"extra\": [\n{ \"text\": \"&7{target_name} &7has been {type} by {creator_name}\" },\n{ \"text\": \"&8Reason:&7 {reason}\" },\n{ \"text\": \"Duration: {duration}\" },\n{ \"text\": ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――\" } ] }"
  211. #
  212. # Permission to see this notification
  213. permission="punishcontrol.notify.punishment.creation.silent"
  214. }
  215. }
  216. }
  217. }
  218. # -------------------------------------------------------------------------------------------
  219. # Default settings for punishments
  220. # -------------------------------------------------------------------------------------------
  221. punishments {
  222. #
  223. # Things that should happen once a punishment is initialized
  224. actions {
  225. #
  226. # Available variables: {is_permanent}, {reason}, {creation}, {creator_name}, {target_name}, {duration}, {end_date}
  227. commands=[]
  228. }
  229. bans {
  230. #
  231. # Defines whether a mute can apply on the ip of a banned player (2nd accounts with
  232. # the same ip will be banned, too)
  233. # Overrides the default "apply_on_ip" setting
  234. can-apply-on-ip=true
  235. }
  236. #
  237. # Default settings for punishment (
  238. # These can be customized for each punishment ingame or using commands.
  239. default {
  240. #
  241. # Defines whether the punishment should apply on the ip of the punished player
  242. # > Note: This can be overridden by the punishment type specific "can-apply-on-ip" setting
  243. apply-on-ip=true
  244. #
  245. # Defines the servers the punishment should apply on
  246. # Example use case:
  247. # You have got a player that was duping on the survival server
  248. # and the player should only be banned from this server.
  249. #
  250. # Available types:
  251. # All - The punishment should apply on all servers
  252. # Included - The punishment should only apply on some included servers
  253. # Excluded - The punishment should apply on all servers except some specially excluded ones
  254. #
  255. # > Note: Only applies on your proxy server! -> You will need to use PunishControl on
  256. # > BungeeCord to use this
  257. server-scope {
  258. servers=[]
  259. type=All
  260. }
  261. #
  262. # Defines which staff members will see the
  263. # notification broadcasted once a punishment is initialized (See "Notifications.punishment.creation")
  264. # Available:
  265. # - Broadcast: No permission required -> Even normal player will see the notification
  266. # - Default: Default visibility -> Will be send to staff members with the required permission
  267. # - Silent: Uses a different permission -> Use when only special staff should be notified
  268. # - SuperSilent: No notification will be send out
  269. visibility=Default
  270. }
  271. mutes {
  272. #
  273. # Commands that a player is not allowed to use while being muted
  274. blocked-commands=[
  275. "/msg"
  276. ]
  277. #
  278. # Defines whether a mute can apply on the ip of a muted player (2nd accounts with
  279. # the same ip will be muted, too)
  280. # Overrides the default "apply_on_ip" setting
  281. can-apply-on-ip=false
  282. }
  283. warns {
  284. #
  285. # Defines whether a mute can apply on the ip of a banned player (2nd accounts with
  286. # the same ip will be warned, too)
  287. # Overrides the default "apply_on_ip" setting
  288. can-apply-on-ip=false
  289. }
  290. }
  291. # -------------------------------------------------------------------------------------------
  292. # Defines the storage type and the MySQL connection if used
  293. # Available storage types: H2/MYSQL
  294. # -------------------------------------------------------------------------------------------
  295. storage {
  296. mysql-connection {
  297. database=CHANGE-ME
  298. host=CHANGE-ME
  299. password=CHANGE-ME
  300. port=3306
  301. user=CHANGE-ME
  302. }
  303. type=H2
  304. }
  305.  
Advertisement
Add Comment
Please, Sign In to add comment