# Welcome!

***

<figure><img src="/files/zdNAHbWjdLhaePuRBPVl" alt=""><figcaption></figcaption></figure>

{% embed url="<https://builtbybit.com/resources/discord-leaderboards-premium.39497/>" %}
Click to Download
{% endembed %}

## General Guide

{% content-ref url="/pages/sIQOdZ1slNMvU3ohQtUH" %}
[Getting Started](/general-guide/getting-started)
{% endcontent-ref %}

{% content-ref url="/pages/FKMHlBodwwJCNLC2dL5o" %}
[Create New Leaderboard](/general-guide/create-new-leaderboard)
{% endcontent-ref %}

## Resolving Issues

{% content-ref url="/pages/qPYTpzdu1CyRvkStsJ1O" %}
[Reload DLP Plugin](/resolving-issues/reload-dlp-plugin)
{% endcontent-ref %}

{% content-ref url="/pages/G0Goix1lkiqtmPHo1Ne9" %}
[Reloading Discord Client](/resolving-issues/reloading-discord-client)
{% endcontent-ref %}


# 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="/files/T41BZbEMI0FUGVwXjSNh" 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="/files/fSvlVeTXNYjplPpP2WYL" alt=""><figcaption></figcaption></figure>

#### 03. Restart your server

Restart your server using your hosting panel

<figure><img src="/files/3fPUNgGN1tmAeMlo6pqm" 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="/files/QCs6PHYHAndvZcOumkAK" alt=""><figcaption><p>you can create a ticket by clicking this button</p></figcaption></figure></div>

<figure><img src="/files/AMVO4URPDvCuKV2oLFSX" 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="/files/fcdTnFljCYXrE9ahGL4n" 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="/files/mYgvBAN3K0Aj0AI9l4Kh" 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="/files/zpI4AkCenFeZidyybHro" 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="/files/csOFennOr6FIr5GfGYYv" alt=""><figcaption><p>enter a name for the application</p></figcaption></figure>

#### 03. Enable Privileged Gateway Intent

<figure><img src="/files/mzvt5v65jTA3IjhaHq0d" 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="/files/y2BXlt6wBVN95f9cdV1i" 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="/files/JOX8Bdl3ro94S6z8bQLq" 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="/files/Y2vaUygA89j8mUvADqQy" 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="/files/ose4EYonmUOfNSrxCrPV" 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 %}


# Create New Leaderboard

## 01. Create AJLB Leaderboard

for use Discord leaderboard Premium you need to have Aj leaderboard, First follow following guide to create a new ajlb leaderboard if you don't have it yet

{% embed url="<https://wiki.ajg0702.us/ajLeaderboards/setup/>" %}

{% hint style="warning" %}
If you just created AJLB leaderboard before using DLP commands you have to [Reload the plugin](/resolving-issues/reload-dlp-plugin) and Refresh [Your Discord Client](/resolving-issues/reloading-discord-client) .
{% endhint %}

## 02. Use /Create Slash Command

{% hint style="info" %}
Most of DLP Command are moved to discord as slash command. You need Administrator Permission to Execute those slash commands.
{% endhint %}

### - Create Command Arguments

1. **`Name`** - New Unique Identifier for leaderboard embed.
2. **`Title`** - Leaderboard Embed Title / Image Title.
3. **`Leaderboard`** - AJLB Leaderboard name "Usually Placeholder without %%".
4. **`Timed Type`** - AJLB Timed Type.
5. **`Top`** - Amount of Players that's going to be displayed in Leaderboard.
6. **`Type`** - leaderboard Type.
7. **`Embed Template`** - Leaderboard Embed template (Usually Ends with .yml)
8. **`Image Template`** - Leaderboard Image template (Usually Ends with .html)
9. **`is Public`** - whether leaderboard is accessible to public via public /leaderboard command

## 03. Refresh Your Discord Client

Once new leaderboard created server will update the slash commands for use those newly edited slash command you may have to [Reload your discord client](/resolving-issues/reloading-discord-client). best way to do that is by pressing <mark style="color:yellow;">**`CTRL + R`**</mark>.


# Reload DLP Plugin

{% hint style="warning" %}
Reloading The plugin may cause problems and most of the time does ouput warnings to console. Please avoid Unnecessary plugin reloads. We would recommend Restarting the server as a proper solution.
{% endhint %}

## 01. Reloading With Commands

DLP provides 2 main ways to reload. as first method you can execute `/dlp reload` command in your server console or in minecraft chat. \
\
DLP also provides Discord slash command for reloading the plugin as well as restarting the bot. for reload plugin you can execute `/reload` command. (this command requires you to have administrator permission)


# Reloading Discord Client

{% hint style="info" %}
Occasionally, after making changes to servers, you might experience a delay in using certain slash commands or their arguments. No need to stress! To resolve this issue, simply restart your Discord client. We appreciate your patience and happy chatting! 🌟
{% endhint %}

## How to Reload Your Discord Client

### On Windows:

* Press `Ctrl + R` to Refresh Your Discord&#x20;

### On macOS:

* Press `Cmd + R` to Refresh Your Discord&#x20;

### On Mobile (iOS and Android):

1. Close Discord:
   * Swipe away the Discord app from the recent apps list.
2. Reopen Discord:
   * Tap on the Discord app icon to launch it again.

### On Web Browsers (Chrome, Firefox, Edge, etc.):

1. **Close Discord:**
   * Close the tab or window where Discord is open.
2. **Reopen Discord:**
   * Open a new tab or window.
   * Type in the Discord web address (e.g., [https://discord.com](https://discord.com/)) and press Enter to launch Discord again.


