Link System

The plugin provides two functions that allow players to generate a code.

Default Configuration

This is the default configuration, you can choose type between SLASH and LINK-EMBED

link-system:
  # Types: SLASH, LINK-EMBED
  type: SLASH

  slash-command:
    link:
      command: "link"
      description: "Generate an activation code to sync!"
    link-embed:
      command: "link-embed"
      description: "The channel to send the linking embed message!"

  link-rewards:
    give-discord-role: "your-role-id"
    once-reward: true
    sync-roles: true

    execute-commands:
      enabled: true
      only-if-player-online: true
      commands:
        - "eco give %player% 150"
        - "say %player% has successfully synced!"

Type: SLASH

This system registers a simple slash command that users can use to generate a code.

Illustration on Discord:

With the /link-embed #channel slash command, users with Administrator permissions can send an embed message to a specified channel. By clicking the button in the embed, they can generate their own linking code.

Illustration on Discord:

Last updated