Lottery 1.3.8

The Perfect solution for gambling with Money

  1. TheNickSkater
    Native Minecraft Version:
    Legacy (< 1.13)
    Tested Minecraft Versions:
    • 1.8
    • 1.9
    • 1.10
    • 1.11
    • 1.12
    • 1.13
    • 1.14
    [​IMG]

    Information:

    Commands:
    • /Lottery buy (Number)
    • /Lottery status
    • /Lottery help
    • /Lottery admin
    • /Lottery draw
    • /Lottery addpot <Number>
    • /Lottery reload
    • /Lottery gui
    • /Lottery togglebuymsg
    • /Lottery toggleremindmsg


    Permissions:
    • Lottery.Buy - Allows you to use /Lottery Buy
    • Lottery.Status - Allows you to use /Lottery Status
    • Lottery.Admin - Allows you to use /Lottery Admin
    • Lottery.Draw - Allows you to use /Lottery Draw
    • Lottery.Addpot - Allows you to use /Lottery Addpot
    • Lottery.Reload - Allows you to use /Lottery Reload
    • Lottery.TicketLimit.<Limit> - Players with this Permission will get the TicketLimit as set in the config
    • Lottery.TicketLimit.Bypass - Players with this Permission can buy unlimited Tickets
    • Lottery.Gui - Allows you to use /Lottery GUI
    • Lottery.cooldown.bypass - Allows you to bypass the buy cooldown
    • Lottery.togglebuymsg - Allows you to use /Lottery togglebuymsg
    • Lottery.toggleremindmsg - Allows you to use /Lottery toggleremindmsg

    PlaceholderAPI:

    • %lottery_drawtime% - Returns the lottery draw time (Format from messages)
    • %lottery_gtickets% - Returns the global bought Tickets amount
    • %lottery_ptickets% - Return the players bought Tickets amount
    • %lottery_pot% - Return the money amount in Pot + Extra in pot
    • %lottery_winner% - Returns the last winner (Returns the string set in messages if no last winner available)
    Please note that you can NOT (yet) use any placeholders in messages from my plugin! I will, probably, add that some times.

    Config;
    Code (Text):
    DrawTime: 60
    UseTimeDraw: false
    TimeDrawCheckIntervalSeconds: 60
    TimeDraws:
    - 00:00:00
    - 06:00:00
    - '12:00:00'
    - '18:00:00'
    GlobalBoughtMessage: true
    TicketCost: 100.0
    MoneyToPot: 100.0
    ExtraInPot: 10.0
    Refund: 100.0
    TaxesPercent: 10
    ServerAccount: none
    MinPlayers: 2
    BuyCooldownTimeSeconds: 60
    EnableChanceNoWin: false
    ChanceNoWinIfLessTicketsSold: false
    ChanceNoWinPercent: 1/200
    NoWinBackToPotPercent: 50
    Reminder: true
    RemindIntervalSeconds: 600
    OnlyOnlineWin: false
    LoginWinMessage: false
    LoginWinMessageDelayTicks: 10
    PerformCommandOnLotteryCMD: false
    CommandOnLotteryCMD: lottery status
    UpdateCheck: true
    Metrics: true
    TicketLimits:
      Default: 3
    BlockedWorlds:
    - testworld
    WinCommands:
      Enabled: true
      ExecuteIfOffline: false
      Commands:
      - xp 10l %player%
     

    Messages.yml:
    Code (Text):
    Prefix: '&8[&bLottery&8] '
    NoPermission: '&c&lYou dont have permission to do that!'
    Buy: '&a&lSuccessfully bought &6%tickets% &aLottery Tickets!'
    GlobalBuy: '&6&l%player% &abought &6%tickets% &aLottery Tickets!'
    NoMoney: '&c&lYou dont have enough money to buy &6&l%tickets% &c&lTickets. You need
      &6&l%money% &c&lMoney to buy &6&l%tickets% &c&lTickets.'
    TicketLimit: '&c&lYou cant buy more Tickets!'
    Cooldown: '&c&lYou are on cooldown! You can buy Tickets again in &6%time% &c&lSeconds'
    Win: '&a&lCongratulations to &6&l%player% &a&lfor winning &6&l%money% &a&lMoney in
      Lottery!'
    NoWinnerText: '&cNobody'
    NoPlayers: '&c&lThere were no Tickets sold.'
    FewPlayers: '&c&lThere were not enough players for Lottery to draw!'
    NotOnline: '&c&lThe Winner %player% is not online and could not win.'
    LoginWinMessage: '&a&lCongratulations! You won &c&l%moneygot% (Without Taxes %moneynotax%)
      &a&lin the Lottery you last participated!'
    BlockedWorld: '&c&lThe Winner %player% is in a Blocked World and could not win.'
    BackToPot: '&6&lNobody won! &c&l%newpot% &6&lwas added back to the pot!'
    Reminder: '&a&lLottery will draw in &6&l%draw% &a&lMinutes! In Pot: &6&l%pot%'
    ToggleOFFBuyMessage: '&cYou wont receive any Buy messages from other Players anymore!'
    ToggleONBuyMessage: '&aYou will now again receive Buy messages from other Players!'
    ToggleOFFReminderMessage: '&cYou wont receive any Reminder messages anymore!'
    ToggleONReminderMessage: '&aYou will now again receive Reminder messages!'
    TimeTillDrawFormat: '&c%h%&8H &c%m%&8M &c%s%&8S'
    WaitingForDraw: '&cWaiting for current Draw..'
    Status:
    - '       &b&lLottery'
    - ' '
    - '&aYour Tickets: &c%ptickets%'
    - ' '
    - '&aGlobal Tickets: &c%gtickets%'
    - ' '
    - '&aIn Pot: &c%pot%'
    - ' '
    - '&aDraw in: &c%draw%'
    - ' '
    - '&aLast Winner: &c%winner%'
    HelpPage:
      Users:
      - §7===================================
      - §8[§bLottery§8]
      - §8[§bLottery§8] §e§l§o/Lottery buy (Number)
      - §8[§bLottery§8]
      - §8[§bLottery§8] §e§l§o/Lottery status
      - §8[§bLottery§8]
      - §8[§bLottery§8] §e§l§o/Lottery gui
      - §8[§bLottery§8]
      - §8[§bLottery§8] §e§l§o/Lottery toggleremindmsg
      - §8[§bLottery§8]
      - §8[§bLottery§8] §e§l§o/Lottery togglebuymsg
      - §8[§bLottery§8]
      - §7===================================
      Admins:
      - §7===================================
      - §8[§bLottery§8]
      - §8[§bLottery§8] §e§l§o/Lottery draw
      - §8[§bLottery§8]
      - §8[§bLottery§8] §e§l§o/Lottery reload
      - §8[§bLottery§8]
      - §8[§bLottery§8] §e§l§o/Lottery addpot <Number>
      - §8[§bLottery§8]
      - §7===================================
     


    Videos:


    Video by ServerMiner (bit outdated):

    Website: https://serverminer.com

    Feel free to make one! If it's good, i will link it here :)

    Test Servers:

    • RisenCloud.com (Prison - Factions)

    Terms:

    • You are not allowed to decompile or modify the plugin in any way!
    • You are not allowed to post or publish the plugin
    • You are not allowed to distribute the plugin!
    • You are not allowed to sell the plugin anywhere!
    • If you do not understand something or have questions, please send me a PM (Private Message)

    10000..................... well. Okay..

    Donators:
    momoservertw: 5$

    If you find bugs please report them in the Discussions forum! Please do not report bugs in the Review section!

