DiscordSRV

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

GPL-3.0 License

Stars
947
Committers
119

Bot releases are hidden (Show)

DiscordSRV - Build 1.27.0 Latest Release

Published by Scarsz 10 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
DiscordSRV - Build 1.26.2

Published by Scarsz over 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
DiscordSRV - Build 1.26.1

Published by Scarsz over 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
DiscordSRV - Build 1.26.0

Published by Scarsz about 2 years 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)
DiscordSRV - Build 1.25.1

Published by Scarsz over 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
DiscordSRV - Build 1.17.1

Published by Scarsz over 5 years ago

There was an issue with 1.17.0 that when performing a debug report, the JDBC username and password config options weren't redacted. This is more/less the only change between 1.17.1 and 1.17.0. The options were added in last-minute and it skipped my mind to make them censored in the debug reports, my bad. People who have made debug reports with those options configured are fine, no need to change users/passwords. The Bin server that the debug reports use stores all of it's information encrypted with a key that the server itself doesn't even know. Be aware that if you've sent a debug link to anyone on 1.17.0, they might've seen the credentials.

1.17.0 changelog:

Additions

  • MySQL support for linked accounts!!!1!1!! Look for it in the config under Experiment_JdbcAccountLinkBackend
  • MCDiscordReserializer experiment, converts text between Minecraft (&l, &o, &n, &m) and Discord (**, *, __, ~~) formatting
  • Webhook avatars can now be 3d renders instead of 2d, toggleable with WebhookAvatarsAre3d

Changes

  • Fall back to first channel in the case of only one when no chat hooks enabled because people don't know how to configure the channels correctly
  • Heads for webhook messages now use Crafatar instead of Minotar

Fixes

  • /discord reload now reloads channels & colors
  • Group synchronization now skips the owner of the guild
  • Issue with people not having a role not having their chat sent to Minecraft
  • Issue with console DoNotSendPhrases
  • Issue with DiscordChatChannelCutPhrases not cutting properly
  • McMMO plugin hook enabling when it shouldn't
  • Rare issue with mismatched okio classes
  • Rare issue with JDA not properly recognizing newer channel types
  • Rare issue with JDA not properly shutting down, stalling server for up to 30 seconds at shutdown
  • Rare issue with some JVMs not supporting 256-bit AES, use /discord debug 128 in that case
  • Text is stripped in more logical places
DiscordSRV - Build 1.17.0

Published by Scarsz over 5 years ago

It's a big one.

Additions

  • MySQL support for linked accounts!!!1!1!! Look for it in the config under Experiment_JdbcAccountLinkBackend
  • MCDiscordReserializer experiment, converts text between Minecraft (&l, &o, &n, &m) and Discord (**, *, __, ~~) formatting
  • Webhook avatars can now be 3d renders instead of 2d, toggleable with WebhookAvatarsAre3d

Changes

  • Fall back to first channel in the case of only one when no chat hooks enabled because people don't know how to configure the channels correctly
  • Heads for webhook messages now use Crafatar instead of Minotar

Fixes

  • /discord reload now reloads channels & colors
  • Group synchronization now skips the owner of the guild
  • Issue with people not having a role not having their chat sent to Minecraft
  • Issue with console DoNotSendPhrases
  • Issue with DiscordChatChannelCutPhrases not cutting properly
  • McMMO plugin hook enabling when it shouldn't
  • Rare issue with mismatched okio classes
  • Rare issue with JDA not properly recognizing newer channel types
  • Rare issue with JDA not properly shutting down, stalling server for up to 30 seconds at shutdown
  • Rare issue with some JVMs not supporting 256-bit AES, use /discord debug 128 in that case
  • Text is stripped in more logical places

Warning!

JDBC Credentials are exposed in debug reports in this version, use a newer version

DiscordSRV - Build 1.16.9

Published by Scarsz over 5 years ago

Fixes

  • Better null checks for files before debug report upload
  • Fix NPE with console channel not being defined
  • Server shutdown routine now has a 30 second timeout to prevent stalling
  • SingleCommandSender sleep now happens async because it wasn't already for some reason
DiscordSRV - Build 1.16.8

Published by Scarsz over 5 years ago

