DiscordSRV Versions Save

Discord bridging plugin for block game https://modrinth.com/plugin/discordsrv

v1.27.0

4 months ago

Developers: the AccountLinkManager class was converted to an interface from a class. Plugins will need to be recompiled as Java will complain about the change when trying to access DiscordSRV's AccountLinkManager instance.

Additions

  • Switched to "append only" file for storing linked accounts
  • Folia support (Thanks, kugge)
  • nChat support (Thanks, nickuc)
  • Danish translation (Thanks, Tauses)
  • Ukrainian translation (Thanks, FenixInc330)

Fixes

  • Global display names not showing up in Discord -> Minecraft chat
  • Experiment_WebhookChatMessageDelivery not being processed by GameChatMessagePostProcessEvent (Thanks, Gabo6480)
  • Linked discord role config option not working with role IDs (Thanks, burturt)
  • Advancements with "announce-to-chat: false" showing up in chat
  • DiscordSRV picking up changes in events after DiscordSRV's listener is called
  • Linked accounts not always being saved at shutdown
  • Now parsing the discriminator as a string, not a number
  • Console stripping
  • Sanitizing ANSI codes from Discord messages
  • Ban sync overwriting ban messages
  • Backslashes are now escaped in Discord markdown to prevent bypassing
  • The ability to bypass colour code filtering when you don't have a role in DiscordChatChannelRolesAllowedToUseColorCodesInChat
  • Texture string extraction
  • Hidden advancements being shown on newer Minecraft versions
  • Click events not working in components via Adventure version upgrade
  • Whitespace in configs
  • All messages in the chat channel being processed as commands if DiscordChatChannelConsoleCommandPrefix was empty

Changes

  • Changed some words in the Polish translation (Thanks, Chubercik)
  • Updated Japanese config.yml translation (Thanks, Takeno-hito and siyukatu)
  • Bots are now blocked in the console channel by default
  • Make the JDBC port number optional (Thanks, PeyaPeyaPeyang)

Removals

  • JSON storage for linked accounts

Developers

  • Converted AccountLinkManager into an interface to alleviate confusing naming conflict with AbstractAccountLinkManager
  • Fixed not being able to use JDA with jar from the repository
  • Changed quit listener priority from LOWEST to LOW
  • Plugin integrations can now register global slash commands through DiscordSRV's API

v1.26.2

1 year ago

Fixes

  • Advancements for unlocking recipes causing an advancement message in Discord on 1.19.4
  • Advancements which aren't marked as sending to chat causing an advancement message in Discord on 1.19.4
  • System.out debug log message when using chat channel console executor
  • Encoding of config files (caused some languages files to be garbled)
  • Default player command response regex filter
  • Fix DiscordConsoleChannelLevels being broken with some locales
  • Fix using "link" channel causing "you must be linked" message

Changes

  • Bots are now ignored in the account linking channel

Developers

  • Depending on DiscordSRV no longer requires the s01.oss.sonatype.org repository

v1.26.1

1 year ago

Additions

  • Add the SuperVanish fake join/leave messages back after being removed accidentally (Thanks, thewilloftheshadow)
  • Allow voice network channels to be visible

Fixes

  • Paper crashing when DiscordSRV is incorrectly configured (due to the "Paper Plugins" update)
  • Concurrency issue with getting the total player count
  • Hide potential JDBC warning on startup
  • Attachment messages not having PlaceholderAPI placeholders replaced (Thanks, sudura)
  • Config migration when ConfigVersion is the default placeholder
  • ChannelUpdater only applying the shutdown format to text channels
  • Corrected softdepends
  • Only ackCheck slash commands if an API provider handled it

Changes

  • Slightly tweaked slash command logging (Thanks, LOOHP)

