Skip to main content

Custom messages

Recommendation

Basic JSON knowledge is highly recommended

To customize the messages you need to create a datapack

To create the datapack you must head to you world folder, then to datapacks There you create a folder with the name of your choice Inside the folder create a pack.mcmeta file and a data folder

On pack.mcmeta put the following:

pack.mcmeta
{
"pack": {
"description": "Custom messages for AutoWhitelist",
"pack_format": 10
}
}

Feel free to customize the description content

Inside the data folder add an autowhiteist folder and, inside autowhitelist, create another folder called lang

Now inside the lang folder create a new file called en_us.json
On that file you will customize the mod messages.

tip

You don't need to include all translations, only the ones you want to change.

You will also want to run /datapack enable <your datapack>
If you already have the datapack enabled make sure to run /reload to update the translations

en_us.json
{
"command.description.register": "Adds the informed minecraft account to the server whitelist.",
"command.description.info": "Adds the informed minecraft account to the server whitelist.",

"command.register.success.title": "Welcome to the group!",
"command.register.success.message": "Your Minecraft account has been added to the whitelist.\n\n_Please remember that you can always get your entry removed if you break any rule._",
"command.register.last_steps.title": "Finishing some last things",
"command.register.last_steps.message": "You request has been accepted.\nPlease wait while I add you to the server whitelist.\nI'll let you know when everything is done.",
"command.register.username_already_registered.title": "This username is already registered",
"command.register.username_already_registered.message": "The username you inserted is already whitelisted on the server.",
"command.register.player_banned.title": "You seem to be banned from the server",
"command.register.player_banned.message": "Sorry, but I could not add you to the whitelist as the player with the username you inserted is be banned from the server.",
"command.register.already_registered.title": "You're already registered",
"command.register.already_registered.message": "You already have an account registered. Alt accounts aren't supported. If you want to change the account ask someone with OP on the server to remove your entry.",
"command.register.same_username.title": "You're already registered",
"command.register.same_username.message": "Your linked account is already the same as the one you're trying to register. If you want to change it run the command again with the new username.",
"command.register.locked.title": "You can't do that yet",
"command.register.locked.message": "Your entry is currently locked, the account will be unlocked %s.\nUntil then you can't change the linked account.",
"command.register.fatal.title": "Something went badly wrong",
"command.register.fatal": "I could not add you to the whitelist.\nPlease contact a moderator.\n\n%s",
"command.register.invalid_username.title": "Invalid username",
"command.register.invalid_username.message.too_long": "The username you inserted is too big, a **Minecraft Java Edition** username can be up to 16 characters.",
"command.register.invalid_username.message.too_short": "The username you inserted is too small, a **Minecraft Java Edition** username has to be at least 3 characters long.",
"command.register.fail.not_allowed.title": "Sorry, but I couldn't accept your request",
"command.register.fail.not_allowed.message": "It seems that you don't have the required subscription/member level or don't have your Twitch/Youtube account linked to your Discord account.",
"command.register.fail.account_data": "I couldn't get the public account data of \"%s\". Is it a valid **Minecraft Java Edition** username?\n_It is only possible to register Minecraft Java Edition accounts._",

"command.info.missing.title": "You are not registered",
"command.info.missing.description": "There is no whitelist entry associated with your discord user",
"command.info.title": "Your whitelist entry",
"command.info.description": "Here is some info about your entry",
"command.info.field.username.title": "Username",
"command.info.field.username.description": "%s",
"command.info.field.role.title": "Detected Role",
"command.info.field.role.description": "%s",
"command.info.field.lock.title": "Change Lock",
"command.info.field.lock.description.future": "Expires %s",
"command.info.field.lock.description.past": "Expired %s",
"command.info.field.lock.description.permanent": "Permanent",

"command.fail.title": "Something went wrong",
"command.fatal.exception": "Failed to execute command but got an exception\n```%s```### Please contact a moderator\n\nIf you are an admin, please check the mod configs, if the issue persists open an issue on the mod's [GitHub page](https://github.com/Awakened-Redstone/AutoWhitelist/issues)",
"command.few_args.title": "Not enough arguments",
"command.few_args.message": "You didn't put the minimum amount of arguments required.\nCheck the help command to see the command usage.",
"command.too_many_args.title": "Too many arguments",
"command.too_many_args.message": "You have put too many arguments on the command.\nCheck the help command to see the command usage.",
"command.feedback.received.title": "Command feedback",
"command.feedback.received.message": "Your request has been received and is being processed, if you don't get another feedback message within a minute than please contact a moderator.",
"command.feedback.message.signature": "AutoWhitelist by AwakenedRedstone",

"discord.modal.register.title": "Register account",
"discord.modal.register.input.label": "Minecraft username",
"discord.modal.register.input.placeholder": "Username",

"discord.bot.activity.message": "on the Member Server"
}