Question: Need help to write java program on this program then change it to java programming Features: Users buy a ticket and can win the money
Need help to write java program on this program then change it to java programming
Features:
Users buy a ticket and can win the money of everyone that have bought a ticket.
Configurable price, material (including money/coins) and hours between lottery drawings.
#How many hours between every lottery drawing? Only whole numbers above 0 (like 1 or 2 or 3.... 24 or 25...)
hours: '24'
# The next execution option is really not to be touched. Its time in millisecs since 1. January 1970.
nextexec: 1300368259883
# Cost is the amount the buyer got to pay to buy a ticket. This applies both to iConomy coins and material. Only whole numbers. Negative numbers will probably work, but I don't see the point.
cost: '5'
#The material setting lets you choose which Material Value your users got to pay with, and get if they win. (its the "dec(imal)", value)
material: '266'
# If you want to use iConomy coins, set it to "true". If you want to choose your own material (block or item), set it to false.
useiConomy: 'false'
# If broadcastBuying is set to false, there will not be sent a message to every player when somebody buys a ticket.
broadcastBuying: 'true'
# welcomeMessage decides if there should be sent a message to the player on join about time until draw.
welcomeMessage: 'true'
#extraInPot just holds the amount of extra winnings in the pot has been added with /lottery addtopot
extraInPot: 0
#clearExtraInPot decides whether the plugin set extraInPot=0 after lottery draw, or if the same amount will stay until somebody changes it with /lottery addtopot <+/->
clearExtraInPot: true
#netPayout is the percentage of the total pot that is being paid out to the winner. This can be as large as you wish, but not lower than 1 (one). 100 = 100%, which means the winner will get exactly as much as the players have paid in while buying tickets.
netPayout: 100
#maxTicketsEachUser sets the max amount of tickets each player can buy
maxTicketsEachUser: 1
#debug - This won't show up by itself, and there is really no reason for you to have this unless there is something wrong with your install of the plugin.
debug: false
A set number of tickets available, and let the user choose which one to buy. If nobody had the right ticket, add money to jackpot for next drawing. (low)
Using configurable array of prize items instead of getting whats in the pot. (low)
Show time left when it's 2 hours left, 1 hour left etc. Configurable. (low)
Let admins give out free tickets. (normal)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
