FamoustLottery icon

FamoustLottery -----

The ultimate, irresistible multi-lottery plugin




Warning: This version is a beta. Most of it's functionality is working however there might be some bugs present

  • Regained access to Sourcecode from v6.4.3
  • Updated support to version 1.20
  • Added features and bug fixes from versions between 6.4.3 - 6.4.13 as much as possible (no gurantee for completion yet)
  • Pushed Java-Version to 17 and replaced old code with new language features
----------, Jul 23, 2023

  • Updated to 1.16.1
  • Signs: Fixed performance issue (Chunkloading)
  • Signs: Signs now get removed from the Lottery if they no longer exist
----------, Jul 29, 2020

Upload of correct file
----------, Sep 24, 2019

  • Removed a old dependency of vault that is no longer available.
----------, Sep 24, 2019

FamoustLottery was updated to support Minecraft 1.14
  • Please make sure to make a backup before upgrading to this version
----------, Sep 23, 2019

  • FamoustLottery was updated to support Minecraft 1.13
    • Please make a backup before upgrading and also note that all item-related saves will be breaking. To prevent issues please remove any fields that contain item ids or material names!
----------, Jul 24, 2018

  • Fixed a typo inside the messages.yml that was causing a null error
  • Fixed a issue with replacing the amount of available tickets within the error message if a player would get to much tickets
  • Fixed a issue where you couldn't buy tickets for others after you won a lottery
  • Fixed a issue where people could buy tickets after they won but other players not
----------, May 14, 2018

  • Fixed the issue regarding replacing of variables in the on-win commands again
----------, Apr 17, 2018

  • Fixed an issue where placeholders were not replaced in the onWinCommands etc.
----------, Apr 16, 2018

Changes:
  • Fixed an issue that was causing the players to loose their tickets on a restart of the server
----------, Apr 3, 2018

