ModsJava
SimpleLottery
Java mod listed for Minecraft 1.9. Downloads from the MC Java Mods app on Android.
⬇ Download on SpigotThe name says it all: this is a very basic plugin for playing lottery. It is
OpenSource and completly independent from other plugins.
How to play
Rounds can be started automatically with defined time intervals or manually. Players can then buy a ticket with a number they chose for a custom amount of items (e.g. 10 diamonds, 5 gold ingots etc.) and get a paper with round number, their ticket number as well as their bet.
The player(s) who have a ticket with the winning number at the end of the round will get back their multiplied bet (e.g. bought a ticket for 3 diamonds -> 15 diamonds as a reward).
Configuration
While being a very simple plugin, I tried making it as customizable as possible. Values for time intervals, prices for tickets and item types, rewards as well as the messages can all be changed in the config.yml file. Take a look at it for more information on this.
Default config.yml:
Player Commands
/lottery buy <ticketNumber> <itemAmount> <itemType>
/lottery start
Permissions
How to play
Rounds can be started automatically with defined time intervals or manually. Players can then buy a ticket with a number they chose for a custom amount of items (e.g. 10 diamonds, 5 gold ingots etc.) and get a paper with round number, their ticket number as well as their bet.
The player(s) who have a ticket with the winning number at the end of the round will get back their multiplied bet (e.g. bought a ticket for 3 diamonds -> 15 diamonds as a reward).
Configuration
While being a very simple plugin, I tried making it as customizable as possible. Values for time intervals, prices for tickets and item types, rewards as well as the messages can all be changed in the config.yml file. Take a look at it for more information on this.
Default config.yml:
Code (Text):
# If enabled, lottery rounds are started and stopped automatically
autoMode:
enabled: true
roundInterval: 120
breakInterval: 30
round:
roundNumber: 1
multiplier: 10
numberRange:
min: 100
max: 999
priceRange:
min: 1
max: 16
allowSameTicketNumbers: true
allowMoreThanOneEntryPerPlayer: true
allowedBlocks:
- diamond
- gold_nugget
- gold_ingot
messages:
round:
start: 'Round #<<roundNumber>> started!'
end: 'Round #<<roundNumber>> ended!'
time:
nextBreak: 'Round #<<roundNumber>> ends in <<seconds>>s'
nextRound: New round starts in <<seconds>>s
status:
statusMessage: 'Round #<<roundNumber>> is <<status>>'
running: running.
halted: halted.
finished: over.
startsSoon: 'Round #<<roundNumber>> starts in <<seconds>>s'
stopsSoon: 'Round #<<roundNumber>> stops in <<seconds>>s'
winningNumber: Winning number is <<winningNumber>>!
winners: 'Winner(s):'
noWinners: Nobody won :(
ticket:
bought: You succesfully bought a ticket. Your ticket number is <<ticketNumber>>!
list: 'Bought tickets:'
error:
general: Couldn't buy ticket.
wrongNumberRange: 'It seems like <<ticketNumber>> is too small/big. The allowed
range is: <<min>>-<<max>>'
wrongPriceRange: 'It seems like <<playerPrice>> is too small/big. The allowed
range is: <<min>>-<<max>>'
alreadyExists: Looks like <<ticketNumber>> is already taken by someone else.
tooMany: Looks like you've already bought a ticket.
tooPoor: It seems like you can't afford <<amount>> <<material>>(S) :(
reward: Could not give you your reward. Is your inventory full?
permissionError: You do not have permission to do that!
autoMode:
enabled: true
roundInterval: 120
breakInterval: 30
round:
roundNumber: 1
multiplier: 10
numberRange:
min: 100
max: 999
priceRange:
min: 1
max: 16
allowSameTicketNumbers: true
allowMoreThanOneEntryPerPlayer: true
allowedBlocks:
- diamond
- gold_nugget
- gold_ingot
messages:
round:
start: 'Round #<<roundNumber>> started!'
end: 'Round #<<roundNumber>> ended!'
time:
nextBreak: 'Round #<<roundNumber>> ends in <<seconds>>s'
nextRound: New round starts in <<seconds>>s
status:
statusMessage: 'Round #<<roundNumber>> is <<status>>'
running: running.
halted: halted.
finished: over.
startsSoon: 'Round #<<roundNumber>> starts in <<seconds>>s'
stopsSoon: 'Round #<<roundNumber>> stops in <<seconds>>s'
winningNumber: Winning number is <<winningNumber>>!
winners: 'Winner(s):'
noWinners: Nobody won :(
ticket:
bought: You succesfully bought a ticket. Your ticket number is <<ticketNumber>>!
list: 'Bought tickets:'
error:
general: Couldn't buy ticket.
wrongNumberRange: 'It seems like <<ticketNumber>> is too small/big. The allowed
range is: <<min>>-<<max>>'
wrongPriceRange: 'It seems like <<playerPrice>> is too small/big. The allowed
range is: <<min>>-<<max>>'
alreadyExists: Looks like <<ticketNumber>> is already taken by someone else.
tooMany: Looks like you've already bought a ticket.
tooPoor: It seems like you can't afford <<amount>> <<material>>(S) :(
reward: Could not give you your reward. Is your inventory full?
permissionError: You do not have permission to do that!
Player Commands
/lottery buy <ticketNumber> <itemAmount> <itemType>
Buys a new ticket for <itemAmount> <itemType> items betting on the number <ticketNumber>
/lottery status
Prints the status of the current round (e.g. running, halted, finished)
/lottery allowedItems
Prints a list of allowed items
/lottery <command> help
Prints a help for the specified command
/lottery status
Prints the status of the current game (e.g. running, halted finished)
Admin Commands
/lottery start
Manually starts a new round if the last one is over.
/lottery stop
Manually stops the current round.
/lottery halt
Halts the current round (countdown stops and players cannot buy new tickets).
/lottery resume
Resumes a halted round.
/lottery list <public | private>
Lists the bought tickets with player names. <public> prints it as a broadcast to every player, <private> only to the command inititiator.
Permissions
Code (Text):
SimpleLottery.*:
description: Gives you access to all SimpleLottery commands
Children:
SimpleLottery.Control: op
SimpleLottery.Round: true
SimpleLottery.Round.BuyTickets: true
SimpleLottery.Round.Status: true
SimpleLottery.Round.ListTickets: op
SimpleLottery.Round.ListTickets.Private: op
SimpleLottery.Round.ListTickets.public: op
SimpleLottery.Control:
description: Allows you to start, stop and pause a game
SimpleLottery.Round.*:
description: Allows you to buy tickets, list bought tickets
SimpleLottery.Round.BuyTickets:
description: Allows you to participate in a round by buying a ticket
SimpleLottery.Round.ListTickets.*:
description: Allows you to print all bought tickets of the current round
SimpleLottery.Round.ListTickets.Private:
description: Shows you all bought tickets
SimpleLottery.Round.ListTickets.Public:
description: Shows everybody the bought tickets
description: Gives you access to all SimpleLottery commands
Children:
SimpleLottery.Control: op
SimpleLottery.Round: true
SimpleLottery.Round.BuyTickets: true
SimpleLottery.Round.Status: true
SimpleLottery.Round.ListTickets: op
SimpleLottery.Round.ListTickets.Private: op
SimpleLottery.Round.ListTickets.public: op
SimpleLottery.Control:
description: Allows you to start, stop and pause a game
SimpleLottery.Round.*:
description: Allows you to buy tickets, list bought tickets
SimpleLottery.Round.BuyTickets:
description: Allows you to participate in a round by buying a ticket
SimpleLottery.Round.ListTickets.*:
description: Allows you to print all bought tickets of the current round
SimpleLottery.Round.ListTickets.Private:
description: Shows you all bought tickets
SimpleLottery.Round.ListTickets.Public:
description: Shows everybody the bought tickets
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft version listed: 1.9
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Spigot — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
SimpleLottery is a free Minecraft Java mod. Compatible with Minecraft 1.9. Downloaded 261 times (via Spigot). Download it and open it directly in the game.