# Features

## Coinflip Game Animation

When the Coinflip starts, both Players will open the Game GUI, in that GUI there is a Cricle spinning with the Players Heads, this animation decides who wins the flip.

* Other players can join to spectate a Coinflip.
* Should both players leave the Game GUI, the Coinflip will end and a winner will be choosen randomly.

## Tax

The Plugin will take a cut of the final amount that is given to the winner.

* You can configure this in <mark style="color:blue;">`/plugins/CrownCoinflips/config.yml`</mark>.
* The percentage is set in <mark style="color:purple;">`tax-percentage`</mark>.

## Min Amount

This is the min amount you have to use to be able to create a Coinflip.

* You can configure this in <mark style="color:blue;">`/plugins/CrownCoinflips/config.yml`</mark>.
* The amount is set in <mark style="color:purple;">`coinflip-min-amount`</mark>.

## Coinflip Animation

* You can configure this in <mark style="color:blue;">`/plugins/CrownCoinflips/config.yml`</mark>.
* The min spin amount is set in <mark style="color:purple;">`coinflip-min-spins`</mark>. This means the animation will always spin min x times.
* The random values are set in <mark style="color:purple;">`coinflip-random-spins-1`</mark> and <mark style="color:purple;">`coinflip-random-spins-2`</mark>. This will add a random amount of spins to each animation, making them unpredictable.

## Global values

Each plugin can have its own values to use in its <mark style="color:blue;">`messages.yml`</mark>. To do this you simply add the key you want to the <mark style="color:blue;">`messages.yml`</mark> file <mark style="color:red;">(not in the messages path)</mark> and then you can call it by using the internal placeholder %\<pluginname>\_\<key>%. Here is an [example](/wiki/legacy-wiki/plugins/crownkits/messages.md).

* You can configure this in <mark style="color:blue;">`/plugins/CrownCoinflips/messages.yml`</mark>.

| Key         | Internal placeholder | PAPI placeholder |
| ----------- | -------------------- | ---------------- |
| prefix      | %prefix%             | %cc\_prefix%     |
| whitecolor  | %accent%             | %cc\_accent%     |
| accentColor | %white%              | %cc\_white%      |

## Message color and hex translation.

All messages in the <mark style="color:blue;">`messages.yml`</mark> are able to undestand <mark style="color:green;">`legacy color codes`</mark> aswell as <mark style="color:green;">`hex color codes`</mark> in the following formats <mark style="color:purple;">`legacy & and §`</mark>, <mark style="color:purple;">`#ffffff`</mark> and <mark style="color:purple;">`&#ffffff`</mark>.


---

# 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/features.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.
