💾
Champion Ultra
DiscordBuiltByBit
  • Tebex Themes Docs
  • Champion Tickets Docs
  • Champion Ptero Docs
  • Welcome
    • Introduction
    • Commands
      • Permissions
    • Features
    • Images
  • Installation & Setup
    • Newbie Guide
    • Requirements
    • Bot Application Setup
    • Linux Installation
    • Invite Link
    • Pterodactyl
    • Database
      • v1.2.8 Migration
      • Change DB Type
      • Mongo Database
      • database-actions addon
  • Configuration
    • config.yml
    • commands.yml
    • applications.yml
    • language.yml
    • embeds.yml
  • Advanced Ticketing
    • Introduction
    • Installation
  • Addons
    • Example Addon
    • Creating Addons
    • Selling Addons
  • Other
    • Basic Server Configuration
    • Dashboard Setup
    • Errors
Powered by GitBook
On this page
  • Code Copy-Pasting
  • Configs Copy-Pasting
  • Files Copy-Pasting

Was this helpful?

  1. Advanced Ticketing

Installation

Guide on how to install Advanced Ticketing Plugin.

Before starting with the Installation, make sure to BACKUP ALL YOUR FILES & DATABASES.

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:

  • Copy lines 3 & 4 and paste them instead of lines 3 & 4 in Champion Ultra

events > message > messageCreate.js

structures > Client.js

structures > database > MongoDatabase.js

structures > database > Database.js

utils > utils.js

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

When doing this step, don't delete the old folders, but just replace the files within.

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.

If you get stuck somewhere or you don't understand something, you can join Discord Support Server and we'll help you with the issue.

PreviousIntroductionNextExample Addon

Last updated 1 month ago

Was this helpful?

Copy code from lines 16 & 17 and paste it

Replace with all the code from between the lines 38 & 302 (inclusive) from the plugin

and below it paste all the code from between the lines 308 & 391 (inclusive) from the plugin

and below it paste all the code from between the lines 397 & 494 (inclusive) from the plugin

has above it paste all the code from between the lines 9 & 33 (inclusive)

Copy the line 12 and paste it either .

Copy lines 16 & 17 and paste them

Copy line 1 and paste it either at the top of the file,

Copy code from between the lines 6 & 8 (inclusive) and paste it either

and put transcripts: null, below the tickets: null, to look like in the new file.

Copy the line 22 and paste it

Copy the line 26 and paste it

Copy code from between the lines 32 & 34 (inclusive) and paste it either

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

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

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

below this code in Champion Ultra
this code from Champion Ultra
Find this code in Champion Ultra
Find this code in Champion Ultra
Find this code in Champion Ultra
above or below this code here
above or below this code here.
below the line 9 or between these two lines
above or below this code in Champion Ultra
Find this code in Champion Ultra
above this code in Champion Ultra
above this code in Champion Ultra
above or below this code in Champion Ultra
here below this code.
this code
here
here