Minecraft Lottery

Minecraft-Lottery

Information

PLEASE NOTE THAT THIS PAGE WAS WRITTEN FOR THE 1.2 VERSION OF THE PLUGIN. I AM JUST WAITING FOR THE BUKKIT TEAM TO APPROVE IT. YOU CAN GET IT FROM GITHUB, BUT USE IT AT YOUR OWN RISK.

By executing the /lottery command the player will get a random Item. You can customize the messages in the config,

You are allowed to choose if you want to use a whitelist (Chose any item from the whitelist), or to use the blacklist(Choose any item, but not the items listed in the blacklist.).

You need to have a permissions plugin installed on your Server to work, if don't the players executing the commands need to be operators.

As defined in the config the plugin will check for an available update (Just check don't update), and notify you if a newer version is available. To do this the plugin will connect to this url: If you don't want this function than set checkforupdate: to false.

Features

  • It provides a blacklist, and a whitelist
  • Fully customizable messages with replacement-tags
  • Allow the users to do lottery, only after a given time

Commands and Permissions:

CommandPermissionDescription
/lotteryminecraftlotteryWil give the player executing the command a random item, and draw the PAYITEM(defined in the config) from the inventory.
/lottery helpminecraftlotteryWill print out a help to the player.
/lottery reloadminecraftlottery.reloadWill reload the config,blacklist and whitelist
/lottery USERNAME [force]minecraftlottery.adminWill give the USERNAME player an random item, and draw the PAYITEM out of his inventory. By using the argument force you can ignore the PAYITEM, and the time between the lotteries.

Installing

  1. Just download and install the plugin as other plugins
  2. Configure the plugin by changing the config.yml in the MinecraftLottery folder if you want

TODO

  • Add custom colors for the messages

Development Builds

It is not recommended to use those, because they are not checked by the Bukkit-Team. But if you want to use them they're available on GitHub.

Config

Read the comments if you don't understand what the option does.

#Config for MinecraftLottery Plugin

#DO NOT TOUCH
config-version: 4
database-version: 2

#Set to false if you don't want to let the plugin check for updates.
checkforupdate: true

#Distance in minutes between lottery
#set to 0 to allow the user to do as many lottery's as he wants.
#HOUR: 60 min, DAY: 1440 min
distance: 1440 #Minutes

#Maximum count of items you can win
max-price: 10

#message
Message:
#Message when the player tries to
  deny: You already had your lottery.
  
#Message that the player gets that does the lottery
  allow: You get %AMOUNT% of %WONITEM%.
  
#message when the player has no item to pay.
  noitem: You have no %PAYITEM% in your inventory.
  
#Broadcast that will be send when the player won an item.
  broadcast: Gratz! %PLAYER% won %AMOUNT% of %WONITEM%.
  
#Message when the player needs more space in the inventory.
  morespace: You need more space in your inventory.

#Name of the Item that is used to pay
#WARNING: Item ID's wont work!
itemtopay: GOLD_INGOT

#amount to pay
amounttopay: 1

#You can chose if you want to use the blacklist, or the whitelist
#whitelist means it will only use the items that are written into the whitelist.yml file.
#blacklist means it will not use the items written into the blacklist.yml file.
#itemlist: [blacklist/whitelist]
itemlist: blacklist

#Broadcast when someone win's an item
do-broadcast: true

Video Review:

Source Code

The code on [https://github.com/Darcade/InstantLottery/|GitHub]]


Comments

  • To post a comment, please or register a new account.
Posts Quoted:
Reply
Clear All Quotes

About This Project

Categories

Members

Recent Files