Changes:
  • Fixed a issue on closing a lottery
  • The field %amount in command /lottery add is now showing the amount added instead of the amount of tickets
  • Fixed a issue on loading the list of last winners from file (List got bigger and bigger over time)
  • Fixed a issue where signs were not loaded from file (signs didn't work after restart/reload)
  • (Spigot only) The .jar is now available via spigot and doesn't need approval from bukkit-team anymore
----------, Aug 19, 2017

Changes:
  • Fixed a issue on loading the messages.yml on startup (due to changes in MC-Version 1.12)
  • Fixed a issue where players were able to buy tickets with a negative value
----------, Jun 15, 2017

Changes:
  • Added a new subcommand named vendor. This'll allow showing the message generated by a sign-interaction via command (A move towards supporting vendors from other plugins e.g. Citizens)
  • Removed the mcstats.org integration (mcstats.org has been very unreliable in the past and is most likely no longer mantained)
----------, Feb 5, 2017

Changes:
  • Fixed a issue regarding the "/lottery last" command
  • Fixed a issue regarding the permission for the command "/lottery buy" and buying via signs
----------, Dec 28, 2016

Changes:
  • Fixed a issue with buying via signs
----------, Jul 31, 2016

Changes (Needed to reupload the file because the compiling failed):
  • Fixed a issue in the buy-command where no permission was accepted
  • Fixed a issue in the sign-interaction where every player was able to buy tickets even without the permissions to do so
  • Fixed a issue in the claim-command where the messages weren't send correctly
  • Fixed some async issues
----------, Jul 27, 2016

Changes:
  • Fixed a issue in the buy-command where no permission was accepted
  • Fixed a issue in the sign-interaction where every player was able to buy tickets even without the permissions to do so
  • Fixed a issue in the claim-command where the messages weren't send correctly
  • Fixed some async issues
----------, Jul 27, 2016

Changes:
  • Fixed a issue on how items are deposit (claim issue)
  • Fixed a issue that sound's dissappeard on a reload/restart
  • Uploaded the last 1.8 version of FamoustLottery to fix all known bugs
----------, May 4, 2016

FamoustLottery v6.4.2 - Let's hotfix

Changes:
  • Fixed a issue with endless claims through /lottery claim
  • Tweaked the way how claims are added to the inventory of a player
----------, Apr 16, 2016

Changes:
  • Fixed some issues regarding to the 1.9 Minecraft update with Sounds
----------, Mar 2, 2016

Changes:
  • Added new DrawType(mostly for Economy-Lotterys) to set a Item as pot.
  • Items are now saved as <id>:<data>:<amount>
  • Edited last_winners to ensure that really just 10 wins are cached in the list.
----------, Jan 14, 2016

Changes:
  • Fixed a bug where signs didn't got loaded on restart/reload
----------, Nov 29, 2015

!!!Warning!!! With this version the way how signs are saved has changed, so all signs will be broken after updating!

Changes:
  • Fixed MySQL issue
  • Changed the way of saving signs in order to fix some MySQL issues
----------, Nov 17, 2015

Changes:
  • Fixed issue in MySQL-Loading (table doesn't exist)
----------, Nov 14, 2015

Changes:
  • Fixed a bug where you couldn't buy with Items
  • Fixed MySQL sign issue
  • Removed Last-Winners Table in MySQL to prevent errors
  • Changed the Variable-System for %tickets to prevent further issues
----------, Nov 13, 2015

Changes:
  • Fixed another missing replace on buying tickets with a sign.

Hopefully the last fix I need to roll-out to fix those variables ;)
----------, Nov 10, 2015

Changes:
  • Fixed a issue on creating a Lottery whilest using a SQL-DB
  • Fixed some variable replacements
  • Changed some variables in the default messages.yml
----------, Nov 10, 2015

Changes:
  • Fixed a minor ClassCastException in Single- and Multiple-Winner-Mode
----------, Nov 6, 2015

Changes:
* Fixed issue on %tickets showing incorrectly.
* Fixed loading issue where lotterys switched gamemode to multiple winners even their where in single winner mode.
* Fixed some other message failures.
----------, Nov 2, 2015

Changes:
  • Fixed issue where the config.yml was always out of date
----------, Oct 28, 2015

FamoustLottery v6.3.1 - Hotfix

Changes:
  • Fixed a bug where every interact with a Inventory would end up in a NullPointerException (Could not pass event InventoryClickEvent to FamoustLottery v6.3.0)
  • Added a missing ' inside the default config.yml
----------, Oct 24, 2015

!!!For MySQL-Users!!!! Dont forget to do a regain with /lottery regain before updating to the newest version and delete the old tables inside the MySQL-Database.

What has been changed in this Version?
This Version implements Sounds to play at winning, loosing and the draw reminding. Also included are bug-fixes and a nice way of editing the winning percentage in Multiple-Winners-Mode.

Changes:
  • Implemented Sounds to play at winning, loosing and draw reminding.
  • Implemented a new Configuration-Field for Sounds(also a new Inventory to choose sounds in ;))
  • Implemented a new and nice way of editing the winning percentage in Multiple-Winners-Mode
  • Implemented a deposit message.
  • Changed ticket specific messages to support the messages like '1 Ticket' and/or '2 Tickets'
  • Removed some unnecessary messages in the message.yml.
  • Fixed a Bug/Warning at Sign updates(java.lang.IllegalStateException: Asynchronous entity world add!)
----------, Oct 24, 2015

FamoustLottery v6.2.0 - The Multiplayer Update

!!!For MySQL-Users!!!! Dont forget to do a regain with /lottery regain before updating to the newest version and delete the old tables inside the MySQL-Database.

