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:
Command | Permission | Description |
---|---|---|
/lottery | minecraftlottery | Wil give the player executing the command a random item, and draw the PAYITEM(defined in the config) from the inventory. |
/lottery help | minecraftlottery | Will print out a help to the player. |
/lottery reload | minecraftlottery.reload | Will reload the config,blacklist and whitelist |
/lottery USERNAME [force] | minecraftlottery.admin | Will 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
- Just download and install the plugin as other plugins
- 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]]
Schade wird das Plugin nicht weitergeführt :(
@Bastikeks
Danke für deinen Post im moment bin ich krank und habe kaum Zeit es zu fixen, aber ich werde es bald tun.
Mfg Darcade
Habe hier leider nochmal 2 Fehler gefunden, bei denen es in beiden Fällen einen "internal error" im Chat gibt:
Beim 2. Fall gehts auf jeden Fall um die DYES ...
Version des Plugins: Release 1.2.2 von GitHub - Bukkitversion: spigot-1.7.2-R0.4-1325.jar:git-Spigot-1325
@IrusVirus
Habe das Problem gefunden wurde nun in der 1.2.2 Version gefixt dankeschön für die Info :) Sie kann wie immer auf Github heruntergeladen werden :)
Mfg Darcade
Spieler machte '/lottery', Geld wurde abgezogen aber erhalten hat er nichts.
TipTop! Scheint mit v1.2.1 alles zu laufen :)
Ich hätte da noch eine Erweiterung auf Lager welche ich dir gerne im TS erzählen würde.
@IrusVirus
Ich werde es sofort wenn ich nachause komme versuchen zu beheben. Tut mir sehr leid, aber als ich es versucht Gabe ging es...
Mfg Darcade
A) Spieler gewinnt 6 Holztüren, er hat 5 Slots frei, erhält aber keine Fehlermeldung und auch keine Türen...
B) Manche Spieler können nach den eingestellten 60min weiterhin lotto spielen, bei anderen steht nach >60min aber noch immer, dass sie warten müssen... da muss was falsch laufen nicht?
@IrusVirus
Die neue version wurde von Bukkit noch nicht geprüft ich habe es nochmal bei Github hochgeladen:
HIER
Trotz der Permissionsvergabe 'minecraftlottery', können unsere User den Befehl nicht ausführen... hast du da was geändert oder gibt es neue Permissions?
Thx für die Antwort :)
@manuelgu
Im moment habe ich micht noch nicht um die farbcodes gekümmert, aber danke für die info. Ich werde es auf meine todo liste setzen. :)
Solltest du noch weitere ideen haben einfach schreiben.
Mfg Darcade.
Hallo xDarcade,
wie kann ich in der Config Farbcodes verwenden? Wenn ich '&cTEXT' benutze, spuckt die Console einen Fehler aus, wenn ich es mit '§cTEXT' wird zwar der Text in der entsprechenden Farbe angezeigt, allerdings kommt davor immer ein 'Â'. Woran könnte das liegen?
LG
@dddylan98
Oh thanks Youre right I will fix it in the next update :)
@IrusVirus
Danke für die Vorschläge. Ich werde versuchen all diese Funktionen einzubauen. Leider bin ich aktuell im Ausland und kann hier nicht programmieren. In einer Woche kann ich wieder Programmieren :)
Ach ja es freut mich sehr, wenn ich sehe, dass jemand dieses Plugin benutzt, und sogar noch mehr Funktionen vorschlägt :)
Mfg Darcade
Hallo xDarcade (du bist ja Deutscher :) )
Verbesserungsvorschläge:
- in der Config sollten die Replacement-Tags vorhanden sein damit man z.B. beim Broadcasten folgendes einstellen könnte:
- Einstellbar wieviel Lose ein Spieler ziehen kann
- Einstellbare Zeit bis man ein nächstes Los kaufen kann
- Eventuell MySQL support?
- Ein Reload-Befehl
- /lottery help = Infos zum Plugin, dein Name, Version, Link auf Bukkit?
- Die Option, ob man eine Whitelist oder eine Blacklist haben möchte
Joa das wars erst mal :) Danke für das Plugin, gib mir mal deine PayPal-Adresse =D
LG
Irus
I hope you realize that it is not in English like the config shows.