LotteryPool - REBORN - WINNER TAKES ALL! [1.8 - 1.13] 1.1.4 - REBORN

An extremely efficient way of economic balancing, allowing poorer players to have a chance to earn.

  1. Astero
    Native Minecraft Version:
    1.13
    Tested Minecraft Versions:
    • 1.8
    • 1.9
    • 1.10
    • 1.11
    • 1.12
    • 1.13
    Contributors:
    V3thos(Astero)

    [​IMG]
    Lottery Pool allows you to better manage your server economy by allowing players to take in lotteries that are automatically made every (configurable) minutes.

    I appreciate everyone for all the downloads but I'll be taking this plugin to premium. The free version will no longer have any updates, only the premium plugin will actively have updates and support.
    (Plugin support for Spigot 1.14 will be only for premium)



    Features
    • Have a server restart? We have a system made so your current lottery session won't be lost!
    • Multiple tickets setting (default is 1 and it's recommended to balance the economy)
    • Set your own lottery session interval and duration.
    • Fully configurable
    This plugin support versions below 1.13! To make it work w/o errors, (it shouldn't even crash your server, I have made a system where it doesn't crash your server if it's a lower version) please disable bossbar in the config.yml. - then it should work flawlessly on any versions!

    Dependencies
    • Any economy plugin.​

    Players are notified via chat and/ or the creation a boss bar whenever a lottery is in-progress.
    [​IMG]
    (Initial boss bar message when the lottery session has just begun)

    [​IMG]
    (As the lottery session progresses)

    [​IMG]
    (Boss bar turns red after a (configured) amount of time is left on the clock.)



    Players are then given the choice to participate via a custom and very interactive graphical user interface (GUI). Administrators that has root access to the server are able to set a default ticket price/tax/amount of tickets purchasable per player which when the player buys, it uses a intelligent system to add the amount to the lottery pool.
    [​IMG]



    Players are able to access a GUI to see the participants of the current lottery-session and also how many tickets each participants has to gauge their winning chances.
    [​IMG]



    After the configured lottery duration, a random winner (EVEN IF THE PLAYER IS OFFLINE, HE/SHE CAN WIN, the money will be deposited into their account.) will be selected. - More tickets = more chances, of course.

    [​IMG]

    (A very good way of making your players use their money, allowing the poorer players to gain some fast cash too whilst doing their chores, they can wait on the lottery results. - if you make only 1 ticket is purchasable per player.)

    Extra countermeasures are also taken to ensure that once a player has maxed out their participation in a lottery session, they cannot participate again. Also, when there is no current on-going lotteries, the player too cannot participate.



    [​IMG]

    [​IMG]
    Time duration & time till the next lottery is also shown in the graphical user interface.


    Hooray, the reborn version is out now, what's new!?
    Well, we have several new things, but it's best for you to check it out yourself!
    • A revamped Lottery Session system. - overall optimized plugin
    • A smart page system now added to the view players.
    • Plugin is fully optimized now.
    • You can basically customize anything now, from names, to lores, to slot numbers, to sizes and more!
    • Lottery participants on boss bar now updates in real-time when a new player participates.
    • We use a smart system now to detect things like material/sound names to be up to date with the current server's version and prompt the owner via server console instead of crashing wholly.
    • Multiple tickets now! - Player GUI shows the amount of tickets each players has now too.
    [​IMG]


    Also, I have changed some of the settings in config.yml but have tried to stay mostly similar to the old one. The only change you need to watch out for is in the gui section, I have inputted some new sections to make it work better.


    Commands
    /lotterypool - alias: /lpl, /lottery - opens the main GUI for lottery pool.
    Permission Node: default for all players.

    /lotterypool purchase - opens the lottery pool purchase GUI.
    Permission Node: default for all players.

    /lotterypool players - opens the lottery pool players GUI.
    Permission Node: default for all players.

    ADMIN COMMANDS:

    (alias - /lotterya & /lpla)

    /lotterypoola reload - reloads the plugin. - restarting the server is still best.
    Permission Node: lotterypool.admin

    /lotterypoola (add/set/remove)pool - sets/adds/removes money from/to the total pool.
    Permission Node: lotterypool.admin



    Click here for the WIKI (WIP)



    Once downloaded, you agree to these terms -
    1.
    You may not distribute the code of the plugin.
    2. You may not make any changes to the plugin's code and publish it again, then calling it your own.


    Found a bug? Please private-message me or join the support Discord server. Please do not put it in the reviews section as reviews are not for bugs.

    I'd love to check out your servers that are using my plugins. Drop me a private-message and I might feature your server here too if you're using any of my plugins.

    (Proudly sponsored by TorchNode)
    [​IMG] (Click on the image for a redirect.)

    Join my support Discord channel here - https://discord.gg/yVGtWyr





    [​IMG]
    (https://www.astero.me/)
    (TEST SERVER: 88.99.91.195:25944)
    GFX will be updated soon.

    Now, the .jar version should work for all Minecraft versions. it is not needed to download another .jar for versions below 1.12.

    Configuration sample for versions below 1.12,
    https://pastebin.com/XAXdYpBw


    Lottery Pool allows you to better manage your server economy by allowing players to take in lotteries that are automatically made every (configurable) minutes.
    Dependencies
    • VAULT
    • Any economy plugin.



    How does it work?
    Players are notified via chat and/ or the creation a boss bar whenever a lottery is in-progress.
    [​IMG]
    (Boss bar turns red after a (configured) amount of time is left on the clock.)

    Players are then given the choice to participate via a custom and very interactive graphical user interface (GUI). Administrators that has root access to the server are able to set a fixed amount of lottery price which when the player buys, it uses a intelligent system to add the amount to the lottery pool.
    [​IMG]

    Players are able to check who is currently participating in the current lottery by accessing the players' list menu.

    [​IMG]
    [​IMG]


    The lottery will end after the configured duration, and a random winner is selected. The winner takes all - he/she takes all that is in the lottery pool.
    (A very good way of making your players use their money, allowing the poorer players to gain some fast cash too whilst doing their chores, they can wait on the lottery results.)
    [​IMG]


    Extra countermeasures are also taken to ensure that once a player is participated in a lottery, they cannot participate again. Also, when there is no current on-going lotteries, the player too cannot participate.
    Time duration & time till the next lottery is also shown in the graphical user interface.
    [​IMG]

    [​IMG]

    [​IMG]

    [​IMG]

    Commands

    /lpl - opens the lottery pool GUI.
    (User default permission)


    Secondary commands:
    (These are accessible through the main menu, /lp.)
    /lpl pool - opens the pool amount GUI.
    (User default permission)

    /lpl player - opens the players GUI
    (User default permission)

    Administrative commands:
    (These commands are only accessible if the right permissions are given to a rank/player)

    /lpl admin addpool - adds an amount to the current lottery pool.
    (lp.admin)

    /lpl admin removepool - removes an amount to the current lottery pool.
    (lp.admin)

    /lpl admin forcestart - forces a lottery to be started.
    - might cause some issues with the boss bar for subsequent lotteries until server restart. Use with caution.
    (lp.admin)


    /lpl admin reload - reloads the lottery pools plugin.
    (lp.reload)
    - it is highly not advisable to reload the plugin if you have changed the lottery timings. Any other changes in the config.yml is OKAY.

    Code (YAML):

    settings
    :
      guititle
    : '&9&l → LOTTERY'
      # If enabled, bossbar will be loaded whenever a lottery starts.
      bossbar
    : true
      # Sets the boss bar color, allowed colors are - BLUE, GREEN, PINK, PURPLE, RED, WHITE & YELLOW.
      bossbarcolor
    : 'YELLOW'
      # Set the message of the bossbar.
      bossbarmessage
    : '&7(&9%players%&7) participants currently in the lottery pool. Time left, &9%time% MINUTE(S)'
      # Set the minute at which the boss bar will turn red.
      bossbaralert
    : 14
      bossbaralertcolor
    : 'RED'
      # Set the lottery currency. Default is '$'.
      lotterycurrency
    : '$'
      # Set the fixed lottery price.
      lotteryprice
    : 2000
      # Set the lottery start interval. (time is in minutes)
      lotteryevery
    : 70
      # Set how long each lottery will last. (time is in minutes)
      lotteryduration
    : 15
      # If enabled, the lottery will start right when the server is started/restarted.
      onserverstart
    : true
      # Set how much tax should the lottery be. Put '0' if you want no tax to be charged.
      taxamount
    : 500

    # View a list of sounds here -> https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Sound.html - Make sure you use the correct version's SOUND name!
    sounds
    :
     # If enabled, sound will play on lottery start.
      playsoundonstart
    : true
      startsound
    : 'BLOCK_NOTE_BLOCK_PLING'
      # If enabled, sound will play to the lottery winner.
      playsoundtowinner
    : true
      winnersound
    : 'ENTITY_FIREWORK_ROCKET_LAUNCH'
      commandsound
    : 'BLOCK_SHULKER_BOX_OPEN'
      opensound
    : 'ENTITY_SHULKER_BULLET_HIT'
      buysound
    : 'BLOCK_NOTE_BLOCK_PLING'
    messages-en
    :
      prefix
    : '&7(Lottery&9Pool) &7→ '
      participatebroadcast
    : '&9%player% &7has participated in the current lottery pool. &9&o/lpl to participate. &7(&c!&7) &c$%taxamount% has been charged extra as tax.'
      lotteryendbroadcast
    : '&9%player% &7has won a total of &9$%amount% &7from the lottery pool!'
      lotterystartbroadcast
    : '&7Lottery has been started, &9/lpl &7to participate. &7(LOTTERY DURATION: &9%time% MINUTES&7)'
      nowinnersbroadcast
    : '&7Since there were no participants, there is no winner.'
      nopermission
    : '&9&lHEY! &7You have no business using this command!'
      invalidusage
    : '&9Whoopies&7, looks like you used the command wrongly. For a list of commands, &9/lpl help'

    # View a list of materials here -> https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Material.html - Make sure you use the correct version's BLOCK name!
    gui
    :
      purchase-ticket
    :
        item
    : HOPPER
        name
    : '&9BUY LOTTERY'
        description
    :
         - ' '
          - '&7(&9!&7) &9LEFT CLICK &7 to register'
          - '&7for the current LOTTERY &9POOL&7.'
      pool-check
    :
        item
    : DIAMOND
        name
    : '&9CHECK POOL AMOUNT'
        description
    :
         - ' '
          - '&7(&9!&7) &9LEFT CLICK &7 to view'
          - '&7the total LOTTERY &9POOL&7.'
     
        pool-amount
    :
          item
    : PAPER
          name
    : '&cLOTTERY POOL AMOUNT -'
          description
    :
           - '&7%amount%'
        pool-time
    :
          item
    : CLOCK
          name
    : '&9POOL DURATION'
          description
    :
           - ' '
            - '&7(&9!&7) &9CURRENT POOL &7ends in &9%time% &7minutes(s).'
     
      view-players
    :
        item
    : PLAYER_HEAD
        name
    : '&9PlAYER LIST'
        description
    :
         - ' '
          - '&7(&9!&7) &9LEFT CLICK &7to view the participants'
          - '&7of the LOTTERY &9POOL&7.'
          - ' '
          - '&7(&9%players%&7) player(s) currently participating.'
     
      next-pool
    :
        item
    : CLOCK
        name
    : '&9NEXT POOL'
        description
    :
         - ' '
          - '&7(&9!&7) &9NEXT POOL is in &9%totaltime% &7minute(s)'
     
      participate
    :
          enoughMoney
    :
            item
    : EMERALD
            name
    : '&aPARTICIPATE NOW!'
            description
    :
             - ' '
              - '&7(&9!&7) &9LEFT CLICK &7to purchase a lottery ticket'
              - '&7the price currently is, &9%price%&7,'
              - '&7the lottery tax is, &9%taxamount%&7.'
          notEnoughMoney
    :
            item
    : REDSTONE
            name
    : '&cERROR!'
            description
    :
             - ' '
              - '&7(&c!&7) &cYOU DO NOT HAVE ENOUGH MONEY TO JOIN THE LOTTERY!'
              - '&7the price currently is, &c%price%&7,'
              - '&7the lottery tax is, &c%taxamount%&7.'
          alreadyParticipated
    :
            item
    : REDSTONE
            name
    : '&cERROR!'
            description
    :
             - ' '
              - '&7(&c!&7) &cYOU HAVE ALREADY PARTICIPATED!'
     
      noLotteries
    :
        item
    : GUNPOWDER
        name
    : '&7(&c!&7) &cTHERE ARE CURRENTLY NO ON-GOING LOTTERY POOLS.'
        description
    :
       - ''
     
      goBack
    :
        item
    : BARRIER
        name
    : '&cGO BACK'
        description
    :
         - '&7(&9!&7) &9LEFT CLICK to go back to the previous page.'
     

     

     

     

    PLACEHOLDERS
    %player% - gets the player's name.
    %players% - gets the amount of player in the lottery. (used in bossbar)
    %amount% - amount from the lottery pool.
    %price% - shows the lottery ticket price.
    %taxamount% - shows the tax amount.
    %time% - duration of the lottery.
    %totaltime% - the total time to the next lottery.
    (Use like how it's used in the config.yml)


    FUTURE PLANS

    - Future plans will be updated on when I get your suggestions.



    Community made videos -

    (Check her out! Her videos are pretty epic!)






    Found a bug? Please private-message me or join the support Discord server. Please do not put it in the reviews section as reviews are not for bugs.

    I'd love to check out your servers that are using my plugins. Drop me a private-message and I might feature your server here too if you're using any of my plugins.


    If you'd want to support me and my future plugins, buy me a coffee here.




    Visit my other plugins:
    Command Regions - Execute commands in regions! (> 1.13)
    (Create regions (built in in-game region creator) and execute commands on region enter or leave)

    PotionCreation - Put up to 14 different effects in ONE potion.
    (Potion Creation allows your players to create potions with their choice of effect(s) with a fee! Supports up to 14 effects in one potion.)


    (Proudly sponsored by TorchNode)

    [​IMG] (Click on the image for a redirect.)



    Join the support server here,
    [​IMG]


    Norska and i_am_ziska like this.

Recent Updates

  1. VERSION 1.1.4 - REBORN
  2. VERSION 1.1.4 - REBORN
  3. VERSION 1.1.3 - REBORN

Recent Reviews

  1. DOTDOT
    DOTDOT
    5/5,
    Version: 1.3.2
    ------------------------------------
    Multiple ticket pls add
    ------------------------------------
    1. Astero
      Author's Response
      Thank you for your review, again!

      Do read the discussion, we have discussed this matter before, input any arguments back though to change my mind.
  2. DOTDOT
    DOTDOT
    5/5,
    Version: 1.3.1
    ----------------------------------------------------
    Please add 1.12.2
    ----------------------------------------------------
    1. Astero
      Author's Response
      There is already 1.12 support! Read the thread or look at the files. Thamk you for the rating however! :)
  3. MothMuse
    MothMuse
    5/5,
    Version: 1.2.1
    wonderful plugin and well thought out! super easy to use and i love the all-in-one GUI so my players can see everything about it in one screen. non-complicated and easy to set up! i've put it in a "menu" so when you click the lottery menu item it uses the /lpl command and just "works". its perfect for giving players a sort of main menu command or item like in my server!
    1. Astero
      Author's Response
      Thank you for the great review! I'm very happy that you're enjoying it. :)
  4. gazozuludaq
    gazozuludaq
    5/5,
    Version: 1.2
    Plugin working well, Simple and cool. Creator gave me friendly support once the plugin didnt worked for me
    1. Astero
      Author's Response
      Thank you for the review, glad you like it. And, it's my pleasure to help :)
  5. SwaguitoMc
    SwaguitoMc
    5/5,
    Version: 1.1.2
    1. Great Plugin
    2. Great Support
    3. No errors
    4. I love you 7w7 5. Why are you looking At this? download it now! !
    1. Astero
      Author's Response
      Thank you again! Glad to be helpful. If you still have any questions, feel free to head to the support Discord server or private-message me again!

      Have a good day!
  6. SwaguitoMc
    SwaguitoMc
    5/5,
    Version: 1.1.1
    wow really god plugin i like it very much i would like it more if you update it to 1.12.2 please <3
    1. Astero
      Author's Response
      Hey! Glad you like it!

      I'm currently working on a 1.12 version as said in the previous user review who asked for 1.12 too. Unfortunately, the issue now is within Vault. I have eliminated all the errors within my plugin but it'd have to take a while more to figure out.

      And - also, there probably won't be support for 1.12 once it's released. It would take me 3x the effort to update both 1.13 and 1.12 for every update if so.
  7. vy_vu
    vy_vu
    5/5,
    Version: 1.1
    ------------------------------
    Pls add 1.12 support
    ------------------------------
    1. Astero
      Author's Response
      Thank you for your rating! I'm currently trying to support 1.12. However, Vault is giving me issues because it's not really supported on 1.12 anymore. I have fixed every errors on my end except Vault. I will try to fix it.

      And - even if I manage to release one for 1.12.2, I doubt I'll do any support for that version. Because, 1.13 is a huge chance from 1.12 and I'd have to divert 3x the hours spent on one update for 1.13 to transfer support for 1.12. Hope you understand.

      My other plugin, CommandRegions is supported for 1.12, however. If you'd like to check that out too. It might prove useful.
  8. Mashiro22
    Mashiro22
    5/5,
    Version: 1.0.1
    The plugin is overall great, all the features are amazing in my opinion, plug great support from the author of the plugin too, i recommend this plugin to whoever reads this!
    1. Astero
      Author's Response
      Thank you for your review! I'm glad you like the plugin!