Native Minecraft Version:1.19Tested Minecraft Versions:
-----------------------------------------------------------------------------
NOTE: This project is officially abandoned: https://www.spigotmc.org/threads/ad...ets-mysql-support.257310/page-17#post-4614081
-----------------------------------------------------------------------------
Preface
Need a lottery plugin for your network? (PVP, skyblock, prison, factions, town, survival) Haven't found the best one yet? This lottery plugin will provide all the features you need.
It features GUI menus, Mysql saving data (with connection pools), chat broadcasting, unlimited tickets, win system, titles, animations and more. Heres some reasons why you should buy this plugin:
Confirm menu demo with ten tickets
Spoiler: 10 tickets
hundred (with chat broadcast demo, the text is actually clickable)
Spoiler: 100 tickets
How about a thousand tickets???!! (Player stats menu demo)
Spoiler: 1000 tickets
Endless amount of tickets and easy self-explained GUI menus(Not to say help menus are provided too!)
NOTE: The plugin does not support reloading from versions 4.1 onwards
Heres what you get when you win!
Vouches
Documentation and Config
Spoiler: config.yml
Spoiler: messages.yml
Spoiler: items.yml
Spoiler: More Pictures
Placeholders
%money% - Displays the total cost of the tickets to be purchased or the total money in the lottery pot
%player% - Displays the name of the player
%time% - Displays the time left until the lottery is drawn
%time_short% - Same as %time% but with shortened time suffix
%balance% - Player money balance
%ticket% - The amount of tickets to be bought
%line% - Newline
PlaceholderAPI
The following are placeholders that can be used with PlaceholderAPI:
%advancedlottery_time% - Time left till draw
%advancedlottery_time_short% - Time left till draw with shortened suffix
%advancedlottery_tickets% - Number of tickets bought for the player
%advancedlottery_money% - The amount of money in the lottery pot
%advancedlottery_winner% - The winner of the last lottery draw, displays None if not available
If there is any placeholders for this plugin which you wish to use but is not supported, do pm me on discord or spigot and I will consider adding it.
Commands
Normal commands:
• /lottery - main command
• /lottery menu - opens the menu gui
• /lottery help - opens the help gui
• /lottery time - tells the time left until draw
• /lottery buy - buy a lottery ticket
• /lottery stats <player> - shows stats (Player is optional)
Admin commands:
• /lottery reload - reloads the plugin configuration files
• /lottery end - ends the lottery and select a winner
• /lottery settime <time> - sets the time for the lottery
Example:
/lottery settime 1d - sets lottery countdown timer to 1 day
/lottery settime 1min - sets lottery countdown timer to 1 minute
Time suffix that can be used are d/day/h/hour/m/minutes/min/s/sec/second. This applies for the lottery reminder command too.
• /lottery reminder add <time> - adds a reminder that broadcasts time left until lottery draw
Example:
/lottery reminder add 1d - adds a reminder when the time left to draw is 1 day
/lottery reminder add 1min - adds a reminder when the time left to draw is 1 minute
• /lottery reminder remove <time> - removes a reminder that was created
• /lottery addpot <amount> - Adds <amount> of money into the pot
• /lottery addtickets <player> <amount> - Gives <player> <amount> of free tickets
Note
Tax is charged on payout and will only be charged if > 1 players participate in the lottery.
How do I specify the money format?
Simply construct your desired format using the four characters below.
Code (Text):
money_display_format: "#,###"
The seperator pattern is repeated.
Example: Displaying $2,000,000
Code (Text):
money_display_format: "#,###"
Note that the Integer part will never be truncated. Only one # is sufficient.
Example: Displaying: $6969
Code (Text):
money_display_format: "#"
Permissions
advancedlottery.use - Access to user commands (buy, menu, time, etc). Allows player to buy number of tickets specified in config for default
advancedlottery.donor - Allows player to buy number of tickets specified in config for donor
advancedlottery.maxtickets.x - Allows a player to buy a maximum of x amounts of tickets (Donor perk)
advancedlottery.admin - Access to admin commands (settime, reminder etc)
advancedlottery.cooldown.bypass - Allows player to bypass cooldown period when buying tickets
Dependencies
vault (latest will be the best)
spigot (1.8 and above)
MySQL (optional)
Placeholder API (optional)
- 1.8
- 1.9
- 1.10
- 1.11
- 1.12
- 1.13
- 1.14
- 1.15
- 1.16
- 1.17
- 1.18
-----------------------------------------------------------------------------
NOTE: This project is officially abandoned: https://www.spigotmc.org/threads/ad...ets-mysql-support.257310/page-17#post-4614081
-----------------------------------------------------------------------------
Preface
Need a lottery plugin for your network? (PVP, skyblock, prison, factions, town, survival) Haven't found the best one yet? This lottery plugin will provide all the features you need.
It features GUI menus, Mysql saving data (with connection pools), chat broadcasting, unlimited tickets, win system, titles, animations and more. Heres some reasons why you should buy this plugin:
Confirm menu demo with ten tickets
Spoiler: 10 tickets
hundred (with chat broadcast demo, the text is actually clickable)
Spoiler: 100 tickets
How about a thousand tickets???!! (Player stats menu demo)
Spoiler: 1000 tickets
Endless amount of tickets and easy self-explained GUI menus(Not to say help menus are provided too!)
NOTE: The plugin does not support reloading from versions 4.1 onwards
Heres what you get when you win!
Vouches
Documentation and Config
Spoiler: config.yml
Spoiler: messages.yml
Spoiler: items.yml
Spoiler: More Pictures
Placeholders
%money% - Displays the total cost of the tickets to be purchased or the total money in the lottery pot
%player% - Displays the name of the player
%time% - Displays the time left until the lottery is drawn
%time_short% - Same as %time% but with shortened time suffix
%balance% - Player money balance
%ticket% - The amount of tickets to be bought
%line% - Newline
PlaceholderAPI
The following are placeholders that can be used with PlaceholderAPI:
%advancedlottery_time% - Time left till draw
%advancedlottery_time_short% - Time left till draw with shortened suffix
%advancedlottery_tickets% - Number of tickets bought for the player
%advancedlottery_money% - The amount of money in the lottery pot
%advancedlottery_winner% - The winner of the last lottery draw, displays None if not available
If there is any placeholders for this plugin which you wish to use but is not supported, do pm me on discord or spigot and I will consider adding it.
Commands
Normal commands:
• /lottery - main command
• /lottery menu - opens the menu gui
• /lottery help - opens the help gui
• /lottery time - tells the time left until draw
• /lottery buy - buy a lottery ticket
• /lottery stats <player> - shows stats (Player is optional)
Admin commands:
• /lottery reload - reloads the plugin configuration files
• /lottery end - ends the lottery and select a winner
• /lottery settime <time> - sets the time for the lottery
Example:
/lottery settime 1d - sets lottery countdown timer to 1 day
/lottery settime 1min - sets lottery countdown timer to 1 minute
Time suffix that can be used are d/day/h/hour/m/minutes/min/s/sec/second. This applies for the lottery reminder command too.
• /lottery reminder add <time> - adds a reminder that broadcasts time left until lottery draw
Example:
/lottery reminder add 1d - adds a reminder when the time left to draw is 1 day
/lottery reminder add 1min - adds a reminder when the time left to draw is 1 minute
• /lottery reminder remove <time> - removes a reminder that was created
• /lottery addpot <amount> - Adds <amount> of money into the pot
• /lottery addtickets <player> <amount> - Gives <player> <amount> of free tickets
Note
Tax is charged on payout and will only be charged if > 1 players participate in the lottery.
How do I specify the money format?
Simply construct your desired format using the four characters below.
- 0 – prints a digit if provided, 0 otherwise
- # – prints a digit if provided, nothing otherwise
- . – indicate where to put the decimal separator
- , – indicate where to put the grouping separator
Code (Text):
money_display_format: "#,###"
The seperator pattern is repeated.
Example: Displaying $2,000,000
Code (Text):
money_display_format: "#,###"
Note that the Integer part will never be truncated. Only one # is sufficient.
Example: Displaying: $6969
Code (Text):
money_display_format: "#"
Permissions
advancedlottery.use - Access to user commands (buy, menu, time, etc). Allows player to buy number of tickets specified in config for default
advancedlottery.donor - Allows player to buy number of tickets specified in config for donor
advancedlottery.maxtickets.x - Allows a player to buy a maximum of x amounts of tickets (Donor perk)
advancedlottery.admin - Access to admin commands (settime, reminder etc)
advancedlottery.cooldown.bypass - Allows player to bypass cooldown period when buying tickets
Dependencies
vault (latest will be the best)
spigot (1.8 and above)
MySQL (optional)
Placeholder API (optional)