# Getting Started

## 01. Downloading & Installing Plugin

#### 01. Download the plugin jar from buildbybit

Product Link : <https://builtbybit.com/resources/discord-leaderboards-premium.39497/>

<figure><img src="https://1851013029-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgdD3T2aB7rIrVqsmqKUg%2Fuploads%2F7wKJOIQ6XmLpuCWOQyXs%2Fimage.png?alt=media&#x26;token=95ac8c21-0477-4e8d-b0a5-c65e97eb5c11" alt=""><figcaption><p>once you purchase the plugin you will be able to see this download button link.</p></figcaption></figure>

#### 02. Upload the plugin jar to your server

Upload the `DLP.jar` file to your minecraft server's `plugins` folder <br>

<figure><img src="https://1851013029-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgdD3T2aB7rIrVqsmqKUg%2Fuploads%2FM5gAKettEQdr0zdvBsbL%2Fimage.png?alt=media&#x26;token=d42cee11-635b-4523-a725-5b6705ab6e1c" alt=""><figcaption></figcaption></figure>

#### 03. Restart your server

Restart your server using your hosting panel

<figure><img src="https://1851013029-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgdD3T2aB7rIrVqsmqKUg%2Fuploads%2FDe1aJo6nJze5d9tLNiSp%2Fimage.png?alt=media&#x26;token=94acc41e-6054-473a-84ca-d30190de6f93" alt=""><figcaption></figcaption></figure>

## 02. Getting a license key

#### 01. Visit support channel in our discord server (Sundevs)

{% embed url="<https://dsc.gg/sundevs>" %}
click to join
{% endembed %}

#### 02. Create a license ticket

<div align="right"><figure><img src="https://1851013029-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgdD3T2aB7rIrVqsmqKUg%2Fuploads%2FaePOC7WEPWsAy3U9rHwq%2Fimage.png?alt=media&#x26;token=87262c04-872b-4682-82e6-272da10165a8" alt=""><figcaption><p>you can create a ticket by clicking this button</p></figcaption></figure></div>

<figure><img src="https://1851013029-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgdD3T2aB7rIrVqsmqKUg%2Fuploads%2FrCmS9XSucjqdb5LfUA6a%2Fimage.png?alt=media&#x26;token=7a584b8b-6baf-4cfb-a370-88e3bbed80ce" alt=""><figcaption><p>enter product name and your builtbubit name and click submit button. then ticket will be created an you will be recievd a license key shortly</p></figcaption></figure>

#### 03. Copy the license key

<figure><img src="https://1851013029-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgdD3T2aB7rIrVqsmqKUg%2Fuploads%2FNcDFtWyjVI7MRcpVW3EL%2Fimage.png?alt=media&#x26;token=e78c4d16-b849-4616-8fbd-f4037e05fd5a" alt=""><figcaption><p>You will be received this type of message to your discord dms shortly. copy the license key from there </p></figcaption></figure>

{% hint style="info" %}
Giving a license key is a manual process, You have to wait until developer arrived. thanks for being patent
{% endhint %}

#### 04. Add licese key to license.txt file

Goto your plugin's folder **`plugins\discordleaderboardspremium`**&#x61;nd copy that license key to **`License.txt`** file  then save it and restart the server.\ <br>

<figure><img src="https://1851013029-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgdD3T2aB7rIrVqsmqKUg%2Fuploads%2FeUu8czMHagN8GkZjcmYn%2Fimage.png?alt=media&#x26;token=b9168814-de4d-4d1b-9cf0-85e16530fe1c" alt=""><figcaption><p>paste license key to license.txt in plugin's folder and restart the server</p></figcaption></figure>

{% hint style="warning" %}
Server hast to be restarted at least once before this process to generate plugin's folder and license.txt
{% endhint %}

## 03. Setting up Discord Bot

#### 01. Visit Discord Devloper Portal

{% embed url="<https://discord.com/developers/applications>" %}
Click to visit
{% endembed %}

#### 02. Create new Application

<figure><img src="https://1851013029-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgdD3T2aB7rIrVqsmqKUg%2Fuploads%2F0hk4ZoAKETMPjgMCEj4I%2Fimage.png?alt=media&#x26;token=2f133859-a896-4077-a92a-5441f69b1511" alt=""><figcaption><p>You may have to sign up with your discord account if you're visitng for first time</p></figcaption></figure>

<figure><img src="https://1851013029-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgdD3T2aB7rIrVqsmqKUg%2Fuploads%2FzqzuzrJeluyKWBEu3NhR%2Fimage.png?alt=media&#x26;token=baedd9fd-bd64-4216-a830-1cf3ef12144c" alt=""><figcaption><p>enter a name for the application</p></figcaption></figure>

#### 03. Enable Privileged Gateway Intent

<figure><img src="https://1851013029-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgdD3T2aB7rIrVqsmqKUg%2Fuploads%2Fu52J5nqJDcyJzdHg7UKU%2Fimage.png?alt=media&#x26;token=f0f0e93f-8faf-4039-9894-8852defe179a" alt=""><figcaption><p>Visit bot tab and enable all of these 3 things</p></figcaption></figure>

#### 04. Reset and Copy your Discord Bot Token (Keep It in a safe place, we need that later)

<figure><img src="https://1851013029-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgdD3T2aB7rIrVqsmqKUg%2Fuploads%2FRgESNfzi3Z0Q7NTH6QVT%2Fimage.png?alt=media&#x26;token=550e56fc-7e7d-4e78-b44f-57d7daeb6580" alt=""><figcaption><p>Click Reset Token Button - after few steps you will be given a long string copy that and save it in a safe place</p></figcaption></figure>

{% hint style="danger" %}
Anyone can access your discord bot thro that discord token so please be careful and avoid sharing it
{% endhint %}

#### 05. Give Permissions & Invite The bot to your Discord Server

<figure><img src="https://1851013029-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgdD3T2aB7rIrVqsmqKUg%2Fuploads%2FOlvLaXziJiNWOTQJGpL1%2Fimage.png?alt=media&#x26;token=c98435ae-fb61-4638-b181-f90435def348" alt=""><figcaption><p>goto oAuth2 > Url Generator tab and check following permissions</p></figcaption></figure>

**Scops :**&#x20;

* `applications.commands` - Required
* `bot` - Required

**Bot Permission**&#x20;

* `Administrator` - Recommended&#x20;

<figure><img src="https://1851013029-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgdD3T2aB7rIrVqsmqKUg%2Fuploads%2FAs0ISdAhQJlaPQ9QA8Q8%2Fimage.png?alt=media&#x26;token=63adb200-593a-4d8c-99c8-b98a647e93bc" alt=""><figcaption><p>click copy button and past it in your browser, then you will be able to add that bot to your discord server</p></figcaption></figure>

#### 06. Add that bot token to config.yml & Restart Your Minecraft Server

Goto your plugin's folder **`plugins\discordleaderboardspremium`**&#x61;nd copy that bot token to **`Config.yml`** file  then save it and restart the server.

<figure><img src="https://1851013029-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgdD3T2aB7rIrVqsmqKUg%2Fuploads%2FA4vdcGebWMS25YFmQ74u%2Fimage.png?alt=media&#x26;token=bb92076d-06c6-4104-944f-ffb6be934d3f" alt=""><figcaption><p>paste your bot token inside " " infrontof token : text then save the file and restart your minecraft server</p></figcaption></figure>

{% hint style="success" %}
Now You will be able to Successfully Start the Plugin, Also Discord Bot gonna be online at the same time. If you are facing further issues please contact the developer by creating a ticket or support channel.
{% endhint %}
