# Configuration

Once the server is started, the plugin generates a subfolder called "SmartQuests" inside which we will find the following configuration files.

<details>

<summary>config.yml</summary>

```yaml
databases:
# Types of backend (storage): mysql, sqlite
  backend: sqlite
  host: localhost
  port: 3306
  database: database
  username: root
  password: password
  
#Available languages: EN, IT, DE, FR, ES, PT
language: EN

alias: 'null'

default-gui-category: false
default-all-active: false
quest-glow-active: true

gui:
  size-rows: 6
  player-head-enable: true
  max-mission-active: 3
  hide-complete-mission: false
  hide-lock-mission: false
  hide-categoty: false
  fill:
    enable: true
    item: BLACK_STAINED_GLASS_PANE
  item:
    lock: STRUCTURE_VOID
    complete: none
  filter-category: true
    
mission-complete-sound: ENTITY_PLAYER_LEVELUP
mission-complete-effect: true
mission-complete-effect-type: HAPPY_VILLAGER
mission-complete-title:
  title: true
  subtitle: true
  fade-in: 10
  duration: 40
  fade-out: 10
  
symbols:
  complete: ✔
  active: ▶
  
disable-op-progress: false

updates:
  check-update: true
  notify-chat-op: false
  auto-update: false
  remove-old-version: false
  
logger: true
```

</details>

<table data-full-width="true"><thead><tr><th>Entries</th><th>Descriptions</th></tr></thead><tbody><tr><td><pre class="language-yaml"><code class="lang-yaml">databases:
  backend: sqlite
  host: localhost
  port: 3306
  database: database
  username: root
  password: password
</code></pre></td><td>From this configuration you can set where to save the mission data. You can choose between: mysql, sqlite<br>In the case of mysql it will be necessary to enter the credentials<br>(default: sqlite)</td></tr><tr><td><pre class="language-yaml"><code class="lang-yaml">language: EN
</code></pre></td><td>The plugin language is set automatically when the server starts, if you don't like the language you can change it manually between: EN, IT, DE, FR, ES, PT</td></tr><tr><td><pre class="language-yaml"><code class="lang-yaml">alias: 'null'
</code></pre></td><td>The alias runs a custom command that behaves like /quests<br>(default: null)</td></tr><tr><td><pre class="language-yaml"><code class="lang-yaml">default-gui-category: false
</code></pre></td><td>Use categories as main GUI</td></tr><tr><td><pre class="language-yaml"><code class="lang-yaml">default-all-active: false
</code></pre></td><td>Make all missions active by bypassing the limit</td></tr><tr><td><pre class="language-yaml"><code class="lang-yaml">default-comunity-all-active: false
</code></pre></td><td>Automatically enables all community missions and keeps them active</td></tr><tr><td><pre class="language-yaml"><code class="lang-yaml">quest-glow-active: true
</code></pre></td><td>Disable the glow effect when missions are active</td></tr><tr><td><pre class="language-yaml"><code class="lang-yaml">gui:
  size-rows: 4
  player-head-enable: true
  max-mission-active: 3
  hide-complete-mission: false
  hide-lock-mission: false
  hide-categoty: false
  fill:
    enable: true
    item: BLACK_STAINED_GLASS_PANE
  item:
    lock: STRUCTURE_VOID
    complete: none
  filter-category: true
</code></pre></td><td><p>From this configuration block you set the mission GUI.<br>- How many lines should the GUI have?<br>- Enable player head?<br>- Maximum number of active missions<br>- Hide completed missions?<br>- Hide locked missions?</p><p>- Hide the categories?<br>By default the GUI is filled with:<br>BLACK_STAINED_GLASS_PANE<br>and locked missions are shown with:<br>STRUCTURE_VOID<br>Completed missions will keep the icon, but you can set a different icon upon completion.<br>filter-category -> Allows you to hide categories not used by existing missions</p></td></tr><tr><td><pre class="language-yaml"><code class="lang-yaml">mission-complete-sound: 
  ENTITY_PLAYER_LEVELUP
</code></pre></td><td>Upon completion of a mission the player will hear the set sound. Go to the bottom of the page for more information</td></tr><tr><td><pre class="language-yaml"><code class="lang-yaml">mission-complete-effect: true
mission-complete-effect-type: HAPPY_VILLAGER
</code></pre></td><td>Enables the effect upon mission completion</td></tr><tr><td><pre class="language-yaml"><code class="lang-yaml">mission-complete-title:
  title: true
  subtitle: true
  fade-in: 10
  duration: 40
  fade-out: 10
</code></pre></td><td>Display a title or subtitle upon mission completion</td></tr><tr><td><pre class="language-yaml"><code class="lang-yaml">  complete: ✓
  active: ▶
</code></pre></td><td>Symbols inserted into the text for mission lore</td></tr><tr><td><pre class="language-yaml"><code class="lang-yaml">disable-op-progress: false
</code></pre></td><td>Disable quest progression for OP players</td></tr><tr><td><pre class="language-yaml"><code class="lang-yaml">updates:
  check-update: true
  notify-chat-op: false
  auto-update: true
  remove-old-version: true
</code></pre></td><td>This configuration block manages updates.<br>It allows you to check if there are new updates, whether to send you a change, whether to perform an automatic update and whether to delete any old version present on the server.</td></tr><tr><td><pre class="language-yaml"><code class="lang-yaml">logger: true
</code></pre></td><td>Create a "logs" folder where it saves all interactions with the in-game plugin</td></tr></tbody></table>

***

Extra configuration

<table data-full-width="true"><thead><tr><th>Entries</th><th>Description</th></tr></thead><tbody><tr><td><pre class="language-yaml"><code class="lang-yaml">tabscore-show-community: false
</code></pre></td><td>If SmartQuestsTabList is also inserted, this extra configuration will be inserted which will allow you to choose whether or not to display the community missions in the Tab or in the Scoreboard.</td></tr></tbody></table>

### Sound

From this sites you can get the list of all minecraft sounds and effects:

{% embed url="<https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Sound.html>" %}

{% embed url="<https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Particle.html>" %}
