promotional bannermobile promotional banner

LotteryTicket

Abandoned
LotteryTicket
<p>Cover art</p>

Cover art

Description

Cover art

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

  1. Go into the lotteryticket folder, and opent the config file (/plugins/LotteryTicket/config.yml)
  2. Copy the basic "diamond" prize and paste it after it (you can delete the original one, if you want to)
  3. 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))
  4. Save the config file and exit from it
  5. Done!

How to install

  1. Download the plugin
  2. Start the server
  3. After everything is done, stop the server
  4. Customize the prizes
  5. Start the server again
  6. Done!

The LotteryTicket Team

profile avatar
  • 10
    Projects
  • 12.7K
    Downloads

More from _ForgeUser20751833View all