[BUG] Whitelisting not possible with a name
maradotwebp opened this issue · 1 comments
What happened?
- Whitelisting with the Discord Integration is only possible by DMing the bot with the Minecraft UUID (
/whitelist dfcb...
), but according to the config file / documentation should also be possible with the Minecraft Username (/whitelist Notch
).
What should happen?
- Players should be able to whitelist themselves with their names too.
Steps to reproduce
- Add Discord Integration mod to the server following the github wiki documentation.
- Enable the
whiteListMode
option in the config
Version
- 1.12
- 1.16
Platform
- Forge
- Spigot
Mod version: 2.0.10
Config file
# General options for the bot
[general]
# Insert your Bot Token here!
# DO NOT SHARE IT WITH ANYONE!
botToken = ""
# The channel ID where the bot will be working in
botChannel = "807342128027402283"
# The bot's status message
#
# PLACEHOLDERS:
# %online% - Online Players
# %max% - Maximum Player Amount
botStatusName = "%online% players online"
# Type of the bot's status
# Allowed Values: DISABLED,PLAYING,WATCHING,LISTENING
botStatusType = "PLAYING"
# Enable checking for updates?
# Notification will be shown after every server start in log when update is available
enableUpdateChecker = false
# The minimum release type for the update checker to notify
# Allowed values: release, beta, alpha
updateCheckerMinimumReleaseType = "beta"
# Configuration options for commands
[commands]
# The Role IDs of your Admin Roles
# Now supports multiple roles which can access admin commands
adminRoleIDs = [ "807344582807257138" ]
# The prefix of the commands usable in discord
prefix = "/"
# Set to true to require an space after the prefix (e.g. 'mc help')
spaceAfterPrefix = false
# Add your Custom commands to this JSON
# You can copy-paste it to https://jsoneditoronline.org Make sure when pasting here, that the json is NOT mulitlined.
# You can click on "Compact JSON Data" on the website
# NOTE: The JSON string must be escaped. You can use this website to escape or unescape: https://www.freeformatter.com/java-dotnet-escape.html
#
# mcCommand - The command to execute on the server. use %args% to place the arguments inside of the command
# adminOnly - True: Only allows users with the Admin role to use this command. False: @everyone can use the command
# description - Description shown in /help
# aliases - Aliases for the command in a string array
# useArgs - Shows argument text after the command in the help command
# argText - Defines custom arg text. Default is <args>
# channelIDs - Allows you to set specific text channels outside of the server channel to use this command (make it an string array), Set to ["00"] to allow from all channels
customCommandJSON = "{\"kick\":{\"adminOnly\":true,\"mcCommand\":\"kick\",\"description\":\"Kicks a player from the server\",\"useArgs\":true,\"argText\":\"<player> [reason]\"},\"stop\":{\"adminOnly\":true,\"mcCommand\":\"stop\",\"description\":\"Stops the server\",\"aliases\":[\"shutdown\"],\"useArgs\":false},\"kill\":{\"adminOnly\":true,\"mcCommand\":\"kill\",\"description\":\"Kills a player\",\"useArgs\":true,\"argText\":\"<player>\"}}"
# You must op this UUID in the ops.txt or some custom commands won't work!
senderUUID = "8d8982a5-8cf9-4604-8feb-3dd5ee1f83a3"
# Enable help command?
# Disabling also removes response when you entered an invalid command
# Requires server restart
helpCmdEnabled = true
# Enable the list command in discord
# Requires server restart
listCmdEnabled = true
# Enable the uptime command in discord
# Requires server restart
uptimeCmdEnabled = true
# Set to false to completely disable the "Unknown Command" message
showUnknownCommandMessage = true
# Set to true to enable the "Unknown Command" message in all channels
showUnknownCommandEverywhere = false
# Toggle some message related features
[messages]
# Enable formatting conversion (Markdown <==> Minecraft)
convertCodes = true
# Send formatting codes from mc chat to discord
# Has no effect when markdown <==> Minecraft is enabled
formattingCodesToDiscord = false
# Should /say output be sent to discord?
sendOnSayCommand = true
# Should /me output be sent to discord?
sendOnMeCommand = true
# When an /say command's message starts with this prefix, it will not be sent to discord
sayCommandIgnoredPrefix = "§4§6§k§r"
# Should tamed entity death be visible in discord?
sendDeathMessagesForTamedAnimals = false
# Advanced options
[advanced]
# Custom channel ID for server specific messages (like Join/leave)
# Leave 'default' to use default channel
serverChannelID = "default"
# Custom channel ID for death messages
# Leave 'default' to use default channel
deathsChannelID = "default"
# Custom channel for for ingame messages
# Leave 'default' to use default channel
chatOutputChannelID = "default"
# Custom channel where messages get sent to minecraft
# Leave 'default' to use default channel
chatInputChannelID = "default"
# Custom Channel ID list for the help command. Set to 00 to allow usage from everywhere and to 0 to allow usage from the bots default channel
helpCmdChannelIDs = [ "0" ]
# Custom Channel ID list for the list command. Set to 00 to allow usage from everywhere and to 0 to allow usage from the bots default channel
listCmdChannelIDs = [ "0" ]
# Custom Channel ID list for the uptime command. Set to 00 to allow usage from everywhere and to 0 to allow usage from the bots default channel
uptimeCmdChannelIDs = [ "0" ]
# Config options which only have an effect when using forge
[forgeSpecific]
# A list of blacklisted modids
# Adding one will prevent the mod to send messages to discord using forges IMC system
IMC_modIdBlacklist = [ "examplemod" ]
# Show item information, which is visible on hover ingame, as embed in discord?
sendItemInfo = true
# Configuration for linking
[linking]
# Should discord linking be enabled?
# If whitelist is on, this can NOT be disabled
# DOES NOT WORK IN OFFLINE MODE!
enableLinking = true
# Role ID of an role an player should get when he links his discord account
# Leave as 0 to disable
linkedRoleID = "807357484032589864"
# Enable discord based whitelist?
# This will override the link config!
# To whitelist use !whitelist <uuid> in the bot DMs
whitelistMode = true
# Adding Role IDs here will require the players to have at least ONE of these roles to link account
requiredRoles = [ ]
# Allows you to configure the default values of some personal settings
[linking.personalSettingsDefaults]
default_useDiscordNameInChannel = true
default_ignoreReactions = false
default_pingSound = true
# Webhook configuration
[webhook]
# Whether or not the bot should use a webhook (it will create one)
enable = true
# The avatar to be used for server messages
serverAvatarURL = "https://i.imgur.com/zXI7ovC.png"
# The name to be used for server messages
serverName = "Panem"
# The URL where the player avatar gets fetched from
#
# PLACEHOLDERS:
# %uuid% - Returns the player's UUID with dashes
# %uuid_dashless% - Returns the player's UUID without dashes
# %name% - Returns the player's name
# %randomUUID% - Returns an random UUID which can be used to prevent discord cache
playerAvatarURL = "https://minotar.net/avatar/%uuid%?randomuuid=%randomUUID%"
# Allows you to modify and translate most of the messages this bot will send
[localization]
# This is what will be displayed ingame when someone types into the bot's channel
# PLACEHOLDERS:
# %user% - The username
# %id% - The user ID
# %msg% - The Message
ingame_discordMessage = "§7[§5D§7]§r <%user%> %msg%"
# Message shown when hovering over the username of an discord message
# PLACEHOLDERS:
# %user% - The username/nickname (Someone123)
# %user% - The username with tag (someone#0001)
# %id% - The user ID
#
# NOTE: using an @ here can cause ping sounds ingame
discordMessageHover = "§3Sent by Discord user %user#tag%\n§aClick to mention"
# This message will edited in / sent when the server finished starting
serverStarted = ":white_check_mark: Server started successfully!"
# Message to show while the server is starting
# This will be edited to SERVER_STARTED_MSG when webhook is false
serverStarting = ":chart_with_upwards_trend: Server is loading..."
# This message will be sent when the server was stopped
serverStopped = ":chart_with_downwards_trend: Server stopped!"
# The message to print to discord when it was possible to detect a server crash
serverCrash = ":tired_face: :thumbsdown: OOPSIE WOOPSIE!! Uwu We made a fucky wucky!! A wittle fucko boingo! The code monkeys at our headquarters are working VEWY HAWD to fix this!"
# Gets sent when an player joins
#
# PLACEHOLDERS:
# %player% - The player's name
playerJoin = "%player% joined."
# Gets sent when an player leaves
#
# PLACEHOLDERS:
# %player% - The player's name
playerLeave = "%player% gave up and left."
# Gets sent when an player dies
#
# PLACEHOLDERS:
# %player% - The player's name
# %msg% - The death message
playerDeath = "%player% %msg%"
# Message sent instead of playerLeave, when the player times out
#
# PLACEHOLDERS:
# %player% - The player's name
playerTimeout = "%player% lost connection."
# Gets sent when an player finishes an advancement
# Supports MulitLined messages using \n
#
# PLACEHOLDERS:
# %player% - The player's name
# %name% - The advancement name
# %desc% - The advancement description
advancementMessage = "%player% just got the advancement **%name%**"
# The chat message in discord, sent from an player in-game
#
# PLACEHOLDERS:
# %player% - The player's name
# %msg% - The chat message
discordChatMessage = "%player%: %msg%"
# Sent to a player when someone reacts to his messages
# PLACEHOLDERS:
# %name% - (Nick-)Name of the user who reacted (format: 'SomeNickName')
# %name2% - Name of the user who reacted with discord discriminator (format: 'SomeName#0123')
# %msg% - Content of the message which got the reaction
# %emote% - The reacted emote
reactionMessage = "§7[§5D§7]§r§7 %name% reacted to \"§9%msg%§7\" with %emote%"
# Strings about the discord commands
[localization.commands]
ingameOnly = "This command can only be executed ingame"
# Shown when successfully reloading the config file
configReloaded = "Config reloaded!"
# Shown when an subcommand is disabled
subcommandDisabled = "This subcommand is disabled!"
# Message sent when user does not have permission to run a command
noPermission = "You don't have permission to execute this command!"
# Message sent when an invalid command was typed
#
# PLACEHOLDERS:
# %prefix% - Command prefix
unknownCommand = "Unknown command, try `%prefix%help` for a list of commands"
# Message if a player provides less arguments than required
notEnoughArguments = "Not enough arguments"
# Message if a player provides too many arguments
tooManyArguments = "Too many arguments"
# Message if a player can not be found
#
# PLACEHOLDERS:
# %player% - The player's name
playerNotFound = "Can't find player \"%player%\""
# The message for 'list' when no player is online
cmdList_empty = "There are no players online..."
# The header for 'list' when one player is online
cmdList_one = "There is 1 player online:"
# The header for 'list'
# PLACEHOLDERS:
# %amount% - The amount of players online
cmdList_header = "There are %amount% players online:"
# Header of the help command
cmdHelp_header = "Your available commands in this channel:"
# Message sent when ignoring Discord messages
commandIgnore_ignore = "You are now ignoring Discord messages!"
# Message sent when unignoring Discord messages
commandIgnore_unignore = "You are no longer ignoring Discord messages!"
# Message sent when using the uptime command
#
# PLACEHOLDERS:
# %uptime% - Uptime in uptime format, see uptimeFormat
cmdUptime_message = "The server has been running for %uptime%"
# The format of the uptime command
# For more help with the formatting visit https://commons.apache.org/proper/commons-lang/apidocs/org/apache/commons/lang3/time/DurationFormatUtils.html
uptimeFormat = "dd 'days' HH 'hours' mm 'minutes'"
# Command descriptions
[localization.commands.descriptions]
settings = "Allows you to edit your personal settings"
uptime = "Displays the server uptime"
help = "Displays a list of all commands"
list = "Lists all players currently online"
link = "Links your Discord account with your Minecraft account"
whitelist = "Whitelists you on the server by linking with Discord"
# Strings about the account linking feature
[localization.linking]
# Sent to the user when he linked his discord successfully
# PLACEHOLDERS:
# %player% - The in-game player name
# %prefix% - Command prefix
linkSuccessful = "Your account is now linked.\nUse /settings here to view and set some user-specific settings"
# Sent to the user when linking fails
linkFailed = "Account link failed"
# Sent when an already linked user attempts to link an account
# PLACEHOLDERS:
# %player% - The in-game player name
alreadyLinked = "Your account is already linked with %player%"
# Sent when attempting to use personal commands while not linked
# PLACEHOLDERS:
# %method% - The currently enabled method for linking
notLinked = "Your account is not linked! Link it first using %method%"
# Message of the link method in whitelist mode
# Used by %method% placeholder
linkMethodWhitelist = "`%prefix%whitelist <name-or-uuid>` here"
# Message of the link method in normal mode
# Used by %method% placeholder
linkMethodIngame = "`/discord link` ingame"
# Sent when attempting to whitelist-link with an non uuid string
# PLACEHOLDERS:
# %arg% - The provided argument
# %prefix% - Command prefix
link_argumentNotUUID = "Argument \"%arg%\" is not an valid UUID or Name. Use `%prefix%whitelist <name-or-uuid>`"
# Sent when attempting to link with an unknown number
invalidLinkNumber = "Invalid link number! Use `/discord link` ingame to get your link number"
# Sent when attempting to link with an invalid number
linkNumberNAN = "This is not a number. Use `/discord link` ingame to get your link number"
# Message shown to players who are not whitelisted using discord
# No effect if discord whitelist is off
notWhitelisted = "§cYou are not whitelisted yet.\nJoin the discord server for more information.\nhttps://discord.gg/sqxT6aHsSE"
# Sent when trying to link without an required role
link_requiredRole = "You need to have an role to use this"
# Sent when trying to link as an non-member
link_notMember = "You are not a member of the Discord Server this bot is operating in!"
# Sent to the user when he linked his discord successfully
# PLACEHOLDERS:
# %name% - The linked discord name
# %name#tag% - The linked discord name with tag
linkSuccessfulIngame = "Your account is now linked with %name#tag%"
# Message shown to players who want to link their discord account ingame
#
# PLACEHOLDERS:
# %num% - The link number
# %prefix% - Command prefix
linkMsgIngame = "Send this command as a direct message to the bot to link your account: %prefix%link %num%\nThis number will expire after 10 minutes"
# Shown when hovering over the link message
hoverMsg_copyClipboard = "Click to copy command to clipboard"
# Strings about the personal settings feature
[localization.personalSettings]
# Message for getting an setting's value
personalSettingGet = "This settings value is `%bool%`"
# Sent when user sucessfully updates an prersonal setting
settingUpdateSuccessful = "Successfully updated setting!"
# Header of the personal settings list
personalSettingsHeader = "Personal Settings list:"
# Error message when providing an invalid personal setting name
invalidPersonalSettingKey = "`%key%` is not an valid setting!"
# PLACEHOLDERS:
# %prefix% - Returns the current command prefix
settingsCommandUsage = "Usages:\n\n%prefix%settings - lists all available keys\n%prefix%settings get <key> - Gets the current settings value\n%prefix%settings set <key> <value> - Sets an Settings value"
# Sent when setting an personal setting fails
settingUpdateFailed = "Failed to set value :/"
# Descriptions of the settings
[localization.personalSettings.descriptons]
ignoreDiscordChatIngame = "Configure if you want to ignore discord chat ingame"
useDiscordNameInChannel = "Should the bot send messages using your discord name and avatar instead of your in-game name and skin?"
ignoreReactions = "Configure if you want to ignore discord reactions ingame"
pingSound = "Toggle the ingame ping sound"
# Configuration for the in-game command '/discord'
[ingameCommand]
# Enable the /discord command to show an custom message with invite URL?
enabled = true
# The message displayed when typing /discord in the server chat
message = "Join our discord! https://discord.gg/sqxT6aHsSE"
# The message shown when hovering the /discord command message
hoverMessage = "Click to open the invite url"
# The url to open when clicking the /discord command text
inviteURL = "https://discord.gg/sqxT6aHsSE"
# The command log channel is an channel where every command execution gets logged
[commandLog]
# Channel ID for the command log channel
# Leave 0 to disable
channelID = "0"
# The format of the log messages
#
# PLACEHOLDERS:
# %sender% - The name of the Command Source
# %cmd% - executed command (e.g. "say Hello World"
# %cmd-no-args% - Command without arguments (e.g. "say"
message = "%sender% executed command `%cmd%`"
# A list of commands that should NOT be logged
ignoredCommands = [ "list", "help", "?" ]
# Configure votifier integration here
# (Spigot only)
[votifier]
# Should votifier messages be sent to discord?
enabled = false
# Custom channel ID for Votifier messages
# Leave 'default' to use default channel
votifierChannelID = "default"
# The message format of the votifier message
#
# PLACEHOLDERS:
# %player% - The player´s name
# %site% - The name of the vote site
# %addr% - (IP) Address of the site
message = ":ballot_box: %player% just voted on %site%"
# Name of the webhook title
name = "Votifier"
# URL of the webhook avatar image
avatarURL = "https://www.cubecraft.net/attachments/bkjvmqn-png.126824/"
# Configure Dynmap integration here
[dynmap]
# The message format of the message forwarded to discord
#
# PLACEHOLDERS:
# %sender% - The sender´s name
# %msg% - The Message
dcMessage = "<%sender%> %msg%"
# Custom channel ID for dynmap chat
# Leave 'default' to use default channel
dynmapChannelID = "default"
# Name of the webhook title
name = "Dynmap Web-Chat"
# URL of the webhook avatar image
avatarURL = "https://styles.redditmedia.com/t5_2kl3ct/styles/communityIcon_am5zopqnjhs41.png"
# The name format of the message forwarded to the dynmap webchat
#
# PLACEHOLDERS:
# %name% - The discord name of the sender (including nickname)
# %name#tag% - The discord name with tag of the sender (without nickname)
webName = "%name% (discord)"
# Name shown in discord when no name was specified on the website
unnamed = "Unnamed"