Additions

  • Full 1.14 support
  • Added disable for PebbleHost partner message (note: I make literally no money off of the code- they're just a really good host)
  • Debug reports are now fully end-to-end AES256 encrypted
  • DiscordChatChannelRolesSelection to filter which roles should/shouldn't appear in Discord -> MC message prefixes
  • %toproleinitial% placeholder for Discord -> MC messages

Fixes

  • Made DiscordChatChannelCutPhrases and DiscordConsoleChannelDoNotSendPhrases case insensitive
  • JDA version is now at v3 LTS
  • Not storing JDA entities anymore so things won't break when Discord does cache clears
  • Prevent crafty messages getting past DiscordChatChannelCutPhrases
  • UltimateChatHook no longer uses fuzzy plugin checking because of conflicting plugins
  • Vanilla chat listener uses the global channel instead of the first defined
DiscordSRV - Build 1.16.7

Published by Scarsz over 5 years ago

Final ^8 build of v1. This legitimately might be the last one. Might.

We're now partnered with PebbleHost! Plans starting from $1/GB. Use code DISCORDSRV at checkout for 15% off your first three bills.

Additions

  • Estonian translation

Fixes

  • DiscordChatChannelTranslateMentions inserts a zero-width space before @'s to hopefully prevent pinging 100% of the time
  • Discord names are now stripped of formatting characters when being sent to MC
  • Fixed a small logic issue with DiscordChatChannelBlockedPhrases
  • Trim BotToken
  • Various grammar errors for multiple translations

Removals

  • Nashorn debugging
  • Reflections library
DiscordSRV - Build 1.16.6

Published by Scarsz almost 6 years ago

final^7 build of DiscordSRV v1, you know the drill by now

Fixes

  • I goofed with the update check logic, oopsies
  • additional NPE check for VentureChat users
DiscordSRV - Build 1.16.5

Published by Scarsz almost 6 years ago

Aka "the final^6 build of DiscordSRV v1." Minor changes since 1.16.4. Progress for v2 of DiscordSRV is starting to pick up. Join the Discord at https://scarsz.me/discord if you have any questions.

Additions

  • FancyChat support
  • Russian translation

Fixes

  • AsyncPlayerChatEvent isn't always async. Thanks to the genius that thought of that one.
  • DiscordConsoleChannelDoNotSendPhrases & whitelist mode was slightly broken
  • Plugin enable checks for mcMMO
  • Tidied up README.md
  • UltimateChat support
DiscordSRV - Build 1.16.4

Published by Scarsz about 6 years ago

aka "the final final final final final build" of DiscordSRV v1. No, seriously, this should be the last version of DiscordSRV1. Development focus is going to be put completely towards DiscordSRV2, "yet another rewrite™" of DiscordSRV. I think we're on rewrite four now? When will it end? Nobody knows.

Additions

  • API version 1.13 compatible "officially"
  • Spanish translation - ¡Hurra! (thanks ZxFrankxZ)
  • MinecraftDiscordAccountLinkedRoleNameToAddUserTo now removes the role from the user when they unlink their account instead of just aimlessly keeping it there. Who would've thought it would take this long to do that.
  • PlaceholderAPI support for DiscordChatChannelListCommandPlayerFormat
  • PrintGuildsAndChannels for you weirdos who complain about a plugin printing too much stuff when the server starts
  • Warning when /discord is claimed by another plugin
  • %worldalias% placeholder is now available on achievement messages

Fixes

  • Link code generation is a whole lot less willy nilly now
  • Empty death messages are for sure ignored now
  • MultiVerse hook uses the proper method now, causes failures when MV isn't installed 100% less
DiscordSRV - v1.16.3

Published by Scarsz over 6 years ago

Fixes

  • StaticLogger error that some people had
DiscordSRV - v1.16.2

Published by Scarsz over 6 years ago

Additions

  • Server language metric

Fixes

  • Group synchronization taking multiple passes when roles needed to be added and removed
  • Issue with webhook experiment not properly finding existing webhooks after previous change (thanks @LemmoTresto)
  • Millionth pass of trying to clean up JDA messages
  • Tidying up redundant stream calls

Removals

  • Commands processed metric (extremely inaccurate)
DiscordSRV - v1.16.1

Published by Scarsz over 6 years ago

Additions

  • Add config option to disable translation of @mentions for MC -> Discord
  • Dutch translation
  • Notify users when their messages get truncated due to length (reacting with "💬❗")
  • playerlist command is now more configurable and customizable for each player in the list, showing things like groups & world

Changes

  • Debug reports go to https://debug.scarsz.me instead of https://gist.github.com now because GitHub disabled anonymous Gist creation
  • Update JDA back to latest version
  • Set default truncation length to 256 to match Minecraft's limit

Fixes

  • Don't cancel message being sent for Discord -> MC when text is blank but attachments exist
  • Exception thrown on first shutdown when bot token was invalid
  • Prevent people from generating multiple link codes then redeeming them all at once to exploit link rewards
  • Security issue with PlaceholderAPI integration
  • Strip console channel messages in a logically better spot
  • VentureChat issue with conversations being sent
  • Webhook names better conform with name length limits
DiscordSRV - v1.16.0

Published by Scarsz almost 7 years ago

Final update for major version one of DiscordSRV; Bungeecord/Forge/Sponge developers wanted to help with major version 2.

Additions

  • Korean message translations
  • MC -> Discord @mentioning is as close to perfection as possible

Fixes

  • Processed message now correctly obtained from DiscordGuildMessagePostProcessEvent
  • DiscordSRV no longer attempts to PM other bots
  • Channel topic updater no longer dies from blank MOTDs
  • Colors are stripped for MC -> Discord messages in check for DiscordChatChannelPrefix
  • /discord linked can now be ran by console
  • Calls for Experiment_WebhookChatMessageDelivery are now asynchronous and don't add delay to chat
  • Updated UltimateChat API usage