Removals

  • Plugin upload feature (due to numerous issues)
  • Voice activation permission setting (can be specified on the voice category's permissions instead)

Developers

  • Updated JDA to JDA 4.4.0_352.fix-3

v1.26.0

1 year ago

A special thank you to everyone who contributed to this update, names are featured below

Additions

  • Account linking via text channels (Thanks, Kamesuta)
  • DiscordChatChannelBlockWebhooks config option to allow forwarding webhook message into Minecraft (Thanks, ANutley)
  • Show stickers in minecraft chat the same way attachments are shown
  • Stats channels (Thanks, Dinty1)
  • Mention placeholder to link message (Thanks, Kamesuta)

Fixes

  • Webhook creation failing with USERNAME_INVALID_CONTAINS, usernames with Discord not having their messages forwarded to Discord
  • Don't log InterruptedIOExceptions during shutdown
  • Required link module "in any guild" check only checking the main guild (Thanks, ANutley)
  • Memory leak when the console channel isn't configured
  • Removed the hidden respect chat plugins option from the Chinese configuration (Thanks, BoredManPlays)
  • Error when a linked user joins a server different than the one that contains the Linked role
  • NPE in the help command when attempting to look up descriptions for commands that don't exist
  • ERROR IN Protocol1_19To1_18_2 IN REMAP OF CHAT_MESSAGE (0x0F) with ViaVersion
  • Concurrency issue in console appender
  • Linked command now prioritises Discord tag over player name

Changes

  • Bumped Adventure/MiniMessage versions (Thanks, Draycia)
  • The LunarClient legacifying feature has been removed as the underlying issue was fixed
  • Set a limit of 20 concurrent requests to the http client used for Discord connections
  • Debug reports include more information about threads and scheduler tasks
  • PlaceholderAPI support for CodeGenerated and DiscordCommandFormat

Developers

  • VanishHook is now deprecated please use the "vanished" metadata key instead
  • Expanded WebhookUtil functionality to allow easier integration of interactions (Thanks, LOOHP)
  • Slash Command API (Inspiration, BlueTree242. Improvements, LOOHP)
  • Added event for player list command (Thanks, LOOHP)
  • All game events now include the Bukkit event that triggered them (Thanks, LOOHP)

v1.25.1

2 years ago

Minor update with fixes for v1.25.0; be sure to read the v1.25.0 changelog if you haven't already because it was a large update

Additions

  • DiscordConsoleChannelUseCodeBlocks config option to disable the use of code blocks in the console

Fixes

  • Lag spike when running commands in the console channel
  • Fixed a number of issues with the new logging system
  • Website links from Discord not being clickable
  • Catch errors in DiscordConsoleChannelLevels input
  • Allow having a empty list of log levels in DiscordConsoleChannelLevels
  • Disabled the JDA shutdown hook
  • Stopped using startsWith to check if plugins are installed
  • Fix color formatting codes not always being stripped in log output

Changes

  • Remove client detection via plugin message channel registering, due to false positives
  • The intent disconnect message now also includes the server messages intent

v1.25.0

2 years ago

Additions

  • LunarClient users will now receive a notice (https://i.imgur.com/zuL1Q8r.png) telling them their user experience is being degraded and command responses sent to them will not have hover/click features at all. The notice can be disabled with the EnableIncompatibleClientAlert config option. Please see https://github.com/DiscordSRV/DiscordSRV/pull/1294 for more details
  • Fancy new console logging with logger name and color support
  • Hex support to the %discordsrv_user_top_role_color_code% placeholder
  • The online status of the bot is now configurable
  • %discordname% and %discordusername% placeholders to the Experiment_WebhookChatMessageUsernameFormat option
  • Console-specific timestamp format
  • The MinecraftMentionSound config option to disable hearing a sound when somebody "@mentions" your name from Discord
  • Documentation about ids to DiscordRoleNameToAddToUser
  • Unix timestamps placeholders for startup, shutdown, console messages and the topic updater
  • Config option to block bots in the console channel
  • %deathmessagenoescapes% placeholder
  • Blacklist option for DiscordChatChannelPrefixRequiredToProcessMessage

Fixes

  • DiscordLinkedAccountRequired message not sending when the original message is longer than can fit in the format
  • Compatibility with headless java installations
  • Comment on Channels option regarding reloadability
  • Users being able to use %toprolecolor% in their Discord messages and having it parsed in-game
  • Alerts not working whilst on a very old Minecraft version
  • Advancements throwing a error on servers with unexpected nms mappings/no nms at all
  • Error with some users with clyde in their username
  • DiscordChatChannelEmojiBehavior not working as intended
  • The CancellationDetector was rewritten to fix issues with some plugins when debugging

Changes

  • Replaced the default watchdog message with a clearer one
  • Advancement messages will not be sent if they were acquired in a world where the "announceAdvancements" gamerule is disabled
  • DiscordChatChannelGameFilters are now applied to message content when using Experiment_WebhookChatMessageDelivery
  • The Enable option under Webhook in the messages.yml MessageFormat options has been renamed to Enabled for consistency
  • Discord to Minecraft messages can now use placeholders that only need a offlineplayer when the user is linked
  • Updated Japanese translation for linking.yml
  • Regex filters are applied to webhook username & content now
  • Player unban check now runs asynchronously

Developers

  • Updated JDA 4.3.0_349. We do not currently intend to update to JDA5, however if we decide to do so we'll give plenty of notice so plugin developers will have time to prepare
  • Added VentureChatMessagePreProcessEvent and VentureChatMessagePostProcessEvent

v1.24.0

2 years ago

Additions

  • Support for role IDs and @everyone in role-related config options
  • Support for Discord replies (through a new placeholder in the DiscordToMinecraftChatMessageFormat)
  • A discordsrv:server_id LuckPerms context
  • Support for newlines (\n) in /discord broadcast
  • PlaceholderAPI placeholder support for playerlist command formats

Fixes

  • Default Polish translation being broken
  • Other inconsistencies in translated config files
  • Issues with some linking rewards
  • Usernames being escaped for avatar urls when using VentureChatBungee
  • VentureChatBungee avatars converting color codes
  • Nickname sync being executed on players when they join regardless of whether they have permission
  • RGB colors not working with most chat hooks
  • DiscordChatChannelAllowedMentions not being reloaded when /discord reload is used
  • Users' nicknames being removed on unlink even if nickname sync is disabled
  • Group synchronization looking up players that might not have associated player data
  • Blocked players from being able to hide urls in webhook messages

Changes

  • Non-authoritative groups/roles are now removed on unlink
  • Let alerts listen to DiscordSRV's own events
  • The console channel's log appender is not fully asynchronous
  • Split debug options into categories

Removals

  • Drop UltimateChat support (outdated plugin, caused build issues)

Developers

  • Updated JDA to 4.3.0_310
  • Added a DiscordConsoleCommandPreProcessEvent and DiscordConsoleCommandPostProcessEvent

v1.23.0

2 years ago

Additions

  • Multiline config migration
  • Add Estonian translations back
  • Added %online% to DiscordGameStatus
  • Show/hide/:name: options for emojis, :name:/hide for emotes
  • Added %displayname% and %username% to Experiment_WebhookChatMessageFormat
  • Added discord name & discriminator for nickname synchronization
  • Added permission (discordsrv.nicknamesync) for nickname synchronization (granted by default)
  • Polish translation
  • A new LuckPerms context: discordsrv:role_id

Fixes

  • Error with avatar url generation on 1.17
  • Error with ViaVersion (due to api changes)
  • Fix "global" case sensitivity issue with Discord -> MC chat
  • Fix watchdog messages not finding the proper channel
  • Markdown gets escaped on chat channel console command responses now
  • Spoilers, quotes & code blocks are escaped now
  • %online% in the game status including vanished players
  • Some messages relating to the plugin being disabled have been improved/fixed
  • Timed group synchronizations being forced to be Minecraft -> Discord
  • %primarygroup% %world% and %worldalias% placeholders not working in playerlist command
  • DiscordCommandFormat not being clickable/having the wrong link by default
  • Spanish messages.yml not including LinkingError
  • Players remaining on the server after being banned on Discord when ban synchronization is on
  • Fix VentureChat %channelcolor% placeholder being blank in ChatChannelHookMessageFormat
  • All mentions of the same type having the same subject rendered when using reserializer

Changes

  • The message stating Vault is missing won't be printed if group synchronization isn't configured anymore
  • Made the JDBC value invalid message not print with the default value
  • Reduced the amount of voice missing permission messages
  • Chat channel command responses now group responses sent within 3 ticks
  • LuckPerms context data will only be provided from caches now
  • Updated some bStats statistics
  • RGB colors are automatically downscaled on servers that aren't compatible with RGB clients when converting to legacy text
  • Added Essentials' /list command to the default console filter (due to Multicraft's crash detection spam)
  • Webhooks per channel reduced to just one because of Discord design decisions

Developers

  • Death and achievement events now include the Bukkit event that triggered the event to occur
  • Added DiscordGuildMessagePreBroadcastEvent

v1.22.0

3 years ago

Additions

  • RGB & JSON text
  • Added support for Paper's (modern) PaperChatEvent with config option UseModernPaperChatEvent
  • Role aliases
  • Fake join/leave functionality for SuperVanish
  • The webhook message format can be modified now
  • Date & time formats + timezone now customizable in config
  • Added %online% placeholder in DiscordGameStatus for people without PlaceholderAPI
  • Added ability to set Discord -> MC format per channel by adding "_channelname" suffix to DiscordToMinecraftChatMessageFormat
  • Allow setting "status" channel for server start/stop messages

Fixes

  • TownyChat channels not working when adding a new channel name and /discord reloading
  • Various fixes related to the voice module's automatic permission setting
  • Errors with advancements
  • Users not getting kicked for unlinking when require link module is enabled
  • UUID being included in account link messages twice
  • Nag for requesting linked account information with the LuckPermsHook
  • Textures not working for avatar urls on non-slim skins
  • Usernames with spaces have their avatar url encoded now
  • Linked accounts file backend now more fault tolerant
  • Fix not being able to properly specify Dynmap target channel

Changes

  • Removed Estonian translations because identical to English
  • Korean translation corrections
  • Server start and stop messages can now always mention roles and everyone or here
  • Bot token stripping from debug reports now covers newer tokens better
  • RespectChat has been removed from the default config and using it will result in a big error
  • /discord broadcast allows pinging everything again
  • The player quit listener is now at lowest priority, allowing VanishNoPacket vanish status to be used for deciding if the message will be hidden
  • Players are removed from groups instead of roles if synchronization is one way from Discord to Minecraft

v1.21.3

3 years ago

Fixes

  • bStats causing MySQL queries (when MySQL is enabled) on the main thread when collecting data
  • Avatar URLs being invalid because of PlaceholderAPI
  • Performance issues while using alerts
  • Fix rare issue with console channel messages going over character limit
  • Various other fixes

Changes

  • Blacklisted BlockPhysicsEvent for alerts (reduces alerts lag)
  • Voice module error messages for lacking permissions updated
  • Retrieve {texture} placeholder for avatar URLs from NMS instead of API

Developers

  • Add AccountLinkManager#getLinkedAccountCount