What has been changed in this Version?
This Version implements a new Draw/Lottery Mode where you can define how much players can win each round. (Jackpot get's seperated and given to each winner). This Version also fixes some loading issues etc.


Changes:
  • Implemented a new Draw/Lottery Mode ('Multiple Winners')
  • Implemented new Configuration Fields for 'max Winners' and 'Draw Type'
  • Fixed issue on Default loading
----------, Oct 12, 2015

FamoustLottery v6.1.5 - Hotfix

Changes:
* Fixed loading issue for jackpotChance and minPlayers on /lottery reload.
* Automaticly leaving sign-chat if player types number smaller than 1 or a message.
* Fixed issue on trying to send a message even the player wasn't only at the moment.
----------, Sep 20, 2015

FamoustLottery v6.1.4 - The friendly User Update

This Version fixes some bugs and simplifiers the way giving users their own lottery.

!!! Please make a backup from your old data, as this version changes a lot. !!!

Changes:

  • Added a regain command to regain all Lotterys from a MySQL-DB (PERM=FamoustLottery.regain)
  • Fixed MySQL saving issue
  • Fixed time on signs(completly messed up at 1h-24h lotterys)
  • Fixed save problem, where jackpotChance didn't got saved into yml-file
  • Lotterys are now saving upon draw
  • The command /lottery create <name> now saves the new lottery directly to yml-file (No changes for MySQL users)
  • Added command /lottery save to save all lotterys without waiting for a lottery draw (PERM=FamoustLottery.save)
  • Changed the command /lottery reload to just reload yml-files instead of shuting down the plugin
  • Changed Jackpot_Chance to its meaning. (Now it's the chance that a player wins instead of the Lottery)
  • Fixed grammar inside default messages.yml (Thanks to Raven0)
  • Added specific permissions for editing a lottery(Each field no has its own permission) . Explaining it later on.
  • Renamed Vault in Field useEcon to Money.
  • Fixed Item currency bug on useEcon switch
  • Added default configuration for lotterys.
  • Fixed taxes to work properly
  • Fixed bug, where you couldn't use colour-codes for changing the Edit-Inventory name
  • Now using VaultAPI to get Item names. (Only if Vault is installed)
  • Using Vault is now only available if installed. (Befor you could get a NullPointerException)
  • Taxes are now working properly for items as well
  • Fixed prefix for custom lotterys
Special Thanks to Raven0 for his great support, pushing this update forward with ideas and testing ;)

Specific permissions for edititing lotterys:

  • FamoustLottery.edits.* - Grants access to all changing fields
  • FamoustLottery.edits.broadcastbuy - Grants access to change broadcastBuy
  • FamoustLottery.edits.broadcastdraw - Grants access to change broadcastDraw
  • FamoustLottery.edits.delay - Grants access to change delay
  • FamoustLottery.edits.econ - Grants access to change useEcon
  • FamoustLottery.edits.item - Grants access to change Item
  • FamoustLottery.edits.jackpotchance - Grants access to change the Jackpotchance
  • FamoustLottery.edits.maxticketsbp - Grants access to change the maxTicketsByPlayer
  • FamoustLottery.edits.maxtickets - Grants access to change the max Tickets in Lottery
  • FamoustLottery.edits.minplayers - Grants access to change the minPlayers
  • FamoustLottery.edits.mintickets - Grants access to change the minTickets
  • FamoustLottery.edits.price - Grants access to change the Price
  • FamoustLottery.edits.runtime - Grants access to change the Runtime
  • FamoustLottery.edits.taxholder - Grants access to change the taxholder
  • FamoustLottery.edits.taxmultiplier - Grants access to change the taxmultiplier
  • FamoustLottery.edits.maxwins - Grants access to change the maxwins
  • FamoustLottery.edits.globalmessages - Gratns access to change to globalMessages
  • FamoustLottery.edits.extrainpot - Grants access to change extrainpot
  • FamoustLottery.edits.clearextrainpot - Grants access to change clearextrainpot
----------, Sep 13, 2015

FamoustLottery v6.1.0

Changes:
* Fixed a bug that stopped winners getting their money
* Fixed a Tax calculation bug
* Added a global Messaging feature
* Added a extraInPot field for lottery's to start with a predefined jackpot
* Added a clearExtraInPot field for lottery's to prevent jackpot from creating money over and over
* Removed %[...]% placeholders from system and message.yml
----------, Sep 1, 2015

FamoustLottery v6.0.7

Changes:
  • Fixed issue on winning if maxTickets is not -1
----------, Aug 31, 2015

FamoustLottery v6.0.6

Changes:

  • Fixed bug that you never got enough funds to buy tickets for another player but got the money withdrawn
  • Fixed bug which repeated the winning message over and over and never stopped the lottery.
  • Fixed bug which calculated the Jackpot chance in a wrong way.
----------, Aug 31, 2015

FamoustLottery v6.0.5

!!Warning!!
Please backup your old lottery.yml befor installing this version

Changes:

  • Added MySQL support(will be explained further on)
  • Added a feature to protect lotterys from players winning to often in a given time (Jenks1999)
  • Signs are now able to change their headers for each lottery status (Activ,Inactiv,Closed)
  • Editing now got's text on each field to tell you what it does.(Jenks1999)
  • Creating a lottery as a Player now opens the editing gui directly.(Jenks1999)
  • Buying tickets from signs can now get interrupted trough writing the word: exit
Special Thanks to Jenks1999 for help me getting these ideas and bug fixing everything. You are great ;)

