✨AdvancedLottery️️ [1.8-1.17] |GUI Menu|OP Lottery|Mysql|Placeholder API icon

✨AdvancedLottery️️ [1.8-1.17] |GUI Menu|OP Lottery|Mysql|Placeholder API -----

The Best and Most Featured OP, Gui Based Lottery System with Unlimited Tickets for All




  • Set shoot_fireworks_on_win to false in config.yml to disable fireworks spawned at the end of the lottery
----------, Nov 23, 2022

Added two new config parameters:
use_text_confirmation_on_buy_amount
open_confirm_menu_on_buy_amount

Plugin will use text/GUI confirmation as follows:
If player is using /lottery buy <amount>, will decide based on use_text_confirmation_on_buy _amount
open_confirm_menu_on_buy _amount]
You can only set either one to true for a consistent behavior

If player is using /lottery buy, will decide based on
use_text_confirmation_on_buy
open_confirm_menu_on_buy
You can only set either one to true for a consistent behavior
----------, Jul 26, 2022

  • Fix issue where no winner announcement continues to be displayed even when allow_broadcast has been set to false.
----------, Jul 22, 2022

Added text confirmation in addition to GUI confirmation

Set use_text_confirmation_on_buy to true to enable it. You can only use one type of confirmation at a single time.

If both open_confirm_menu_on_buy and use_text_confirmation_on_buy are set to true, then text confirmation will be chosen.

If both are set to false, there will not be any confirmations.
----------, Jul 16, 2022

  • Added 1.19 support
  • Updated libraries
----------, Jun 29, 2022

Added support for external placeholders from PlaceholderAPI. A list of supported placeholders can be found here.
You need to install PlaceholderAPI for it to work
----------, May 22, 2022

  • Now you can format the money display
  • Fixed bug where confirmation message is not sent when allow_broadcast is set to false
BungeeCord support will be out soon (in a month, hopefully)
----------, May 13, 2022

  • Updated plugin to 1.18.2
----------, Mar 16, 2022

  • Added config options for controlling the fade in, stay and fade out time for the title which is played when a winner is decided.
----------, Mar 5, 2022

  • Fixed mysql error on retrieving player statistics
----------, Oct 20, 2021

  • Updated to 1.17
  • Optimised performance for titles
----------, Sep 19, 2021

  • Fixed bug where players can add items into the GUI by using number keys
----------, Jun 18, 2021

  • Fixed performance spike when players join the server
  • Fixed bug where ticket purchase count is not updated
----------, Jun 17, 2021

  • Fixed formatting issues for new logger
----------, May 9, 2021

  • Fixed a dependency issue with vault
  • Added experimental file logging of lottery transactions
----------, May 8, 2021

  • Fixed bug with mysql library
@xLukeCZ
----------, Apr 13, 2021

  • Fixed alleged bug where the last player to place the bet is always the winner
  • Updated winner selection algorithm to be more efficient
----------, Apr 6, 2021

  • Added new command for admins to give players tickets for free!
  • Check resource page for syntax
----------, Mar 23, 2021

  • Resolved dependency conflicts regarding the XMaterial util library
----------, Feb 5, 2021

  • Fixed missing directory error for winner.dat
----------, Dec 29, 2020

  • Added %advancedlottery_winner% placeholder for PAPI. Check the main resource page for more details
  • Bug fixes for reminder command and SQL
----------, Dec 12, 2020

  • Fixed error message caused by attempt to create new data column money_won in database.