Recent Updates

  1. Async commands fix
  2. 1.14.1 Fix
  3. Updated PlaceholderAPI

Recent Reviews

  1. XxminixX
    XxminixX
    5/5,
    Version: 1.3.7
    Adding items would not be bad.
    But otherwise the construction is very good.
    ........
  2. Notso9bit
    Notso9bit
    5/5,
    Version: 1.3.5
    Very nice plugin for any server with an economy I would imagine.

    .
  3. TheGoldenHearth
    TheGoldenHearth
    5/5,
    Version: 1.3.5
    great plugin, simple and easy to use
    ---------------------------------------------------
  4. ProPl4yerCz
    ProPl4yerCz
    4/5,
    Version: 1.3.3
    Hi,

    this plugin is good, but I find bug. Seconds don't show up in the draw, just minutes. Please fix it.

    Thanks for your response,
    ProPl4yerCz
    1. TheNickSkater
      Author's Response
      Please dont use the review section to report bugs...
      Also thats not a bug. The normal draw is only shown in Minutes.
  5. TeemoCell
    TeemoCell
    5/5,
    Version: 1.3.3
    Simple and easy to use. I love it. Keep up the good work.
    -------------------------------------------------------------------------------
  6. doitliketyler
    doitliketyler
    5/5,
    Version: 1.3.2
    Great lottery plugin. Extremely easy to setup and everything is customizable. A+
  7. x666
    x666
    5/5,
    Version: 1.3.2
    just perfect!! thanks man.......................................................
  8. DOTDOT
    DOTDOT
    5/5,
    Version: 1.3.2
    --------------------------------------------
    If no one will participate the lottery pot will reset.
    Please make it pot money will not reset
    And also add sign where players can see the last winner through sign
    --------------------------------------------
  9. Gustavo_Player
    Gustavo_Player
    5/5,
    Version: 1.3.1
    Happy Xmas! =D
  10. xJok3rGRx
    xJok3rGRx
    5/5,
    Version: 1.2.8
    Awesome Work.

    I have one suggestion. Why don't you add the range of numbers that will be drawn and be changeable in config? Ex. NumberDrawRange: 60
    In that 60 number range will be the winning number
    1. TheNickSkater
      Author's Response
      Thank you for the review!

      I already tought about your feature request.. but it would create soooo many complications that it's almost impossible.