Guest User

Untitled

a guest
Jan 2nd, 2021
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.95 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. # The default locale PunishControl is using
  17. # -------------------------------------------------------------------------------------------
  18. locale = en
  19.  
  20. # -------------------------------------------------------------------------------------------
  21. # Defines the command aliases of the main PunishControl command
  22. # * THE FIRST ALIAS IS THE MAIN LABEL, PLEASE DO NOT REMOVE IT.
  23. # -------------------------------------------------------------------------------------------
  24. command-aliases = [
  25. punishcontrol,
  26. phc,
  27. pun,
  28. pc
  29. ]
  30.  
  31. # -------------------------------------------------------------------------------------------
  32. # Defines the storage type and the MySQL connection if used
  33. # Available storage types: H2/MYSQL
  34. # -------------------------------------------------------------------------------------------
  35. storage {
  36. type = H2
  37. mysql-connection {
  38. database = CHANGE-ME
  39. host = CHANGE-ME
  40. password = CHANGE-ME
  41. port = 3306
  42. user = CHANGE-ME
  43. }
  44. }
  45.  
  46. # -------------------------------------------------------------------------------------------
  47. # Groups are used to determine the limits a player can create.
  48. # Specific groups can also be exempted from punishments or kicks.
  49. #
  50. # Example use case:
  51. # > Your server has got a helper group
  52. # > that should only be able to warn people.
  53. #
  54. # Priorities: Highest: 0, second: 1, third: 2, and so on
  55. #
  56. # Note:
  57. # > If 2 groups are matching for a player,
  58. # > the group which the the highest priority will
  59. # > be applied
  60. #
  61. # Important:
  62. # > If a user does not have any specific (but only the default) group, it will not be able
  63. # > to create punishments
  64. #
  65. # -------------------------------------------------------------------------------------------
  66. groups {
  67. #
  68. # Default group.
  69. # Used for every player on the server.
  70. # Lowest priority of all groups
  71. #
  72. default {
  73. # Display name of the group. For example used in menus
  74. name = default
  75. # Display item of the group. For example used in menus
  76. # List of valid items:
  77. # https://docs.google.com/document/d/1pWfAc_wY8_CFnWGlUH_OgPZQAs59b1Q2pWIm1kjQEmU/edit
  78. item = stone
  79. }
  80.  
  81. groups = [
  82. {
  83. name = admin
  84. item = STONE
  85. # Permission a player needs to have to be considered as a part of this group
  86. permission = "punishcontrol.group.admin"
  87. # Limits define how long a member of a group will be able to punish a user
  88. ban-limit = permanent
  89. mute-limit = permanent
  90. warn-limit = permanent
  91. exempt-kicks = true
  92. exempt-punishments = true
  93. priority = 0
  94. },
  95. {
  96. name = moderator
  97. permission = "punishcontrol.group.moderator"
  98. ban-limit = "365 days"
  99. mute-limit = "365 days"
  100. warn-limit = "365 days"
  101. exempt-kicks = false
  102. exempt-punishments = false
  103. item = STONE
  104. override-punishments = true
  105. priority = 1
  106.  
  107. }
  108. ]
  109. }
  110.  
  111. # -------------------------------------------------------------------------------------------
  112. # Default settings for punishments
  113. # -------------------------------------------------------------------------------------------
  114. punishments {
  115. #
  116. # Things that should happen once a punishment is initialized
  117. #
  118. actions {
  119. #
  120. # Available variables: {is_permanent}, {reason},
  121. # {creation}, {creator_name}, {target_name}, {duration}, {end_date}
  122. #
  123. commands = []
  124. }
  125.  
  126. #
  127. # Default settings for punishment (
  128. # These can be customized for each punishment ingame or using commands.
  129. #
  130. default {
  131. #
  132. # Defines whether the punishment should apply on the ip of the punished player
  133. # > Note: This can be overridden by the punishment type specific "can-apply-on-ip" setting
  134. #
  135. apply-on-ip = true
  136. #
  137. # Defines the servers the punishment should apply on
  138. # Example use case:
  139. # > You have got a player that was duping on the survival server
  140. # > and the player should only be banned from this server.
  141. #
  142. # Available types:
  143. # All - The punishment should apply on all servers
  144. # Included - The punishment should only apply on some included servers
  145. # Excluded - The punishment should apply on all servers except some specially excluded ones
  146. #
  147. # > Note: Only applies on your proxy server! -> You will need to use PunishControl on
  148. # > BungeeCord to use this
  149. #
  150. server-scope {
  151. servers = []
  152. type = All
  153. }
  154.  
  155. #
  156. # Defines which staff members will see the
  157. # notification broadcasted once a punishment is initialized (See "Notifications.punishment.creation")
  158. # Available:
  159. # - Broadcast: No permission required -> Even normal player will see the notification
  160. # - Default: Default visibility -> Will be send to staff members with the required permission
  161. # - Silent: Uses a different permission -> Use when only special staff should be notified
  162. # - SuperSilent: No notification will be send out
  163. visibility = Default
  164. }
  165.  
  166. bans {
  167. #
  168. # Defines whether a mute can apply on the ip of a banned player (2nd accounts with
  169. # the same ip will be banned, too)
  170. # Overrides the default "apply_on_ip" setting
  171. #
  172. can-apply-on-ip = true
  173. }
  174.  
  175. mutes {
  176. #
  177. # Commands that a player is not allowed to use while being muted
  178. # > Note: This feature can be disabled in "advanced.listen-for-commands"
  179. #
  180. blocked-commands = [
  181. "/msg",
  182. "/r",
  183. "/tell",
  184. "/reply",
  185. "/me",
  186. "/r"
  187. ]
  188. #
  189. # Defines whether a mute can apply on the ip of a muted player (2nd accounts with
  190. # the same ip will be muted, too)
  191. # Overrides the default "apply_on_ip" setting
  192. #
  193. can-apply-on-ip = false
  194. }
  195. warns {
  196. #
  197. # Defines whether a warn can apply on the ip of a banned player (2nd accounts with
  198. # the same ip will be warned, too)
  199. # Overrides the default "apply_on_ip" setting
  200. #
  201. can-apply-on-ip = false
  202. }
  203. }
  204.  
  205. # -------------------------------------------------------------------------------------------
  206. # Default settings for kicks
  207. # -------------------------------------------------------------------------------------------
  208. kicks {
  209. #
  210. # Things that should happen once a kick is initialized
  211. #
  212. actions {
  213. #
  214. # Available variables: {creator_name}, {reason}, {creation}
  215. #
  216. commands = []
  217. }
  218. }
  219.  
  220. # -------------------------------------------------------------------------------------------
  221. # Settings for automatic staffactions.
  222. # -------------------------------------------------------------------------------------------
  223. auto-staff-actions {
  224. time-off-set = permanent
  225. }
  226.  
  227. # -------------------------------------------------------------------------------------------
  228. # Defines how punishment & kick reasons should be defined
  229. # -------------------------------------------------------------------------------------------
  230. formats {
  231. #
  232. # Available placeholders: (For ban, mute & warn)
  233. # {is_permanent}, {reason}, {creation}, {creator_name}, {target_name}, {duration}, {end_date}
  234. #
  235. ban {
  236. permanent = [
  237. "&4You have been banned",
  238. "&8Reason: &7{reason}",
  239. "&8Banned by: &7{creator_name}"
  240. ]
  241. temporary = [
  242. "&4You have been banned",
  243. "&8Reason: &7{reason}",
  244. "&8Try again: &7{end_date}",
  245. "&8Banned by: &7{creator_name}"
  246. ]
  247. }
  248. mute {
  249. permanent = [
  250. "&4You have been muted",
  251. "&8Reason: &7{reason}",
  252. "&8Muted by: &7{creator_name}"
  253. ]
  254. temporary = [
  255. "&4You have been muted",
  256. "&8Reason: &7{reason}",
  257. "&8Try again: &7{end_date}",
  258. "&8Muted by: &7{creator_name}"
  259. ]
  260. }
  261.  
  262. warn {
  263. permanent = [
  264. "&4You have been warned",
  265. "&8Reason: &7{reason}",
  266. "&8Warned by: &7{creator_name}"
  267. ]
  268. temporary = [
  269. "&4You have been warned",
  270. "&8Reason: &7{reason}",
  271. "&8Until: &7{end_date}",
  272. "&8Warned by: &7{creator_name}"
  273. ]
  274. }
  275. #
  276. # Available placeholders:
  277. # {creator_name}, {reason}, {creation}
  278. #
  279. kick {
  280. message = [
  281. "&4You have been kicked!",
  282. "&8Reason: &7{reason}"
  283. ]
  284. }
  285. }
  286.  
  287. # -------------------------------------------------------------------------------------------
  288. # Manage notifications created by PunishControl
  289. # -------------------------------------------------------------------------------------------
  290. notifications {
  291. punishment {
  292. creation {
  293. default {
  294. #
  295. # Permission to see this notification
  296. #
  297. permission = "punishcontrol.notify.punishment.creation.default"
  298. #
  299. # Available placeholders:
  300. # {is_permanent}, {reason}, {creation}, {creator_name}, {target_name}, {duration}, {end_date}
  301. #
  302. 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\": ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――\" } ] }"
  303. }
  304. silent {
  305. #
  306. # Permission to see this notification
  307. #
  308. permission = "punishcontrol.notify.punishment.creation.silent"
  309. #
  310. # Available placeholders:
  311. # {is_permanent}, {reason}, {creation}, {creator_name}, {target_name}, {duration}, {end_date}
  312. #
  313. 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\": ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――\" } ] }"
  314. }
  315. }
  316. #
  317. # Will be triggered: When a banned player tries to join, a muted player tries to chat.
  318. #
  319. by-pass-try {
  320. #
  321. # Permission to see this notification
  322. #
  323. permission = "punishcontrol.notify.punishment.bypass.try"
  324. #
  325. # Available placeholders:
  326. # {is_permanent}, {reason}, {creation}, {creator_name}, {target_name}, {duration}, {end_date}
  327. # {translated_message} - Example: (Player xy tried to chat whilst muted)
  328. # is pulled from the localization files and can also be configured.
  329. #
  330. 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}\"]}}]}"
  331. }
  332. }
  333. }
  334.  
  335. # -------------------------------------------------------------------------------------------
  336. # Advanced settings
  337. # In most cases it is absolutely unnecessary to touch them.
  338. #
  339. # -> Dont change them unless you really know what you are doing.
  340. # -------------------------------------------------------------------------------------------
  341. advanced {
  342. cache {
  343. duration-ms = 1800000
  344. enabled = true
  345. }
  346. #
  347. # Change how the date should be formatted in our menus & commands
  348. # For valid formats, please see: https://www.w3.org/QA/Tips/iso-date
  349. #
  350. date-format = "hh:mm MM/dd/yyyy"
  351. #
  352. # Only applies on Spigot. If a notification will be display in the menu
  353. # if BungeeCord is detected and PunishControl is used on Spigot.
  354. #
  355. encourage-bungee-cord-usage = true
  356. #
  357. # Will special commands be blocked when players are muted?
  358. # These special commands can be configuered in "punishments.mutes.blocked-commands"
  359. #
  360. listen-for-commands = true
  361. #
  362. # (BungeeCord only) Defines the latest protocol-version that our items should be compatible with
  363. # For a list of Protocol-Versions, please see: https://wiki.vg/Protocol_version_numbers
  364. # This changes how many items will be available to select in the material browsers, which
  365. # for example shows up, when you want to customize ur items
  366. #
  367. min-protocol-version-supported = 47
  368. #
  369. # Define how PunishControl searches for values (e.g: Names)
  370. #
  371. searcher {
  372. # Defines required similarity for strings to be similar.
  373. # Maximum: 1.0 Minimum: 0.0 (All strings will be concidered similar)
  374. min-similarity-needed = 0.85
  375. # Defines whether strings that start with the same sequence will be similar
  376. # Example: If you have the string "Ex" will be considered similar to "Example"
  377. use-starts-with = true
  378. }
  379.  
  380. #
  381. # Only applies on Spigot:
  382. # Defines whether the server is in online mode or not.
  383. # The UUID fetcher won't work in offline mode.
  384. # <Auto> - Automatically detect whether the server is in offline or online mode
  385. # <Offline> - Set the server to offline mode
  386. # <Online> - Set the server to online mode
  387. #
  388. # Important:
  389. # > If you set the server to online mode, whilst in offline mode you
  390. # > risk to invalidate the player database since the player-name -> player-uuid mapping
  391. # > will get invalidated.
  392. #
  393. server-mode = AUTO
  394. }
Advertisement
Add Comment
Please, Sign In to add comment