Instead of the flat fee ticket system cost .... You could maybe implement something more dynamic?
With the user deciding how much they want to "bet" in the lottery/pot, which can scale/increase their chances of winning based on how much they put into the pot vs. others (the person with the most invested into the pot has a higher % chance of winning).
You can also cap the total amount the player is allowed to "bet" to avoid people from just "buying" out the lottery pool completely.
Sometimes can create for some pretty big upsets with points if someone who invests very little wins. (this type of gambling plugin is done in Rust)
It creates something a bit more unique than a flat fee ticket system that currently exists.
Perhaps a way of instead having it on auto lottery a way so that if a player does the /lottery command they then start a lottery with the settings in the config for the ammount and how long it lasts pre set up. also cross cluster/mysql would be great.