I already created Lotterys, but now I want to use MySQL?
Thats no problem at all. FamoustLottery will check the Lotterys.yml on startup and loads all lotterys into the MySQLDB, but dont forget to backup the yml before using this ;)

I'm now using MySQL as save option but how can I edit lotterys?
To edit lotterys inside MySQL you just need to use the simple editing gui from /lottery edit.

I want to retrieve lottery data out of the MySQLDB. How are the tables looking?

Main Table(lotterys) is saving all configuration fields of a lottery.
Colums:
  1. Name - Represents the lotterys name as. [VARCHAR]
  2. Status - Represents the lotterys status. [TINYINT] (Open = 0, Inactiv = 1, Closed = 2)
  3. Runtime - Represents the lotterys time to buy tickets. [INTEGER]
  4. Delay - Represents the lotterys time between each round. [INTEGER]
  5. CurrentTime - Represents the lotterys current time. [INTEGER]
  6. useEcon - Represents the lotterys state of using Vault or Items. [VARCHAR/BOOLEAN] (true = Vault, false = Items)
  7. Price - Represents the lotterys price for a ticket. [DOUBLE]
  8. Jackpot - Represents the lotterys current jackpot. [DOUBLE]
  9. Items - Represents the lotterys item currency. [VARCHAR] (Id: Data)
  10. maxTicketsbyPlayer - Represents the lotterys maximum amount of tickets for each player. [INTEGER]
  11. maxTickets - Represents the lotterys maximum amount of tickets to sell. [INTEGER]
  12. minTickets - Represents the lotterys minimum amount of tickets to draw a winner instead of moving into next round. [INTEGER]
  13. minPlayers - Represents the lotterys minimum amount of players to draw a winner instead of moving into next round. [INTEGER]
  14. currentTickets - Represents the lotterys current amount of sold tickets. [INTEGER]
  15. broadcastBuy - Represents the lotterys current status of broadcasting a buy. [VARCHAR/BOOLEAN] (true = enabled, false = disabled)
  16. broadcasrDraw - Represents the lotterys time to remind players that a draw is comming. [INTEGER]
  17. JackpotChance - Represents the lotterys chance of moving the jackpot into the next round. [INTEGER]
  18. TaxMultiplier - Represents the lotterys tax percentage. [INTEGER]
  19. TaxHolder - Represents the UUID of the current Player who get the taxes. [VARCHAR/UUID]
  20. WinsPerDay - Represents the lotterys maximum amount of wins a configurateable time frame. [INTEGER]
<Lottery>_players is saving the current players with their tickets
Colums:
  1. UUID - Represents the players UUID. [VARCHAR/UUID]
  2. Tickets - Represents the amount of tickets bought by a player. [INTEGER]
<Lottery>_signs is saving the location of all Lottery specific signs
Colums:
  1. 01. Location - Represents the signs location. [VARCHAR] (<World>_<X>_<Y>_<Z>)
<Lottery>_last_winners is saving the last winners of the lottery
Colums:

  1. Player - Represents the players UUID. [VARCHAR/UUID]
  2. Amount - Represents the amount the player won. [DOUBLE]
  3. Date - Represents the Date he won. [TIMESTAMP]
----------, Aug 22, 2015

FamoustLottery v6.0.1
  • Added translation of /lottery help messages
  • Added message when changing lottery configuration
  • Edit menu reopens now after writing information
  • Update system now supports 0.0.0 instead of 0.0 versions
  • Some preparations for upcoming mysql-support in future updates
----------, Aug 11, 2015

FamoustLottery v6.0
!!!WARNING!!! This version is meant to be a test version for finding bug's and/or preparing your Server for the multi-lottery system.

What changed? A whole lot of the plugin needed to be rewritten to implement a multi-lottery-system. Other missions were to get a faster lottery handling and a quicker configuration.