----------, Dec 8, 2020

  • Fix bug where players will be deducted money when lottery resumes even though they have paid for the ticket
  • I realised this is a really big issue that has not been rectified for quite a while. Sorry everyone :(
----------, Nov 23, 2020

  • Fixed mysql error caused by the addition of a new data column which records the total amount of money won by the player.
----------, Nov 16, 2020

  • Added new money won field to mysql
  • Total money player has won from lottery can be found by executing the /lottery stats command
  • %money_won% placeholder can be used to display it
----------, Nov 11, 2020

  • Fixed %time% placeholder for lottery pot
----------, Oct 3, 2020

  • Added Support for %line% placeholder. Only valid for reminder broadcasts
----------, Sep 16, 2020

  • Added new %time_short% placeholder which displays the time left but with shorter suffix
  • Bug fix
@SinisterPrison
----------, Sep 11, 2020

Plugin is now compatible with version 1.15. Minor bug fixes were added too.
----------, Dec 26, 2019

  • Added new entry in config open_help_menu_on_base_cmd which is set to true by default. True indicates that the lottery help menu is displayed when a player executes the /lottery base command, whereas false will display the lottery menu when players execute /lottery
----------, Nov 5, 2019

  • Added cooldown period for buying lotteries to prevent spam.
  • Change the value of buy_tickets_cooldown_in_seconds in config file to enable it.
  • A new permission (advancedlottery.cooldown.bypass) was created which allows players with this permission to bypass the cooldown.
----------, Nov 4, 2019

New permissions are created which makes customizing the max tickets more flexible

Here is the updated list of 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)
----------, Nov 3, 2019

  • By changing the new save_lottery_progress_on_stop value to true in config.yml, the plugin will automatically save a snapshot of the lottery (time left, tickets bought, money in pot) and the snapshot will be loaded on server start
  • Hence, the lottery is resumed and is not ended if the server is stopped
----------, Nov 1, 2019

  • Fixed reminder command bug
  • Apparently I posted the wrong command syntax on the main page of the resource (Sry :confused:)
  • The correct syntax are shown as follows:
    • /lottery reminder add <time> - adds a reminder that broadcasts time left until lottery draw
    • /lottery reminder remove <time> - removes a reminder that was created
I've updated the correct syntax on the resource page. Do contact me if you are still unsure
----------, Oct 31, 2019

  • The plugin is now compatible with the latest spigot version 1.14.4
  • However, do note that currently this plugin only works on java 8. I am planning to add support for java 9, 10 and 11 in the future
I'm curious about what java version do you server owners run and prefer. Please pm me if you have any opinions. The pace at which java releases new versions is too fast for me to catch up.
----------, Sep 13, 2019

  • Config will now reset properly if there is an error while parsing it
----------, Apr 3, 2019

  • Plugin is now compatible with latest minecraft version
  • Bug fixes and optimisation
Do note that plugin is backwards compatible, supporting from 1.8 onwards
----------, Feb 17, 2019

  • Seems like the spam problem still occurs, I found out that I did not build/update it properly
  • Bug fix for previous spam bug
----------, Jul 21, 2018

  • Fixed some bugs with the config folders
@HexedHero See if this fixed it
----------, Jun 17, 2018

  • Lottery reminder remove can now be used, it is similar to the add command
  • Fix pot money issues
----------, Jun 8, 2018

  • Fixed bug where config values will automatically be reset when server reload/restart
----------, Apr 28, 2018

  • Removed configuration where users can set if lottery gui should open when the help command is run.
----------, Apr 14, 2018

  • Added Log4j library as slf4j logger binder implementation for hikaricp
  • Bug fix
File size will increase a bit because of this new library
----------, Mar 24, 2018

  • Fixed bug where firework will not explode but trail until it dissapears
  • Minor API method rename
----------, Mar 1, 2018

  • Fixed dependency issues
  • Recode lottery reminder system
  • Recode lottery main system
----------, Feb 4, 2018

  • Fixed bug where reminders are repeatedly added to the list
  • Fixed /lottery reminder list
@spathizilla @xXBlazeCraftXx Sorry for any errors caused
----------, Jan 29, 2018

  • Improved command /lottery reminder list, it now also shows if the reminder has been announced
----------, Jan 26, 2018

  • Fixed command /lottery reminder list
  • Fixed issues where reminders are not saved and will be removed on reload
----------, Jan 24, 2018

  • Added new subcommand /lottery reminder list to show list of reminders
  • bug fixes
----------, Jan 21, 2018

  • Fixed bug where countdown time will reach negative numbers
  • Improved reminders which will not appear after executing /lottery settime
----------, Jan 12, 2018

  • Fixed bug for settime command
----------, Jan 11, 2018

  • Refactored and optimised code
  • Fixed some bugs relating to selecting a winner and others
