Installation

Guide on how to install Advanced Ticketing Plugin.

If you don't want to bother with all the installation, on the Resource Page you can purchase the 'Advanced Ticketing Installation' and we'll install the plugin for you.

When you purchase the Advanced Ticketing Plugin, you'll receive folder named advanced-ticket which will contain the following folders:

  • commands

  • configs

  • dashboard

  • data

  • events

  • structures

  • utils

The installation isn't just as all the other addons where you put the folder into the addons folder, as this is an plugin, installation consists of three things, copy-pasting code into corresponding files, pasting the new config fields into the old config & replacing old files & folders with the new ones and so will this guide be separated into 3 different sections, 'Code Copy-Pasting', 'Config Copy-Pasting' & 'File Copy-Pasting'.

Code Copy-Pasting

By the 'copy the code from the file' and the other similar phrases, it's meant that you copy it from the Advanced Ticketing Plugin.

By the 'Find this code in Champion Ultra ' it's meant to find that code in the Champion Ultra, not the plugin.

We will begin this guide with the code copy-pasting step. All you need to do is to copy the code from the files that will be mentioned below, and paste it into the corresponding file in the Champion Ultra, so let's begin:

dashboard > public > css > styles.css - copy all the code from the file and paste it anywhere in the Champion Ultra one.

events > guild > channelDelete.js - copy code from between lines 8 & 11 (inclusive) and paste it below the line 10 in the corresponding file in Champion Ultra.

events > guild > guildMemberRemove.js - copy code from between the lines 12 & 25 (inclusive) and paste it below the line 14 in the corresponding file in Champion Ultra.

events > message > interactionCreate.js - this is the file that contains the most copy-pasting so I'll break it down to few bullet-points:

events > message > messageCreate.js

structures > Client.js

structures > database > MongoDatabase.js

structures > database > Database.js

utils > utils.js

  • Copy all the code from between the lines 1 & 5 (inclusive) and paste it either at the top of the file or here below this code.

  • Copy all the code from between the lines 7 & 616 (inclusve) and paste it right above this code.

  • Copy all the exports from between the lines 620 & 628 (inclusive) and paste them anywhere in the exports here or at the end here (make sure they're pasted above the curly bracket if you're pasting at the end)

Configs Copy-Pasting

In this part of the Copy-Pasting guide we'll focus on the configs folder and configuration files within. Pasting of the config files is easy - open the current config on the left and this new file on the right. On the right one (new) look which all the new fields are added, find their section on the left (old) and paste them in there (make sure that they're properly spaced/indented).

Don't replace the old files with the new ones as these aren't the whole config files.

Even if it's that simple, there's few things to note:

configs > config.yml

  • channels > ticket_category field has been renamed to tickets_category, so with an S

  • When you come to plugins > tickets section in the new file, you should just paste the new tickets all over the old one, so you don't go line-by-line

  • In the old config, you can remove whole emojis > tickets section, as in the new file they're not all in the same section but just under emojis section

configs > embeds.yml

  • When you're pasting sections, make sure that you remove the duplicates as there are some same sections in both files but they have different fields in them, so overwrite those in the old file with the ones from the new file

  • When you're pasting sections, make sure that you remove the duplicates as there are some same sections in both files but they have different fields in them, so overwrite those in the old file with the ones from the new file

    • Those fields are ticket & panel

configs > language.yml There's nothing special in this file, so just copy the new fields into the corresponding sections in the old config.

  • Only thing to note is that you can just overwrite the old tickets section with the new one, so you don't go line-by-line

configs > commands.yml

There's nothing special about this file either, just copy all the code from the file and paste it into the one in Champion Ultra.

Files Copy-Pasting

For the end we have the most easy part, copy-pasting of the whole files without changing anything within. So, it's simple, just replace the old file(s) with the new one(s).

The files that are part of this step are:

  • commands folder

  • dashboard folder (excluding dashboard/public/css/styles.css file)

  • data/template.html file

  • events/client/ready.js

  • events/custom folder

  • all the files in structures/database/models folder

  • utils/askQuestions.js file

  • utils/createTranscript.js file

  • utils/ticketCategory.js file

That's it! If you've done everything right you should have your Advanced Ticketing Plugin installed & ready for usage.

Last updated

Was this helpful?