Advertisement
Magery183

r/igcse smp discordsrv config

Dec 12th, 2024
15
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.84 KB | None | 0 0
  1. # DiscordSRV Configuration
  2. # Need help? Join our Discord, https://discordsrv.com/discord
  3.  
  4. # Don't touch pls
  5. ConfigVersion: 1.28.0
  6.  
  7. # Bot token; don't know what this is? Look at the video on the plugin page for instructions
  8. # You must restart your server after changing this option
  9. BotToken: "ODcyODg0NDA4Nzg3NTQyMDU4.GCz2Ok.XNLcxf9INvWcnxP3mq2uQ6801mbiU4nJ8-iWG0"
  10.  
  11. # The proxy to be used for Discord
  12. # Leave this alone if you don't understand what it does
  13. ProxyHost: "https://example.com"
  14. ProxyPort: 1234
  15. ProxyUser: "USERNAME"
  16. ProxyPassword: "PASSWORD"
  17.  
  18. # Channel links from game to Discord
  19. # syntax is Channels: {"in-game channel name from Minecraft": "numerical channel ID from Discord", "another in-game channel name from Minecraft": "another numerical channel ID from Discord"}
  20. #
  21. # All of DiscordSRV's messages will go to the first channel unless there's a channel for that type of messages defined:
  22. # when using a compatible chat plugin, the channel name will be the one from that plugin (for chat messages)
  23. # - If you're using TownyChat, the default channel is usually called "general" instead of "global"
  24. # for player chat messages (when not using a chat plugin): global
  25. # for server start/stop messages: status
  26. # for achievement/advancement messages: awards
  27. # for death messages: deaths
  28. # for join messages: join
  29. # for leave messages: leave
  30. # for dynmap messages: dynmap
  31. # for watchdog messages: watchdog
  32. # for /discord broadcast: broadcasts (unless specified in the command)
  33. # for account linking: link
  34. #
  35. # The first part of channel pairs is not the Discord channel name!
  36. # Run "/discord reload" after changing this option to apply
  37. Channels: {"global": "1316334804253413387"}
  38.  
  39. # Console channel numerical ID (NOT NAME), leave blank to disable the console channel all together
  40. DiscordConsoleChannelId: "1316334229759721495"
  41.  
  42. # Invitation link shown to players when using /discord and on the message shown to unlinked players when linking is enforced
  43. DiscordInviteLink: "https://discord.gg/changethisintheconfig.yml"
  44.  
  45. # Debug information
  46. # Don't enable these unless you're attempting to locate an issue
  47. #
  48. # Available Debug categories:
  49. # MINECRAFT_TO_DISCORD - Messages coming from Minecraft
  50. # DISCORD_TO_MINECRAFT - Messages coming from Discord
  51. # GROUP_SYNC - Group synchronization
  52. # PRESENCE - The bot's game status or presence
  53. # VOICE - The voice module (see voice.yml)
  54. # REQUIRE_LINK - The require link to join module (see linking.yml)
  55. # NICKNAME_SYNC - Nickname synchronization
  56. # ALERTS - Alerts (see alerts.yml)
  57. # WATCHDOG - The watchdog
  58. # BAN_SYNCHRONIZATION - Ban synchronization
  59. # LP_CONTEXTS - LuckPerm's contexts
  60. # ACCOUNT_LINKING - discord/minecraft account linking
  61. #
  62. # UNCATEGORIZED - Anything not in any of the above categories
  63. # ALL - All the above categories (including UNCATEGORIZED)
  64. #
  65. # JDA - JDA's debug messages
  66. # JDA_REST_ACTIONS - For debugging JDA's rest actions
  67. # CALLSTACKS - Displays the stack trace for DiscordSRV debug calls
  68. #
  69. # Ex. "Debug: [GROUP_SYNC, PRESENCE]"
  70. #
  71. Debug: []
  72.  
  73. # Experiments
  74. # These features are not fully optimized; use at your own risk
  75.  
  76. # JDBC (MySQL/MariaDB)
  77. Experiment_JdbcAccountLinkBackend: "jdbc:mysql://HOST:PORT/DATABASE?autoReconnect=true&useSSL=false"
  78. Experiment_JdbcTablePrefix: "discordsrv"
  79. Experiment_JdbcUsername: "username"
  80. Experiment_JdbcPassword: "password"
  81.  
  82. # Webhook Delivery
  83. Experiment_WebhookChatMessageDelivery: true
  84. Experiment_WebhookChatMessageUsernameFormat: "%displayname%"
  85. Experiment_WebhookChatMessageFormat: "%message%"
  86. Experiment_WebhookChatMessageUsernameFromDiscord: true
  87. Experiment_WebhookChatMessageAvatarFromDiscord: true
  88. Experiment_WebhookChatMessageUsernameFilters: {}
  89.  
  90. # Embed & webhook image/avatar url format
  91. # Leave blank to use a default value
  92. # Available placeholders: {texture} {username} {uuid} {uuid-nodashes} {size}
  93. AvatarUrl: ""
  94.  
  95. # Reserializer
  96. # Converts formatting (bold, italics, underline, strikethrough) between Minecraft and Discord
  97. Experiment_MCDiscordReserializer_ToDiscord: false
  98. Experiment_MCDiscordReserializer_ToMinecraft: false
  99. Experiment_MCDiscordReserializer_InBroadcast: false
  100.  
  101. # Other
  102. CancelConsoleCommandIfLoggingFailed: true
  103. ForcedLanguage: none
  104. ForceTLSv12: true
  105. NoopHostnameVerifier: false
  106. MaximumAttemptsForSystemDNSBeforeUsingFallbackDNS: 3
  107. TimestampFormat: EEE, d. MMM yyyy HH:mm:ss z
  108. DateFormat: yyyy-MM-dd
  109. # https://docs.discordsrv.com/config/#Timezone
  110. Timezone: default
  111. # MinecraftMentionSound: Whether a sound should be sent to the player in Minecraft when they are mentioned from Discord
  112. MinecraftMentionSound: true
  113.  
  114. # Plugin hooks
  115. # You must restart your server after changing these options
  116. #
  117. # DisabledPluginHooks: plugin hooks that will not be used (usually just the name of the plugin).
  118. # VentureChatBungee: enables the VentureChat hook's BungeeCord functionality (messages are received from every server, requires atleast 1 player to be online)
  119. # EnablePresenceInformation: enabled presence information, which is required for some of our PlaceholderAPI placeholders. Keep in mind this requires the "Presence Intent" from the Discord developer portal
  120. # UseModernPaperChatEvent: only use this if you have a chat plugins that SPECIFICALLY utilizes Paper's "AsyncChatEvent"
  121. DisabledPluginHooks: []
  122. VentureChatBungee: false
  123. EnablePresenceInformation: false
  124. UseModernPaperChatEvent: false
  125.  
  126. # Game Information
  127. # Sets the user status for the bot
  128. # Can be a single, static value, or cycle through multiple different options
  129. # You can preface the status with "playing", "watching", "listening to", or "competing" to set the activity type
  130. # You can set your own custom status by not including the prefixes
  131. # %online%: number of online players
  132. # PlaceholderAPI placeholders are supported
  133. #
  134. # DiscordGameStatus: Text to display. Can be a single value e.g. "Minecraft", or multiple values e.g. ["Minecraft", "yourip.changeme.com"]
  135. # DiscordOnlineStatus: Activity status to display. This must be one of the following: ONLINE, DND, IDLE or INVISIBLE
  136. # StatusUpdateRateInMinutes: How frequently to cycle the status
  137. DiscordGameStatus: ["playing Minecraft"]
  138. DiscordOnlineStatus: ONLINE
  139. StatusUpdateRateInMinutes: 2
  140.  
  141. # Chat channel information
  142. # The chat channel is the text channel that all messages in-game will be sent to and all messages sent
  143. # to this channel on Discord will be sent in-game
  144. #
  145. # DiscordChatChannelDiscordToMinecraft: whether to send messages in the chat channel to the server chat
  146. # DiscordChatChannelMinecraftToDiscord: whether to send messages in the server chat to the chat channel
  147. # DiscordChatChannelTruncateLength: the maximum length of messages from Discord to be sent to Minecraft
  148. # DiscordChatChannelTranslateMentions: whether to translate mentions like @Person for Minecraft to Discord messages
  149. # DiscordChatChannelAllowedMentions: types of mentions allowed in Minecraft to Discord messages; types missing from the default value are "role", "here", & "everyone"
  150. # DiscordChatChannelEmojiBehavior: how emojis should be sent to Minecraft. Can be "show", "name" or "hide"
  151. # DiscordChatChannelEmoteBehavior: how emotes should be sent to Minecraft. Can be "name" or "hide"
  152. # DiscordChatChannelPrefixRequiredToProcessMessage: the character(s) required to prefix a message for it to be sent from Minecraft to Discord (example "!")
  153. # DiscordChatChannelPrefixActsAsBlacklist: Whether the prefix should act as a blacklist
  154. # DiscordChatChannelRolesAllowedToUseColorCodesInChat: list of roles allowed to use color/format codes in Discord to Minecraft chat
  155. # DiscordChatChannelBroadcastDiscordMessagesToConsole: whether to print processed discord messages to the console
  156. # DiscordChatChannelRequireLinkedAccount: whether to require players have their Discord account linked to their Minecraft to have their Discord messages sent to Minecraft
  157. # DiscordChatChannelBlockBots: whether bots should be blocked from Discord -> MC chat
  158. # DiscordChatChannelBlockWebhooks: whether webhooks should be blocked from Discord -> MC chat
  159. # DiscordChatChannelBlockedIds: ids of discord users (or bots) that should not have their messages processed & sent to MC
  160. # DiscordChatChannelBlockedRolesAsWhitelist: if the following list should be treated as a whitelist (true) or a blacklist (false)
  161. # DiscordChatChannelBlockedRolesIds: ids of discord roles that should not have their messages processed & sent to MC
  162. # DiscordChatChannelRolesSelectionAsWhitelist: if the following list should be treated as a whitelist (true) or a blacklist (false)
  163. # DiscordChatChannelRolesSelection: list of roles that should be filtered from all of a user's roles
  164. # DiscordChatChannelRoleAliases: list of role aliases (alternate names for roles to use in Minecraft messages)
  165. #
  166. DiscordChatChannelDiscordToMinecraft: true
  167. DiscordChatChannelMinecraftToDiscord: true
  168. DiscordChatChannelTruncateLength: 256
  169. DiscordChatChannelTranslateMentions: true
  170. DiscordChatChannelAllowedMentions: [user, channel, emote]
  171. DiscordChatChannelEmojiBehavior: "name"
  172. DiscordChatChannelEmoteBehavior: "name"
  173. DiscordChatChannelPrefixRequiredToProcessMessage: ""
  174. DiscordChatChannelPrefixActsAsBlacklist: false
  175. DiscordChatChannelRolesAllowedToUseColorCodesInChat: ["Developer", "Owner", "Admin", "Moderator"]
  176. DiscordChatChannelBroadcastDiscordMessagesToConsole: true
  177. DiscordChatChannelRequireLinkedAccount: false
  178. DiscordChatChannelBlockBots: false
  179. DiscordChatChannelBlockWebhooks: true
  180. DiscordChatChannelBlockedIds: ["000000000000000000", "000000000000000000", "000000000000000000"]
  181. DiscordChatChannelBlockedRolesAsWhitelist: false
  182. DiscordChatChannelBlockedRolesIds: ["000000000000000000", "000000000000000000", "000000000000000000"]
  183. DiscordChatChannelRolesSelectionAsWhitelist: false
  184. DiscordChatChannelRolesSelection: ["Don't show me!", "Misc role"]
  185. DiscordChatChannelRoleAliases: {"Developer": "Dev"}
  186.  
  187. # Console channel information
  188. # The console channel is the text channel that receives messages which are then run as server commands
  189. # by the console as well as having the server's console being streamed to line by line
  190. #
  191. # You can customize the message including removing timestamps in messages.yml
  192. #
  193. # DiscordConsoleChannelLogRefreshRateInSeconds: rate in seconds between sending lines from the console
  194. # DiscordConsoleChannelUsageLog:
  195. # %date%: current date
  196. # example: 2017-01-01
  197. # PlaceholderAPI placeholders are supported
  198. # DiscordConsoleChannelBlacklistActsAsWhitelist: whether the blacklisted commands list acts as a whitelist instead of blacklist
  199. # DiscordConsoleChannelBlacklistedCommands: phrases wrapped in quotation marks that users should not be able to send as commands to the console
  200. # DiscordConsoleChannelFilters: regex filters to be applied to console lines being sent to Discord, if the result is empty the message won't be sent at all
  201. # DiscordConsoleChannelLevels: levels to send to console channel via appender
  202. # DiscordConsoleChannelUseCodeBlocks: if the console should be wrapped in code blocks and colored
  203. # DiscordConsoleChannelBlockBots: whether bots should be allowed to send commands in the console channel
  204. #
  205. DiscordConsoleChannelLogRefreshRateInSeconds: 5
  206. DiscordConsoleChannelUsageLog: "Console-%date%.log"
  207. DiscordConsoleChannelBlacklistActsAsWhitelist: false
  208. DiscordConsoleChannelBlacklistedCommands: ["?", "op", "deop", "execute"]
  209. DiscordConsoleChannelFilters: {".*(?i)async chat thread.*": "", ".*There are \\d+ (?:of a max of|out of maximum) \\d+ players online.*": ""}
  210. DiscordConsoleChannelLevels: [info, warn, error]
  211. DiscordConsoleChannelUseCodeBlocks: true
  212. DiscordConsoleChannelBlockBots: true
  213.  
  214. # Chat channel command execute command
  215. # These options control the ability to say "!c kick Notch", or whatever the prefix is to run a command,
  216. # as the console, from a registered chat channel.
  217. #
  218. # DiscordChatChannelConsoleCommandEnabled: whether to allow console commands from a chat channel.
  219. # DiscordChatChannelConsoleCommandNotifyErrors: whether to send a user who tries to run a command without permission that they don't have permission
  220. # DiscordChatChannelConsoleCommandPrefix: prefix to use for console commands. e.g. "!c tps"
  221. # DiscordChatChannelConsoleCommandRolesAllowed: the user roles that are allowed to execute server commands from the chat channel
  222. # DiscordChatChannelConsoleCommandWhitelist: list of commands that are able to be ran with DiscordChatChannelConsoleCommandPrefix
  223. # DiscordChatChannelConsoleCommandWhitelistBypassRoles: list of roles that bypass the whitelist
  224. # DiscordChatChannelConsoleCommandWhitelistActsAsBlacklist: should the command whitelist act as a blacklist instead
  225. # DiscordChatChannelConsoleCommandExpiration: time in seconds until a sent command output is automatically removed by the bot. set to 0 to disable expiration.
  226. # DiscordChatChannelConsoleCommandExpirationDeleteRequest: whether to delete the message of the person that originally issued the command
  227. #
  228. DiscordChatChannelConsoleCommandEnabled: true
  229. DiscordChatChannelConsoleCommandNotifyErrors: true
  230. DiscordChatChannelConsoleCommandPrefix: "!c"
  231. DiscordChatChannelConsoleCommandRolesAllowed: ["Owner", "Developer"]
  232. DiscordChatChannelConsoleCommandWhitelist: ["say", "lag", "tps"]
  233. DiscordChatChannelConsoleCommandWhitelistBypassRoles: ["Owner", "Developer"]
  234. DiscordChatChannelConsoleCommandWhitelistActsAsBlacklist: false
  235. DiscordChatChannelConsoleCommandExpiration: 0
  236. DiscordChatChannelConsoleCommandExpirationDeleteRequest: true
  237.  
  238. # Chat channel player list command
  239. # All the config stuff for the player list command
  240. #
  241. # DiscordChatChannelListCommandEnabled: whether the command is enabled
  242. # DiscordChatChannelListCommandMessage: the command people can type to get the player list
  243. # DiscordChatChannelListCommandExpiration: time in seconds until a sent player list message is automatically removed by the bot. set to 0 to disable expiration.
  244. # DiscordChatChannelListCommandExpirationDeleteRequest: whether to delete the message of the person that originally requested for the player list
  245. #
  246. DiscordChatChannelListCommandEnabled: true
  247. DiscordChatChannelListCommandMessage: "playerlist"
  248. DiscordChatChannelListCommandExpiration: 10
  249. DiscordChatChannelListCommandExpirationDeleteRequest: true
  250.  
  251. # Chat channel blacklisted phrases & regex
  252. #
  253. # DiscordChatChannelGameFilters: regex filters to be applied to chat messages being sent to Discord, if the result is empty the message won't be sent at all
  254. # DiscordChatChannelDiscordFilters: regex filters to be applied to chat messages being sent to Minecraft, if the result is empty the message won't be sent at all
  255. #
  256. DiscordChatChannelGameFilters: {}
  257. DiscordChatChannelDiscordFilters: {".*Online players \\(.*": "", ".*\\*\\*No online players\\*\\*.*": ""}
  258.  
  259. # Channel topic updater settings
  260. #
  261. # ChannelTopicUpdaterChannelTopicsAtShutdownEnabled: whether the channel topics should be changed at server shutdown at all
  262. # ChannelTopicUpdaterRateInMinutes: amount of minutes between automatically updating the channel topics with fresh information
  263. #
  264. ChannelTopicUpdaterChannelTopicsAtShutdownEnabled: true
  265. ChannelTopicUpdaterRateInMinutes: 10
  266.  
  267. # Channel Updater
  268. # This feature changes the name of specified channels to comply with in-game placeholders
  269. # Options:
  270. # ChannelId: The ID of the channel to change (required)
  271. # Format: The format for the channel (required). Available placeholders:
  272. # %playercount%: current player count
  273. # %playermax%: maximum player count
  274. # %date%: current date and time
  275. # %totalplayers%: total number of players to ever join the main world
  276. # %uptimemins%: number of minutes since DiscordSRV has started
  277. # %uptimehours%: number of hours since DiscordSRV has started
  278. # %motd%: motd of the server
  279. # %serverversion%: server version such as Spigot-1.9
  280. # %freememory%: free memory of the JVM in MB
  281. # %usedmemory%: used memory of the JVM in MB
  282. # %totalmemory%: total memory of the JVM in MB
  283. # %maxmemory%: max memory of the JVM in MB
  284. # %freememorygb%: free memory of the JVM in GB
  285. # %usedmemorygb%: used memory of the JVM in GB
  286. # %totalmemorygb%: total memory of the JVM in GB
  287. # %maxmemorygb%: max memory of the JVM in GB
  288. # %tps%: average TPS of the server
  289. # PlaceholderAPI placeholders are also supported
  290. # ShutdownFormat: The format the channel should take when the server has shut down. Available placeholders:
  291. # %time% or %date%: current date and time
  292. # %serverversion%: server version
  293. # %totalplayers%: total number of players to ever join the main world
  294. # %timestamp%: current unix timestamp
  295. # UpdateInterval: Time in minutes to wait between updating the channel's name (minimum is 10 due to rate limits)
  296. ChannelUpdater:
  297. - ChannelId: "0000000000000000"
  298. Format: "%playercount% players online"
  299. ShutdownFormat: "Server is offline"
  300. UpdateInterval: 10
  301. - ChannelId: "0000000000000000"
  302. Format: "Current TPS: %tps%"
  303. ShutdownFormat: "Server is offline"
  304. UpdateInterval: 10
  305.  
  306. # Discord canned responses
  307. # These are triggers (commands in a way) that will trigger a "canned response" to be sent as a reply to them
  308. # You should probably change these from their defaults or add your own
  309. #
  310. # Syntax is {"TRIGGER": "RESPONSE", "TRIGGER": "RESPONSE", ...}
  311. # If you do not want any canned responses, set this to just {}
  312. # PlaceholderAPI placeholders are supported for the values
  313. #
  314. DiscordCannedResponses: {"!ip": "yourserveripchange.me", "!site": "http://yoursiteurl.net"}
  315.  
  316. # Minecraft to Discord account linking
  317. # These are the options pertaining to how linking a Minecraft account to a Discord account functions
  318. #
  319. # MinecraftDiscordAccountLinkedConsoleCommands: commands to run when an account is linked, see below for possible placeholders
  320. # MinecraftDiscordAccountUnlinkedConsoleCommands: commands to run when an account is unlinked, see below for possible placeholders
  321. # %minecraftplayername%: player's Minecraft username
  322. # example: Notch
  323. # %minecraftuuid%: player's uuid
  324. # example: you know what a uuid looks like
  325. # %discordid%: linked discord account's id
  326. # example: 12345678901234567890
  327. # %discordname%: linked discord account's username
  328. # example: Notch
  329. #
  330. # MinecraftDiscordAccountLinkedRoleNameToAddUserTo: the name or id of a discord role to add a discord user to when they link their account
  331. # MinecraftDiscordAccountLinkedAllowRelinkBySendingANewCode: allows sending a new code to the bot to unlink and relink with the new code
  332. # MinecraftDiscordAccountLinkedUsePM: link accounts using PMs
  333. # MinecraftDiscordAccountLinkedMessageDeleteSeconds: Time (in seconds) before deleting the message when linked in a text channel. Set to 0 if you do not want to delete the message.
  334. #
  335. MinecraftDiscordAccountLinkedConsoleCommands: ["", "", ""]
  336. MinecraftDiscordAccountUnlinkedConsoleCommands: ["", "", ""]
  337. MinecraftDiscordAccountLinkedRoleNameToAddUserTo: "Linked"
  338. MinecraftDiscordAccountLinkedAllowRelinkBySendingANewCode: false
  339. MinecraftDiscordAccountLinkedUsePM: true
  340. MinecraftDiscordAccountLinkedMessageDeleteSeconds: 0
  341.  
  342. # Server watchdog
  343. #
  344. # The watchdog constantly monitors the last time your server performed a game tick
  345. # If the time since the last tick goes above the set interval in seconds, Discord messages can be triggered
  346. #
  347. # ServerWatchdogEnabled: whether the watchdog is enabled at all
  348. # ServerWatchdogTimeout: time in seconds that need to elapse before the watchdog takes action (Spigot's crash detection uses 60 for this)
  349. # the minimum for this value is 10
  350. # ServerWatchdogMessageCount: the amount of times ServerWatchdogMessage is sent. useful if you *really* want to make sure you know something's up
  351. #
  352. ServerWatchdogEnabled: true
  353. ServerWatchdogTimeout: 30
  354. ServerWatchdogMessageCount: 3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement