◦•●❤♡ ᴄᴏɴᴛᴀᴄᴛ Dekomori on discord ꜰᴏʀ ꜱᴜᴘᴘᴏʀᴛ ♡❤●•◦
Native Minecraft Version: 1.18
Tested Minecraft Versions: 1.8 / 1.9 / 1.10 / 1.11 / 1.12 / 1.13 / 1.14 / 1.15 / 1.16 / 1.17 / 1.18
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
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
hundred (with chat broadcast demo, the text is actually clickable)
How about a thousand tickets???!! (Player stats menu demo)
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!
Documentation and Config
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
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)
Native Minecraft Version: 1.18
Tested Minecraft Versions: 1.8 / 1.9 / 1.10 / 1.11 / 1.12 / 1.13 / 1.14 / 1.15 / 1.16 / 1.17 / 1.18

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
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

hundred (with chat broadcast demo, the text is actually clickable)

How about a thousand tickets???!! (Player stats menu demo)

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!

Documentation and Config
YAML:
# Lottery version: 9.7
# Configuration file: change desired values here, kindly pm me on spigot if you have questions @Ean224
check_for_updates: true
count_down_time: 60
buy_price: 1000
max_ticket:
default: 1
donor: 1
allow_broadcast: true
play_out_title_when_win: true
sounds:
anvil_cancel_sound: true
player_win_sound: true
starting_money_in_pot: 0
time:
seconds: seconds
minutes: minutes
hours: hours
days: days
seconds_short: s
minutes_short: m
hours_short: h
days_short: d
gui_name:
help_gui_name: '&1&lLottery HELP MENU'
menu_gui_name: '&b&lLottery-%number%'
confirm_gui_name: '&1&lARE YOU SURE'
player_gui_name: '&1&lPlayer Stats'
mysql:
enabled: false
ip: 0.0.0.0
port: 3306
username: root
password: password
database-name: lotterydb
stats_message:
- '&aStats for %player%:'
- '&7Wins: &e%wins%'
- '&7Tickets Bought: &e%tickets%'
- '&7Money Spent: &e%money%'
save_lottery_progress_on_stop: false
buy_tickets_cooldown_in_seconds: 0
open_help_menu_on_base_cmd: true
lottery_tax_in_percentage: 0
open_confirm_menu_on_buy: true
YAML:
lottery_win: '&5Congrats to &e%player% &5for winning &c$%money%'
buy_sucess: '&6Congrats, you have successfully bought %ticket% ticket for &2$%money%,
&6you now have &2$%balance%'
not_enough_money: '&4You do not have enough money!'
already_bought: '&4You have already bought the maximum number of tickets'
wrong_usage: '&cWrong usage: do &e/lottery help &cfor help!'
time_to_draw: '&bTime to draw is &e%time%'
broadcast_no_winner: '&2There were no winners!'
broadcast_buyer: '&d%player% has just bought %ticket% lottery ticket(s)!'
winner_title_message: '&b&l%player% &ewon the lottery!'
winner_subtitle_message: '&dWith an amount of &6$%money%'
not_enough_permissions: '&4You have insufficient permissions!'
lottery_reminder: '&dTime left to draw is less than %time%!'
lottery_countdown: '&dThe lottery will be drawn in &e%time% &dseconds'
hover_chat_msg: '&bClick me to buy a ticket'
click_me_text: '&b&l[Click Me]'
click_me_hover_text: '&7Click me to send a message to %player%'
too_many_tickets: '&c&lOOPS! &7You cannot buy that much of tickets'
mysql_not_supported: '&4Mysql is not supported!'
retrieving_data: '&aRetrieving data for player %player%...'
player_not_found: '&cThat player cannot be found'
ticket_money_refunded: '&aDue to server closing, players who bought tickets have been
refunded!'
buy_ticket_cooldown: '&c[Cooldown] &7Please wait for another &e%time% &7seconds!'
player_not_online: '&cCan''t send message. &e%player% &cis not online.'
Code:
# Lottery items configuration file - this file will load the items in guis
# Warning: if any errors are detected, this file will automatically reset to default
time_preview:
name: '&d&lTIME TO DRAW'
lore:
- '&7Time left until next draw is &2%time%'
material: WATCH
money_pot:
name: '&e&lMONEY IN POT'
lore:
- '&7There are currently &b$%money% &7in the pot'
material: BUCKET
help_menu:
instructions_name: '&e&lInstructions'
instructions_lore:
- '&7This page shows instructions for lottery'
instructions_material: BOOK_AND_QUILL
help_tutorial_name: '&e&lPrize'
help_tutorial_lore:
- '&7Only one player will be selected as the winner'
- '&7That player would win the total amount of money in pot'
help_tutorial_material: EMERALD
command_intro_name: '&1&lCOMMANDS'
command_intro_lore:
- '&a/lottery -&2 main command'
- '&a/lottery help -&2 shows help menu'
- '&a/lottery menu -&2 opens the menu gui'
- '&a/lottery time -&2 shows countdown time left to draw'
- '&a/lottery buy -&2 buys a ticket'
- '&a/lottery stats <player> -&2 shows stats (Player is optional)'
command_intro_material: BOOK
background_material:
- YELLOW_STAINED_GLASS_PANE
lottery_menu:
next_page_name: '&d&lNext Page'
next_page_lore:
- '&7View the next page of listings'
next_page_material: ARROW
previous_page_name: '&d&lPrevious Page'
previous_page_lore:
- '&7View the previous page of listings'
previous_page_material: ARROW
buy_ticket_name: '&b&lBUY A TICKET'
buy_ticket_lore:
- '&7Click me to buy a ticket'
buy_ticket_material: COMPASS
menu_pane_material:
- GREEN_STAINED_GLASS_PANE
player_head_name: '&a&l%player%'
player_head_lore:
- '&7Tickets bought: %tickets%'
- '&7Click for more info'
confirm_menu:
confirm_info_name: '&6&lCONFIRM PURCHASE'
confirm_info_lore:
- '&7Click to confirm purchase of one ticket'
confirm_info_material: BOOK
confirm_block_name: '&a&lCONFIRM'
confirm_block_material: EMERALD_BLOCK
cancel_block_name: '&c&lCANCEL'
cancel_block_material: REDSTONE_BLOCK
ticket_amount_name: '&e&l%ticket% &bticket(s) to be bought'
ticket_amount_lore:
- '&7buy &e%ticket% &7ticket(s) for &e$%money%'
ticket_amount_material: PAPER
add_ticket_name: '&a&lAdd'
add_ticket_lore:
- '&7Add a ticket to be purchased'
add_ticket_material: ARROW
minus_ticket_name: '&c&lMinus'
minus_ticket_lore:
- '&7Minus a ticket to be purchased'
minus_ticket_material: ARROW
player_stats_menu:
send_message_name: '&6&lSend a message'
send_message_material: PAPER
send_message_lore: '&7Send a message to &e%player%'
tickets_bought_name: '&1&lTickets Bought'
tickets_bought_material: EMERALD
tickets_bought_lore:
- '&7%player% has bought %ticket% ticket(s)'
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
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)