----------, Jan 8, 2018

  • New commands
    • /lottery settime <time> - sets the time of the lottery
    • /lottery reminder <time> - adds a reminder time for the lottery which informs player time left
    • Example inputs for <time>: 15m/15 minutes/15min, 30s/30 seconds/30 sec, 1d/1day, 24hours/24h, 15m15s/15min15sec
  • @bjunited please check if your issue is resolved, if not , please inform me asap
  • Some paths for config listed here are not in use anymore
    • countdown-starts-from
----------, Dec 31, 2017

  • Update checker will not lag on server start now. (For low connection servers)
  • bug fix
----------, Dec 25, 2017

  • Plugin will now refund ticket money if the server shuts down or restarts. You will not need to end it manually anymore, (but you can do so if you want a winner)
  • bug fixes
----------, Dec 24, 2017

  • Fixed lottery command which causes errors when executing
  • Minor code change
----------, Dec 21, 2017

  • Minor changes in api, deprecated methods removed
  • Fireworks effect improved
  • Bug fixes
  • Reload command should have been restored (Still not stable)
----------, Dec 20, 2017

  • Added new command for mysql enabled servers (/lottery stats)
Improved and recoded command system:
  • commands can now be run on console
  • optimised the speed of processing commands

  • Fixed some mysql issues
Note: New milestones feature coming soon, where players are rewarded when buying X amount of tickets overtime (Requires db support)
----------, Dec 4, 2017

  • added %ticket% placeholder that was missing in the confirm menu after I changed lores to lists
----------, Nov 24, 2017

  • Lores in items.yml file are now saved as lists (Thus, you can add unlimited lines)
  • Your old items file will still work fine so you dont need to delete it again
----------, Nov 22, 2017

Cool Text - Update 252079916771200.png
  • Minor update - when performing /lottery buy <number> to buy tickets you will need to confirm via the confrim menu
  • Code issues fixed
----------, Nov 2, 2017

Cool Text - Update 252079916771200.png
  • players can now do /lottery buy <amount> to buy tickets where amount is the amount of tickets to be bought
  • Money spacer and symbol are not supported after this update
  • Max tickets for donors and default players are now saved in a new path called max_tickets in the config file (if there is any error, just delete your config file and stop the server)
  • Bug fixes
@remibarna
----------, Oct 22, 2017

Cool Text - Update 252079916771200.png
  • Added mysql support for the plugin, you can now keep track on player wins, tickets bought and also money spent
  • players cannot view datas for other players through the plugin (for now, I'm working on it)
  • mysql enabled is set to false in the config sections, you should turn it on if you HAVE and is experienced in using it
  • You can do anything with the data
The plugin uses connection pools to optimize mysql
----------, Oct 16, 2017

Cool Text - Update 252079916771200.png
  • There was a bug reported by @remibarna and @Dotapurex1, the confirm menu's ticket counter has some problems. I have now fixed it (hopefully, because I can't test it out without another player)
  • @remibarna and @Dotapurex1 can you guys check out if it works, if yes please reply in the discussions forum. Thanks for your support by reporting this bug!! <3
----------, Oct 4, 2017

Cool Text - Update 252079916771200.png
  • Reload command now supports every element in the config file, what the command does now is disable the plugin and reenable it later.
  • Thus, it is bug free and useful
  • Dont worry if the lottery is running, just do /lottery end before reloading, so players will not lose money :/
I finally found the solution for the reload command, hope this helps you out <3
----------, Sep 25, 2017

Cool Text - Update 252079916771200.png
  • new path in config file (open-lottery-menu)
  • if this path is set to true, when players run the /lottery command it will open the lottery menu, else if set to false, it will open the help menu
  • bug fixes
----------, Sep 20, 2017

Cool Text - Update 252079916771200.png
  • reload command improved and now functional, although so, I need to clarify that it is still unstable and can cause bugs
  • I recommend you to use it when server has no player or is offline, it will not cause any damage and it is safer if you do so
  • I hope that all buyers can co-operate with me, please report any bugs found when doing /reload, I am happy to fix it
@remibarna @Rooz @TheForest @XJue_DaDa and all
----------, Sep 11, 2017

