# Configuration

### Description

This page contains the default config.yml.

### Default config file

```yaml
#
# Thank you for purchasing CrownCoinFlips!
# If you have any questions, suggestions or need help, please do not hesitate and
# join our discord: https://dsc.gg/crownplugins to ask for help!
# We are there to assist you.
#

# you can obtain your license in our discord! https://dsc.gg/crownplugins
# paste your license key in here
license: paste-here

# data storage settings
storage:
  method: h2 # you can choose between h2 and mysql and mariadb
  data:
    host: crownhost
    database: crowndatabase
    username: crownuser
    password: "crownpassword"

    # sets the maximum size of the MySQL connection pool.
    #   https://github.com/brettwooldridge/HikariCP/wiki/About-Pool-Sizing
    pool-settings:
      maximum-pool-size: 10
      minimum-idle: 10
      maximum-lifetime: 1800000
      keepalive-time: 0
      connection-timeout: 5000

coinflip:
  # the amount the plugin takes of from the final winning amount
  # note that this is taken from the final amount, so if a coinflip is 5.000, the final amount will be 10.000, so at 20% it will take 2.000 away
  tax-percentages:
    default: 20
    permissions:
      coinflip.admin: 0

  min-spins: 20 # the min amount of spins a coinflip will do
  random-spins: 24 # a random amount of spins ranging from 1 - x will be added on top
  min-amount: 500 # the min amount needed to create a coinflip
  max-amount: 1000000 # the max amount a coinflip can be
  broadcast-messages: false # set this to true if you want the coinflip messages to be broadcasted

create-new:
  material: PLAYER_HEAD # the material to use for the 'create new coinflip' item in the gui
  texture: M2VkZDIwYmU5MzUyMDk0OWU2Y2U3ODlkYzRmNDNlZmFlYjI4YzcxN2VlNmJmY2JiZTAyNzgwMTQyZjcxNiJ9fX0= # the texture to use if using a player head

main-gui:
  stat-slot: 49 # the slot the players head will be shown in, statistics in the lore
  filler: # filler configuration for the main gui
    material: AIR
    slots: []

custom-currency:
  enable: false
  raw-placeholder: "%your_placeholder%"
  command:
    add: "custom-currency add %player% %amount%"
    remove: "custom-currency remove %player% amount"
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://obey.gitbook.io/wiki/legacy-wiki/plugins/crowncoinflips/configuration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
