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