Cool Text - Update 252079916771200.png
  • you can now configure how many seconds should the duration of the last broadcast be
  • set it to 0 if you dont want it
  • bug fix
@remibarna
----------, Sep 10, 2017

Cool Text - Update 252079916771200.png
  • You can now format money that is displayed in game
  • Use seperating symbol to set the symbol to seperate the money
  • Use spacing to set the spacing between every symbol
  • bug fix
@remibarna
----------, Sep 5, 2017

Cool Text - Update 252079916771200.png
  • API improvements - getBuyers is now deprecated, use getPlayers and getTickets to get player info
  • API now documented
  • code improvements
  • fixed bugs
----------, Sep 3, 2017

Cool Text - Update 252079916771200.png
  • added /lottery end command, lottery will start to count down after the command is executed.(You must have advancedlottery.admin to do so)
  • bug fixes
----------, Aug 24, 2017

Cool Text - Update 252079916771200.png
  • Fixed a bug where players can bypass the ticket cost
Thanks to @TheForest for reporting this bug <3
----------, Aug 23, 2017

Cool Text - Update 252079916771200.png
  • added new permission advancedlottery.donor
  • you can now specify how many tickets a donor can buy
  • fixed bug in lottery menu
@TheForest
----------, Aug 18, 2017

Cool Text - Update 252079916771200.png
  • players can now select the amount of tickets they want to buy
  • edited feature where when a player buys a ticket, their skull will only appear once
  • new confirm menu design
  • new placeholder for msg for path buy_sucess : %ticket%, it shows the amount of tickets bought in that purchase
  • fixed bug where player stats menu shows -1 for tickets purchased
  • fixed on reload error
@TheForest
----------, Aug 17, 2017

Cool Text - Update 252079916771200.png
  • Player heads in the lottery menu can now be interacted
  • it will open a menu gui where players can send message to that target player or view how many tickets he/she bought
  • Gui menu is configurable
  • bug fixes
----------, Aug 15, 2017

Cool Text - Update 252079916771200.png
  • added starting money pot(lottery will start with that amount of money)
  • bug fixes
----------, Aug 10, 2017

Cool Text - Update 252079916771200.png
  • Buy success message now has a new placeholder(%balance%)
  • It will indicate the players balance after buying the ticket, balance is formatted to 2 decimal places
----------, Aug 6, 2017

Cool Text - Update 252079916771200.png
  • Fixed problems and errors when the winner is not online
  • Bug fixes
@ScrandHD I fixed it for u :)
----------, Aug 3, 2017

Cool Text - Update 252079916771200.png
  • Players can now hover over and interact with the broadcast message to purchase tickets for themselves
  • set allow_broadcast to true to use this feature
----------, Aug 2, 2017

Cool Text - Update 252079916771200.png
  • fixed players bypassing max tickets
  • fixed announcement bugs
----------, Jul 29, 2017

Cool Text - Update 252079916771200.png
  • countdown messages are now configurable
  • you can also configure reminders
----------, Jul 28, 2017

Cool Text - Update 252079916771200.png
  • Fixed bug when clicking large chest
  • Fixed title bug
----------, Jul 28, 2017

Please note that this plugin's name has been changed to AdvancedLottery
Cool Text - Update 252079916771200.png
  • added /reload command
  • menu gui titles are now configurable
  • time formats are now configurable
@XJue_DaDa @Dual_Shock221 please delete folder Lottery, the new folder AdvancedLottery will be created
----------, Jul 27, 2017

Cool Text - Update 252079916771200.png
  • new update comes with a new file(items.yml)
  • You can now change item's name, lores and material type
  • bug fixes
----------, Jul 23, 2017

Cool Text - Update 252079916771200.png
  • Title will be played to every player when winners are chosen
  • You can configure if the title should be displayed
  • Title messages are configurable
  • Bug fix
----------, Jul 21, 2017

Cool Text - Update 252079916771200.png
  • Fixed bugs
----------, Jul 20, 2017

Resource Information
Author:
----------
Total Downloads: 337
First Release: Jul 17, 2017
Last Update: Nov 23, 2022
Category: ---------------
All-Time Rating:
26 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings