BowLotteries v1.4.9

Looking for a simple, easy to use and fun lotteries plugin? Look no further!

  1. longbow122
    Native Minecraft Version:
    Legacy (< 1.13)
    Tested Minecraft Versions:
    • 1.7
    • 1.8
    • 1.9
    • 1.10
    • 1.11
    • 1.12
    • 1.13
    • 1.14
    • 1.15
    • 1.16
    • 1.17
    Contributors:
    SofiLopi, pmme, wsman217, Ryder
    WARNING: This plugin is recommended for 18+ servers due to the fact that gambling can be addictive. When the fun stops, stop.


    Looking for a simple to use, fun lottery plugin? Look no further!

    This plugin has multiple features to customize the quality of your lottery game!

    [​IMG]

    [​IMG]

    [​IMG]

    [​IMG]

    [​IMG]

    [​IMG]
    • Customize every single message
    • Change the time at which a lottery runs
    • Change the price of a single ticket
    • Change the maximum amount of the tickets a player can buy
    • Increase the pressure with PAPI-based timers!
    • And more to come!
    Installation:
    Unsure on how to install this plugin? Take a look here!
    1. Stop your server
    2. Drag the plugin .jar into your "plugins" folder
    3. Start your server
    4. Enjoy!
    If you wish to customize this plugin further, I recommend stopping the server again, making the changes you feel, and starting up again. Otherwise, this plugin is ready to go straight out of the box!

    Commands:
    /lotto bet <amount> - Lets a player buy a certain amount of tickets for the lottery.
    /lotto help - Displays the lottery help menu
    /lotto bets - Displays who currently has a bet placed on the lottery
    /lotto info - Displays in-detail information on the lottery
    /lotto forcestart - Forcefully starts a lottery
    /lotto reload - Reloads the main configuration file and forcefully starts a lottery.

    Placeholders:
    Please note that these placeholders do not work everywhere. The configuration file will show you where you are able to use certain placeholders.
    %player% = The name of the player
    %bet% = The amount a player has bet in the lottery
    %ticketAmount% = The number of tickets a player has bought
    %pool% = The amount of lottery currently up for grabs
    %TicketPrice% = Gives you the minimum price for a ticket
    %limit% = Gives you the minimum amount of tickets a player can buy
    %timeLeft% = The time left in a formatted string
    %currentBets% = The current bets in the lottery

    PlaceholderAPI:
    Here is a list of all currently available PlaceholderAPI placeholders. There is no need for an expansion as PAPI compatibility is already built-in.
    %bl_timeLeft% = Shows you the time left in the lottery in a formatted string.
    %bl_lastWinner% = Shows you the name of the player who won the last lottery. If nobody has previously won a lottery, the string will appear empty.
    %bl_pool% = Shows you the total bet amount currently up for grabs in the lottery.
    %bl_timeLeft_short% = Shows you the time left in the lottery in a shortened formatted string.

    Permissions:
    bl.use = Lets you use all user commands in BowLotteries
    bl.admin = Gives you access to admin commands in BowLotteries

    Versions:
    Due to the nature of this plugin, it should work across all server versions. If you find errors in this plugin due to the server version, please report the bug and I will be happy to look into it.

    Support:
    Looking for support? Join my discord server for support and to have some fun with the rest of the owners who use my plugins! Feel free to come and join the discord if you have any questions!
    [​IMG]

    Dependencies:
    Vault
    PlaceholderAPI
    You will also require an economy plugin that hooks into Vault.

    Configuration:
    This plugin offers quite a lot of configuration! Take a look at the current config here:​
    Code (YAML):
    #The message prefix for the plugin.
    prefix
    : '&7[&bBowLotteries&7] '

    #This is the message that will display when a player does not have the needed permissions to run a command.
    noPerms
    : '&c&LSorry! &cIt seems like you do not have the right permissions to do this. If you believe that this is in error, please contact an administrator.'

    # Should players be able to bet on a lottery multiple times?
    # true = yes
    # false = no
    multiBet
    : false

    #This is the message that will display when a player bets but already has an existing bet placed.
    hasBet
    : '&c&LSorry! &cYou cannot bet on a lottery you have already bet on. Please wait until the lottery is over to bet again!'

    #This is the message format for the /lotto bets messages.
    # %player% = The name of the player in question
    # %bet% = The current bet of that player
    lottoBetsFormat
    : '&6&L%player% &7with a bet of &6&L$%bet%'

    #This is the message that will send to the player after all the bets have been displayed.
    lottoBetsEndMessage
    : '&6Why not make a bet of your own? /lotto bet <amount>'

    #Should bets be publically broadcast to the whole server?
    # true = Yes
    # false = No
    betBroadcastCheck
    : true

    #This is the message that will display to the entire server when a player has successfully made a bet.
    # %player% = The name of the player who made the bet
    # %bet% = The amount the player had bet in $
    # %ticketAmount% = The amount of tickets the player bought
    betBroadcast
    : '&6&L%player% &6has successfully bet &6&L$%bet% on the lottery! Why not do the same with /lotto bet %ticketAmount%!'

    # This is the message that will display to the entire server when a player has successfully made a multi bet.
    # %player% = The name of the player who made the bet
    # %bet% = The amount the player had added to their bet
    # %totalBet% = The total amount of money the player had added to their bet
    # %ticketAmount% = The amount of tickets that the player has bought
    multiBetBroadcast
    : '&6&L%player%&6 has successfully bet &6&L%bet%&6 on the lottery! They have now increased their bet up to &6&L%totalBet%'

    #This is the amount of time IN SECONDS a lottery will last. Once this time has expired, the lotto will select a winner and give them the pooled prize.
    lottoTime
    : 3600

    #This is the price of one singular lotto ticket.
    lottoPrice
    : 1000

    #This is the maximum amount of tickets one player can buy. NOTE: IF YOU WANT A FAIR PERCENTAGE, IT SHOULD REALLY STAY AT 100
    maxTickets
    : 100

    #This is the message that will display when a player has successfully made a bet.
    # %bet% = Gives you the bet the player made.
    betSuccess
    : '&6You have successfully bet &6&L$%bet%&6 on the lottery!'

    # This is the message that will display when a player has successfully made a bet, but they have also previously betted on the lottery
    # %newBet% = The new bet amount they had just made.
    # %totalBet% = The TOTAL amount that they have now just bet.
    multiBetSuccess
    : '&6You have successfully bet &6&L%newBet%&6 on the lottery, bringing your total bet to %totalBet%.'

    #This is the message that will display when a player attempts to purchase more than the ticket limit.
    # %limit% = Gives you the maximum amount of tickets a player can buy.
    tooManyTickets
    : '&c&LSorry! &cYou cannot buy more than %limit% tickets. Please try /lotto bet <amount> again!'

    #This is the message that will display when a player does not have enough money to make a bet.
    # %TicketPrice% = Gives you the minimum ticket price to make a bet
    noMoney
    : '&c&LSorry! &cYou do not have enough money to make a bet! The minimum ticket price is $%TicketPrice%.'

    #This is the message that will display when a winner is selected after the lottery is over.
    # %winnings% = The amount of money that the player has won in the current lottery
    winnerMessage
    : '&6&L%player% has just won the lottery! They have won $%winnings%!'

    # This is the message that will privately send to an online player if they are the only one who is participating in the lottery.
    # %bet% = The amount of money the player put into the lottery.
    loneBet
    : '&6You have been given back $%bet% due to the fact that you were the only player taking part in the lottery!'

    #This is the message that will display when there is no winner of a lottery due to the fact that nobody bet on the lotto or that there was only one winner.
    lottoFail
    : '&c&LThe lottery was cancelled due to there being not enough players! Better luck next time!'

    #Should lotto timer announcements be broadcasted?
    #  true = yes
    #  false = no
    lottoAnnounce
    : true

    #If lottoAnnounce is true, these are the messages that will broadcast to the entire server at a certain time before the winners are announced.
    # %pool% = The amount of money in the total lottery pool
    # %betters% = The amount of players currently entered in the lottery
    lottoTimers
    :

      # This message will be broadcasted to the entire server one minute before the lottery winner is announced.
      minuteLeft
    : '&6&L1 minute left until the lottery is over! There is currently $%pool% with %betters% playing! Bet now!'
     
      # This message will be broadcasted to the entire server 30 seconds before the lottery winner is announced.
      thirtySecs
    : '&6&L30 seconds left until the lottery is over! There is currently $%pool% with %betters% playing! Bet now!'
     
      # This message will be broadcasted to the entire server 5 seconds before the lottery winner is announced.
      fiveSecs
    : '&6&L5 seconds left until the lottery is over! There is currently $%pool% with %betters% playing! Bet now!'
     
      # This message will be broadcasted to the entire server 4 seconds before the lottery winner is announced.
      fourSecs
    : '&6&L4 seconds left until the lottery is over! There is currently $%pool% with %betters% playing! Bet now!'
     
      # This message will be broadcasted to the entire server 3 seconds before the lottery winner is announced.
      threeSecs
    : '&6&L3 seconds left until the lottery is over! There is currently $%pool% with %betters% playing! Bet now!'
     
      # This message will be broadcasted to the entire server 2 seconds before the lottery winner is announced.
      twoSecs
    : '&6&L2 seconds left until the lottery is over! There is currently $%pool% with %betters% playing! Bet now!'
     
      # This message will be broadcasted to the entire server 1 second before the lottery winner is announced.
      oneSec
    : '&6&L1 second left until the lottery is over! There is currently $%pool% with %betters% playing! Bet now!'
     
    #Should a message display when the lottery has started?
    # true = yes
    # false = no
    lottoStart
    : true

    # If lottoStart is TRUE, this is the message that will be shown to the entire server once the lottery has started.
    # In this case, that would be straight after the winner has been announced.
    # There are no placeholders used here, as there is not much you can use in the way of placeholders.
    startMessage
    : 'The lottery has started! Bet now using /lotto bet (ticketAmount)'
     
    #These are the messages that will display when /lotto info is run.
    #Please note that a lottery will ALWAYS be running as it will automatically restart and open bets.
    # %timeLeft% = The time left in a formatted string.
    # %currentBets% = The current amount of bets remaining.
    # %pool% = The amount of money currently in the lottery pool up for grabs
    lottoInfo
    :
      - '&6Lotto Status
    : &a&LRUNNING'
      - '&6Lotto Time left
    : &a%timeLeft%'
      - '&6Current Bets
    : &a%currentBets%'
      - '&6Current Lotto Pool
    : &a$%pool%'
     
    #The messages that will display when an admin runs /lotto help.
    adminHelpMenu
    :
     - '&6&L========= BowLotteries Help ========='
      - '&6/lotto bet <amount> &7- Buy a certain amount of tickets for the lottery. The more tickets you buy, the higher chance you have of winning. Each ticket costs $1000.'
      - '&6/lotto help &7- Displays this help menu.'
      - '&6/lotto bets &7- Displays who currently has stakes in the lottery.'
      - '&6/lotto info &7- Shows the current status of the lotto and shows you how long left until a winner is drawn.'
      - '&6/lotto forcestart &7- Forcefully starts a lottery.'
      - '&6/lotto reload &7- Forcefully starts a lottery and reloads the main configuration file.'

    #The messages that will display when /lotto or /lotto help is run.
    helpMenu
    :
     - '&6&L========= BowLotteries Help ========='
      - '&6/lotto bet <amount> &7- Buy a certain amount of tickets for the lottery. The more tickets you buy, the higher chance you have of winning. Each ticket costs $1000.'
      - '&6/lotto help &7- Displays this help menu.'
      - '&6/lotto bets &7- Displays who currently has stakes in the lottery.'
      - '&6/lotto info &7- Shows the current status of the lotto and shows you how long left until a winner is drawn.'
     
    # These are the messages that will be sent to the player when they run a command.
    # It's worth noting that you wouldn't normally need to change these, but this was implemented at request
    # %ticketPrice% = The price of a ticket for the lottery
    # %maxTicket% = The maximum amount of tickets you can buy in the lottery
    # %arg% = The argument that the player entered. (CAN ONLY BE USED IN SOME MESSAGES, BE CAREFUL!)
    command
    :
      wrongBet
    : '&6Make a bet using /lotto bet <amount>! Enter the number of tickets you wish to buy in <amount>. Each ticket costs $%ticketPrice%, you are able to buy a maximum of %maxTicket% tickets.'
      cantBuyZeroTickets
    : '&c&LSorry! &cYou cannot buy 0 tickets.'
      canOnlyRunAsPlayer
    : '&c&LSorry! &cThat command can only be run as a player.'
      #notANumber is also the message sent when a player enters a number that is too large. This would be a number over the long limit.
      notANumber
    : '&c&LSorry! &c%arg% is not a valid number.'
      lottoForceStart
    : '&c&LLottery successfully forcefully started!'
      oddCommand
    : '&c&LSorry! &cBowLotteries didn''t catch that command. Try /lotto!'

    Reviews:
    Feedback and suggestions are welcomed! Feel free to leave suggestions in the reviews section too! I'm a new developer, so please do leave me as much feedback as you can! If you enjoy and like this plugin, please leave me a good review! The more reviews I get, the more I will be able to learn on how I should improve my plugin! However, do not leave bug reports in the reviews section with "I will change to 5 stars if you fix!" as you will go unanswered. You can PM me through Spigot, or DM me on Discord. (Discord ensures a faster response!)

    Suggestions:
    Any and all suggestions are welcome, and will be considered! You can PM me through Spigot, or DM me on Discord. If none of those options float your boat, I have a discord! Feel free to join and shoot me a suggestion there! Join here.
    I strongly recommend checking this resource page monthly at a MINIMUM. Keeping your plugins updated is a good habit for any server owner out there. If you wish, feel free to ask me and I will be able to give you an estimate on the next update for this plugin.

Recent Updates

  1. Multi-bet bug fix
  2. Multi-bet fixes
  3. Multi-bet update

Recent Reviews

  1. Sythehh
    Sythehh
    5/5,
    Version: v1.2.2
    The plugin is awesome and works for almost everything I needed. For the things I wanted, I hopped on the discord and spoke to the Dev about adding some features, which he did within the hour! Awesome support, and awesome plugin!
    1. longbow122
      Author's Response
      Thanks for the great review! I'm glad you like my work!
  2. CloudPast
    CloudPast
    5/5,
    Version: v1.0.0
    Hello author, I like your plugin very much, I also intend to reprint it to www.mcbbs.net, reprinted to people in different languages, they will love your plugin, all downloads or authors and original posts will indicate Is yours.