---
description: Answers to a lot of frequently asked questions
---

# FAQ

How do chances work?

A chance value to receive the reward. Can be either an integer or a decimal number.

The probability system is not one that is based on percentage chances but one that is based on a weight. This is because we put together all rewards into a single pool to pick a winner.

An analogy is to imagine a bag of tickets where the plugin will pick out a ticket and that represents the winning reward. Each reward has a "chance" number that represents the number of tickets. The more tickets you put in, the higher probability that it will get chosen and vice versa. The following is a more concrete example.

> For this example, we chose convenient numbers where the summation adds up to 100. The total does not have to add up to 100.

```
    Reward A - Chance:50 
    Reward B - Chance:20
    Reward C - Chance:15
    Reward D - Chance:10
    Reward E - Chance:5
```

Each reward is calculated to a percentage based on its weight.

* The **total weight** is **100 = (50 + 20 + 15 + 10 + 5)**.
* **Reward Percentage** = (**weight / total weight**) \* 100%.

```
    Reward A - Chance:50 # (50 / 100) * 100% = 50%
    Reward B - Chance:20 # (20 / 100) * 100% = 20%
    Reward C - Chance:15 # (15 / 100) * 100% = 15%
    Reward D - Chance:10 # (10 / 100) * 100% = 10%
    Reward E - Chance:5  # (5 / 100) * 100% = 5%
```



### How to use HEX colors?

Hex colors can be used anywhere within the plugin following the format #ffffff



### Non-English languages garbled in-game

Add `-Dfile.encoding=UTF-8` to your server's startup flags.

### Can I use mod items as rewards (for example from Pixelmon) in InfiniteFishing?

Yes! InfiniteFishing supports all items from any mod. Feel free to use our _**"/infinitefishing reward add**_" feature to quickly save your **held in hand** item to the plugin.

