LotterySix | Number Picking Lottery | Bungee & Velocity Support | Inspired by "Mark Six" by the HKJC icon

LotterySix | Number Picking Lottery | Bungee & Velocity Support | Inspired by "Mark Six" by the HKJC -----

Realistic number picking lottery with tickets count independent odds. Please bet responsibility.



[​IMG] Consider donating!
It helps me keep on supporting my plugins while keeping them free! Click me!

Looking for places to host your new Minecraft server? Look no further than BisectHosting! (25% off inside!)
[​IMG]
Before being a plugin developer, I've actually used BisectHosting before. Their servers run smoothly (when given enough RAM, of course) and they respond to their support tickets super fast, 24/7. They continued to assist me swiftly own downloading my data and worlds even after my server had expired!

With BisectHosting, you'll be able to get your own server in just a few clicks!

Interested? Then here's a deal for you!
Click the banner or the link below to get a 25% discount off your first month when buying any of their gaming servers!
It also supports my development as well, take it as an alternative way to donate while getting your very own Minecraft server as well!


P.S. Using the link or clicking the banner rather than the code supports me more! (Costs you no extra!)

https://www.bisecthosting.com/loohp

[​IMG]

[​IMG]
Join the discord server here!


[​IMG]

Background
At the time of this plugin's creation, it is Lunar New Year (02/2023). Usually, during special holidays, the lottery prize money in Hong Kong get's extra high to attract people to buy for the occasion.

However, while that is happening, I am halfway across the globe from my extended family and loved ones (Think of it like Christmas when the entire family gather around). Therefore, I've had the bright idea of creating a lottery plugin inspired by this... Scroll to the bottom of the page if you want to see what inspired this plugin.

About
Want a lottery system on your server that is a bit more like IRL that doesn't evenly distribute chances over all tickets bought making the poor who wants to try their luck just idiots giving free money to that one person who bought 6400 tickets?

With this plugin, you can create a manually started or automatically reoccurring lottery game on your server. While the mechanics in full might not be as simple, joining a game by placing a bet is super simple. A player can win prizes of different tiers depending on the number of matching numbers they've bet on!


One thing to note is that the odds are independent of the number of bets placed. (In other words, one person playing doesn't mean that player is 100% going to win.)

How to play LotterySix?
1. Check if a draw is scheduled and available to play!
- Games can be scheduled to start in the config or manually started with /lottery start
- Open the GUI with /lottery play

[​IMG]

2. Click to place a new bet

[​IMG]

3. Choose your 6 lucky numbers (Simple Entry)

- There are also other forms of more complex entry methods for you to discover!
[​IMG]

4. Get ready at the scheduled draw time for the draw!

- 6 numbers + 1 special number will be chosen at random
- By a cryptographically secure random number generator, if that matters to you

[​IMG]

5. Collect prizes if you win!

- If the numbers you've picked contain 3 or more numbers selected in the draw (excluding the special number), you will win some prizes!
- The more matching numbers, the higher your winnings!

- Each tier is NOT guaranteed a winner, unlike a lucky draw, in fact, it is extremely difficult to win higher tiers
- See the link below for a detailed explanation
[​IMG]


How do the entry types & prize allocation work?
https://github.com/LOOHP/LotterySix/wiki/LotterySix-Draw-&-Prizes-Explanation

DiscordSRV Integration
Place bets, check your bets, past draw results and more offline via DiscordSRV!
- Draw Result Announcement
- Slash Command /lottery

[​IMG]
[​IMG]
[​IMG]
[​IMG]

Floodgate (Geyser) Integration
Use Bedrock forms in places where book interfaces were used because they cannot be opened remotely
[​IMG]

Responsible Gambling
See how LotterySix facilitates the promotion of responsible gambling even as a just-for-fun Minecraft plugin
https://github.com/LOOHP/LotterySix/wiki/Responsible-Gambling

Returning to the Community / Charity
An account can be configured to receive a portion of the lottery ticket sales taken as tax (the "Lotteries Fund").

For example, they can be received by the server owner or an admin to then be redistributed to other players to fund server-wide projects! This allows taxed ticket sales to be turned to good use, returning them to the server community.

Dependencies
- PlaceholderAPI
- Vault
- A Vault Compatible Economy Plugin


Installation
Only on Spigot, Paper etc.
1. Put LotterySix.jar into the plugins folder along with the required dependencies
2. Start the server
3. Edit the config (if you need to)
4. Restart the server (if you changed something in the config in step 3)

Over a Bungeecord or Velocity Network

1. Put LotterySix.jar into the plugins folder along with the required dependencies in your backend servers (Spigot, Paper etc.)
2. Put LotterySix.jar into the plugins folder in your proxy server (there are no dependencies on proxy servers)
3. Start and then Stop your Bungeecord Server and your backend servers
4. Edit your LotterySix config on the proxy server
5. Remember to set " Bungeecord: true" in the above config
6. Copy the above config to all of your backend servers and replace the originally generated one
7. Start your proxy server and your backend servers
8. If you ever want to adjust the config, make sure you follow the steps again starting from Step 3

You are recommended to read this if you are unsure how to configure LotterySix games:
https://github.com/LOOHP/LotterySix/wiki/Configuration-Recommendations

Development Builds
[​IMG]
Jenkins


Showcase Server

Want to give the plugin a try?
Code (Text):
IP: mc.loohpjames.com

[​IMG]

Commands
/lotterysix play - Opens the LotterySix GUI [lotterysix.play]
/lotterysix balance - Change the balance in any player's betting account [lotterysix.balance]
/lotterysix start - Manually start a game and schedule the draw at timestamp [lotterysix.start]
/lotterysix run - Manually start the draw of an on-going game [lotterysix.run]
/lotterysix cancel - Cancel the current game and refund all bets [lotterysix.cancel]
/lotterysix preference - Set your own player preferences [lotterysix.preference]
/lotterysix settopprizefund - Set the top 3 tier prize fund for the current game [lotterysix.settopprizefund]
/lotterysix setdrawtime - Set the draw time of the current game [lotterysix.setdrawtime]
/lotterysix setspecialname - Set a special name for the current game [lotterysix.setspecialname]
/lotterysix setcarryoverfund - Set the carry-over fund from last round to the current game [lotterysix.setcarryoverfund]
/lotterysix reload - Reload the config [lotterysix.reload]
/lotterysix update - Check for updates [lotterysix.update]

Default Config
https://github.com/LOOHP/LotterySix/blob/main/src/main/resources/config.yml

Disclaimer
Many jurisdictions have regulations against "Game of Chance" (Such as loot boxes, or lotteries) with real-world monetary value. Please make sure your server follows those relevant regulations. LotterySix is just for fun and is not responsible for how each server uses our content.

Inspired By "Mark Six 六合彩" of the Hong Kong Jockey Club
If you are wondering how it looks like IRL~~
(Language - Cantonese, Partially English)
The draw starts at 1:35




[​IMG]

Notes:
I only guarantee that the plugin works perfectly and with full features in the latest version of spigot and paper
Mainly because I am a student and my time is limited, sadly you can't live with just doing what you like, writing plugins, life just doesn't work like what we all wanted :(
Older versions are just "supported", so they might be missing a few features or hooks, but generally should work just fine.
Nevertheless, do your own testing to be sure, just like any other plugin on this forum.

Report problems on discord (recommended) or in the discussion, not in a review. Thanks :)
Resource Information
Author:
----------
Total Downloads: 5,678
First Release: Jan 23, 2023
Last Update: Dec 13, 2024
Category: ---------------
All-Time Rating:
8 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings