LotteryTicket
LotteryTicket
Somebody requested this on the forums.
Features
- With the command "/lt" you can get a ticket
- By doing "/scratch" you consume 1 ticket, and it will open a custom inventory, with the prize in it
- The inventory can't be closed, until all the items are removed from it
- Customizable prizes (config file) This includes: maximum amount, that can be won, chance (out of 1000), and the item itself
Commands
- /lotteryticket - Sends the player a help message about the commands
- /lt - Gives the player a ticket
- /scratch - Consumes the ticket in the players hand
Permissions
- lotteryticket.lt - Allows the player, to use the "lt" command, default: op
- lotteryticket.scratch - Allows the player, to use the "scratch" command, default: everyone
How to customize the prizes
- Go into the lotteryticket folder, and opent the config file (/plugins/LotteryTicket/config.yml)
- Copy the basic "diamond" prize and paste it after it (you can delete the original one, if you want to)
- Set the arguments to you likings (maxamount: The maximum amount, the player can get; chance: the chance out of 1000, that the player will get this item; material: The item name (Always use capital letters))
- Save the config file and exit from it
- Done!
How to install
- Download the plugin
- Start the server
- After everything is done, stop the server
- Customize the prizes
- Start the server again
- Done!
Very cool plugin! I haven't downloaded it yet but I do like the idea. I am not sure if this has been implemented or not but please do add the configuration of how much it cost for a ticket!
I actually like this idea a lot xD I haven't seen anything like it, so this is pretty creative and unique. I'd like to see this on some faction servers perhaps, or even SkyBlock this would be just as useful. I love the concept, the way it was programmed, the customizability, and really just everything about it. Keep up the great work, my friend, and best of luck with your plugin