Lottery 1.4.1

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
    • 1.15
    [​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)

    15000 why not..

    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. MC 1.15 Support
  2. Removed debug messages
  3. Fixed permission Issue

Recent Reviews

  1. StevenPolska1992
    StevenPolska1992
    5/5,
    Version: 1.4.0
    great plugin! could u maybe add sign support pls? i just built a casino and really would appreciate something like clickable lottery play.

    works like a charm!
  2. YesBoiz
    YesBoiz
    5/5,
    Version: 1.4.0
    Looks good, works fine. Just the winner announcer is not showing for users, whats the permission for that?
  3. Andzia
    Andzia
    5/5,
    Version: 1.4.0
    It's good and and developer is very helpful!
    It's perfect for the Creative servers.
  4. therbz
    therbz
    5/5,
    Version: 1.3.9
    Very nice plugin but I think it's definitely illegal. hahaha... I found this plugin on spigot and I like it very much.
  5. Warak
    Warak
    5/5,
    Version: 1.3.8
    Very nice plugin but I don't know it's legal or illegal. hahaha... I found this plugin in some multiplayer server. and people liked it very much.
  6. NyanCat
    NyanCat
    5/5,
    Version: 1.3.8
    Still works as intended.
    Offers plenty of options for configuration and can be used to award XP and currency.
  7. XxminixX
    XxminixX
    5/5,
    Version: 1.3.7
    Adding items would not be bad.
    But otherwise the construction is very good.
    ........
  8. Notso9bit
    Notso9bit
    5/5,
    Version: 1.3.5
    Very nice plugin for any server with an economy I would imagine.

    .
  9. TheGoldenHearth
    TheGoldenHearth
    5/5,
    Version: 1.3.5
    great plugin, simple and easy to use
    ---------------------------------------------------
  10. 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.