Changelog:

  • Creation of multiple lottery's are now available
  • Created a Add command on the wish of McOnePeace(http://dev.bukkit.org/profiles/McOnePeace/) The command implements a way to add money from a player balance to the pot.
  • Implemented a create command to create Lottery's with no lenght limit's (Some char's can cause a deletion if they placed at the end/start of a name. Including: '.' , ''')
  • Also added a delete command to delete a Lottery (!!!Warning!!! Currently the player's wont get their money back if the deletion takes place when opened.)
  • Created a edit command to implement a ingame configuration for each lottery.(How to work with this will be explained later)
  • Command last and info is now showing the information for the given lottery (Global statistic's for last is comming later on)
  • Removed buy and last sign.
  • Information sign completly changed. You are now able to delete the sign through sneaking + clicking and it now implement's a buy function on click.
What happen's with the old lottery? You need to delete all old files from the older version's. But you are able to move the list of last winner's to a new created lottery with copying and pasting while the Server is down.

Some messages are white and/or I'm unable to change them? In this version some message's are hardcoded but will be translateable later on. Mostly these messages only available to admin's so none of your user's will see them ;)

I only want to have one lottery. Does this work and dont use more ram? With the new system I can say even 2-3 lottery's are faster than the old one. And it's your decision on how much lottery's you want to create ;)

You said above that you would explain the configuration-system? Yes. Now I'll explain how the new ingame configuration work's ;) At first, befor you're able to edit, you need to create at least one lottery else it wont work.

When you the use /lottery edit you'll see a inventory with collored wool:

  • Red - Lottery is Closed
  • Yellow - Lottery is currently inactiv
  • Green - Lottery is activ (should be unable to click on)
The name of the lottery is placed as item name and can be seen on mouse over.

Green: First value you can see is the amount of player's playing, second the current Jackpot and the third the current time.

Yellow: Yellow just has one value and show's the current time.

If the lottery isn't green you're able to click on the item and it open's a new Inventory with the name Configuration: <Lottery> It contain's all configurateable field's.

  • @int - You need to type an Integer into the chat (int = 1)
  • @double - You need to type a Double into the chat (double= 1.00)
  • @switch - Changes the current status of a function
Runtime(int): Changes the current time when the lottery is open and activ.

Delay(int): Changes the current time when the lottery is open and inactiv.

Economy(switch): Changes the use of Vault or Item's as payment

Price(int/double): Changes the current price for a Ticket(If you dont use Economy this is also a multiplicator for the Items you set later)

Item: Changes the current Item. If you click on this item it'll change the item to the current Item which you have in your hand.

max. Tickets P. (int): Changes the amount of max Ticket's by Player.

max. Tickets (int): Changes the amount of max Ticket's the lottery have.

min. Tickets (int): Changes the minimum of Ticket's the players have to buy till they're able to win.

min. Players (int): Changes the minimum of playing Players till they're able to win.

Jackpot chance (int): Changes the chance of a Jackpot move into the next round.

Broadcast Buy(switch): Changes if the buy of ticket's get broadcasted or not.

Broadcast Draw(int): Changes the time when a reminder get's sended to every playing Player befor the lottery get's drawn.
----------, Jul 31, 2015

FamoustLottery v5.41
  • Fixed version problem
  • Fixed some performance problems
----------, Jul 20, 2015

FamoustLottery v5.4
  • Added save function to be persistent trough restarts
  • Added the amount to /lottery last
  • Fixed critical issue where people without permission could buy tickets
  • Fixed critical issue where people could buy a negative amount of tickets
----------, Jul 12, 2015

  • Fixed issue with finding a winner
  • Fixed issue in change command
  • Added better english version(by floogulinc)
----------, Jun 26, 2015

FamoustLottery v5.3
  • Fixed problem with failing to create the newest config.yml
  • Added a command perform feature for onWin, OnClose and onBuy(idea by NodexServers)
  • Hopefully now able to support Java 7 again.
----------, Jun 3, 2015

FamoustLottery v5.21
  • Fixed /lottery last list didn't got shown.
  • Fixed /lottery buy bug which only allowed to use /lottery buy instead of a using a number behind
----------, May 29, 2015

Resource Information
Author:
----------
Total Downloads: 9,908
First Release: Apr 2, 2015
Last Update: Jul 23, 2023
Category: ---------------
All-Time Rating:
16 ratings
Find more info at famoustlotteryblog.wordpress.com...
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings