Configuration

All features, messages are editable and customizable in our plugin.

prefix: "&x&7&2&8&9&d&a&lgDiscordSync &8» "

#  driver: sqlite / mysql
#  recommended: mysql
storage:
  driver: "sqlite"
  mysql:
    host: "localhost"
    port: 3306
    database: "discordsync_database"
    username: "username"
    password: "password"
    pool:
      autoReconnect: true
      useSSL: true
      waitTimeout: 28800

cleanup:
  checking-task: 1
  expiration-minutes: 10

discord:
  token: "your-discord-bot-token"
  guild-id: "your-guild-id"
  change-nickname: true
  restrict-to-channel: true
  target-channel-id: "your-channel-id"

slash-command:
  command: "link"
  description: "Generate an activation code to sync!"
  give-role: true
  discord-role: "your-role-id"
  sync-roles: true
  execute-commands: true
  once-rewards: true
  server-commands:
    - "eco give %player% 150"
    - "say %player% sync"
  messages:
    generated-code: "On the server, enter this command: **/gdiscordsync link %code%** If you don't activate it within 15 minutes, the code will be deleted."
    already-generated: "You have already linked your account, or you have an unactivated activation code!"
    wrong-channel: "This command can only be used on the specified channel."
    database-error: "An unknown error occurred during communication with the database, please wait.."

role-sync:
  # Setting the default role.
  'default': '123456789'

role-reverse-sync:
  # Setting the identifier for the default role.
  '123456789': 'default'

unlink-embed:
  title: "Sure you want to disconnect your accounts?"
  description: "If you click on the button now you will successfully disconnect your accounts, but beware, your rewards will be lost!"
  color: "#f0ad4e"
  footer: "www.yourserver.com"
  button-text: "I'm sure!"

unlink-command:
  nickname-reset: true
  execute-commands: true
  server-commands:
    - "eco take %player% 150"
    - "say %player% unlinked"

sync-reminder:
  enabled: true
  effect-duration: 240
  title:
    main: "&x&7&2&8&9&d&aLink your Discord account now!"
    subtitle: "&eUse /link on Discord server"

2fa:
  embed:
    title: "2FA Verification"
    description: "Please confirm that you are connected to the Minecraft server. Please confirm that you are connected to the server."
    footer: "www.glowingstudios.hu"
    color: "#f0ad4e"
  buttons:
    yes:
      emoji: "✅"
      text: "Yes!"
    no:
      emoji: "❌"
      text: "No."
  confirmation-yes:
    title: "Login Confirmed!"
    description: "You have confirmed your login, have a nice time on the server!"
    color: "#22bb33"
    footer: "www.glowingstudios.hu"
  confirmation-no:
    title: "Login Rejected!"
    description: "You have refused to log in, your Minecraft account has been disconnected from the server."
    color: "#bb2124"
    footer: "www.glowingstudios.hu"
  disable-embed:
    title: "2FA Disable Request"
    description: "Confirm that you want to turn off two-step verification on your account!"
    footer: "www.glowingstudios.hu"
    color: "#f0ad4e"
  disable-buttons:
    yes:
      emoji: "✅"
      text: "Yes!"
    no:
      emoji: "❌"
      text: "No."
  status-disable:
    title: "2FA Request Confirmed!"
    description: "Two-step verification no longer applies to your account. We recommend that you turn the feature back on."
    color: "#22bb33"
    footer: "www.glowingstudios.hu"
  status-disable-cancel:
    title: "2FA Request Cancelled!"
    description: "Request to disable two-factor authentication aborted! If you were not the applicant, contact a team member!"
    color: "#bb2124"
    footer: "www.glowingstudios.hu"

  unauth-kick-message:
    - "&a&l2FA IS ENABLED"
    - "&r"
    - "&ePlease confirm that you have the account before using the command."
    - ""
    - "&7Discord @ dc.glowingstudios.hu"

profile-slash:
  embed:
    title: "Your Profile Information"
    color: "#f0ad4e"
    description: "Here is your information:"
    minecraft-name-field: "Minecraft Name"
    groups-and-expiry-field: "Groups and Expiry"
    expiry-placeholder: "Expires on"
    pernament-placeholder: "Permanent"
    no-groups-data: "No groups or expiry data available"
    is-online-field: "Is Online"
    online-status: "Yes"
    offline-status: "No"
    twofa-status-field: "2FA Status"
    twofa-enabled: "Enabled"
    twofa-disabled: "Disabled"
    footer: "www.glowingstudios.hu"
  messages:
    account-not-linked: "Your account is not linked or no data found."
    link-account-first: "You need to link your account first using the /link command."
    database-error: "An error occurred while accessing the database."

log-system:
  enabled: true
  log-channel: "your-log-channel-id"
  embeds:
    player-login:
      enabled: true
      title: ":asterisk: A player has joined the server"
      description: "**The player details:**\n> Username: **%player%** \n> 2FA: **%2fa%** \n> Discord User: %discord_tag% **(%discord_id%)** \n> IP-Address: **%ip_address%** \n> Exact Date: **%date%**"
      color: "#36393F"
      footer: "Glowing Studios - gDiscordSync Logs"
      timestamp: true
      twofa-status:
        true: "Enabled"
        false: "Disabled"
    player-logout:
      enabled: true
      title: ":arrow_down_small: A player has left the server"
      description: "**The player details:**\n> Username: **%player%** \n> 2FA: **%2fa%** \n> Discord User: %discord_tag% **(%discord_id%)** \n> IP-Address: **%ip_address%** \n> Exact Date: **%date%**"
      color: "#36393F"
      footer: "Glowing Studios - gDiscordSync Logs"
      timestamp: true
      twofa-status:
        true: "Enabled"
        false: "Disabled"
    player-link:
      enabled: true
      title: ":wireless: A player has synchronised his accounts."
      description: "**The user details:**\n> Username: **%player%** \n> Discord User: %discord_tag% **(%discord_id%)** \n> IP-Address: **%ip_address%** \n> Exact Date: **%date%**"
      color: "#36393F"
      footer: "Glowing Studios - gDiscordSync Logs"
      timestamp: true
    player-unlink:
      enabled: true
      title: ":stop_button: A player has unlink his accounts."
      description: "**The user details:**\n> Username: **%player%** \n> Discord User: %discord_tag% **(%discord_id%)** \n> Exact Date: **%date%**"
      color: "#36393F"
      footer: "Glowing Studios - gDiscordSync Logs"
      timestamp: true

messages:
  only-player: "This command can only be used by players!"
  no-permission: "&x&f&b&2&5&2&5You don't have permission to do this command."
  too-many-args: "&x&f&b&2&5&2&5You tried to use too many arguments while using the command."
  not-linked: "&x&f&b&2&5&2&5Your account is not linked."
  database-error: "&x&f&b&2&5&2&5An error occurred while communicating with the database!"
  link:
    usage: "&fCorrect usage: &7/gdiscordsync link <code>"
    success: "&x&2&b&f&b&0&0You have successfully linked your account to %discord_name% Discord!"
    failure: "&x&f&b&2&5&2&5The activation code is no longer valid or your account is already linked to Discord."
    reward-claim: "&x&2&b&f&b&0&0You have successfully received the reward for synchronization."
    reward-already-claimed: "&x&f&b&2&5&2&5You have already activated the reward for synchronization on this account once."
  unlink:
    usage: "&fCorrect usage: &7/gdiscordsync unlink"
    success: "&x&2&b&f&b&0&0Please confirm the unlink request. On Discord, in private."
    unable-discord: "&x&f&b&2&5&2&5Unable to find your Discord account."
  2fa:
    usage: "&fCorrect usage: &7/gdiscordsync 2fa <enable | disable>"
    enabled: "&x&2&b&f&b&0&0You have successfully enabled two-step verification on your account!"
    already-enabled: "&x&f&b&2&5&2&5Two-step verification is already active on your account!"
    disabled: "&x&2&b&f&b&0&0To turn off two-step verification, please confirm the request on Discord!"
    already-disabled: "&x&f&b&2&5&2&5Two-step verification is already turned off in your account!"
  profile:
    usage: "&fCorrect usage: &7/gdiscordsync profile [player]"
    no-data: "&x&f&b&2&5&2&5You do not have any data stored because your account is not linked."
    no-player-data: "&x&f&b&2&5&2&5%player% player details are not found or the player does not exist."
    profile-format:
      - "&x&7&2&8&9&d&a&lgDiscordSync &8» &fChecking datas.."
      - ""
      - " &8• &fProfile Data for &e%player%"
      - " &8• &fDiscord ID: &7%discord_id%"
      - " &8• &fDiscord Name: &7%discord_name%"
      - " &8• &fSync Time: &7%generation_time%"
      - " &8• &f2FA Enabled: %2fa_status%"
      - ""
    2fa-stat-yes: "&aYes"
    2fa-stat-no: "&cNo"
  forceunlink:
    usage: "&fCorrect usage: &7/gdiscordsync forceunlink <player>"
    success: "&x&2&b&f&b&0&0You have successfully unlinked %player% accounts."
    failed: "&x&f&b&2&5&2&5This player's accounts are not synchronized."
  forcereset:
    usage: "&fCorrect usage: &7/gdiscordsync forcereset <player>"
    success: "&x&2&b&f&b&0&0You have successfully reset the %player% player data."
    failed: "&x&f&b&2&5&2&5You cannot change the data of this player because the player can claim a reward."
  reload:
    usage: "&fCorrect usage: &7/gdiscordsync reload"
    success: "&x&2&b&f&b&0&0The plugin files have been successfully reloaded!"

help-menu:
  - "&x&7&2&8&9&d&a&lgDiscordSync &8» &fAvailable commands:"
  - "&r"
  - "&8• &f/gdcsync link <code> &8- &7Sync your Discord account."
  - "&8• &f/gdcsync unlink &8- &7Unlink your Discord account."
  - "&8• &f/gdcsync 2fa <enable/disable> &8- &7Update you 2FA status."
  - "&8• &f/gdcsync profile [player] &8- &7Check your or other players data."
  - "&8• &f/gdcsync forceunlink <player> &8- &7Force Unlink player accounts."
  - "&8• &f/gdcsync forcereset <player> &8- &7Force Reset somebody rewards."
  - "&8• &f/gdcsync reload &8- &7Reload the plugin config file."
  - "&r"
  - "&eIf u need some help join our Discord server!"
  - "&x&7&2&8&9&d&ahttps://discord.gg/f5E4wCwG7g"
  - "&r"

# do not change this!
config-version: "2"

Last updated