Items for vote
Items for vote
Version 0.0.6 changes the config
It should auto update with your settings except the web link
after updating change the broadcast message in the config and /reload (sorry didnt make a reload command yet)
Version 0.0.6 config help
Works with Craftbukkit 1.3.2
This plugin listens for Votifier votes and gives players a random item.
It has 4 item lists in the config each can be set to give a min and max random number of items.
You can set a percent chance for each list to be picked.
You can set your websites url to be displayed in chat for others to know where to vote.
Small simple to use.
Required Plugins
Optional Plugins
Vault - For econ support
Install
To install:
- Place jar file in your plugins folder
- Restart server
- Edit the config with the items you would like to give out.
- Add your website to the config.
- Reload configs
Current version
v0.0.6a
updater should now work on all servers
v0.0.6
- Let admins write there own broadcast messages
- Add an auto config updater
- Version 0.0.6 config help
Info:
- Can use any Item ID (no enchants yet)
- Damage values work ItemID:DamageValue
- Can use economy with vault
- All items will show name in broadcast message
- Custom broadcast messages with colors.
- Bonus roll does not work yet
Old versions
Road Map
v0.0.7
Add more options for the broadcast messages
Add bonus roll
Add custom item names
Add reload command
ToDo
ToDo list:
- Add another category for single items like weapons/armor
- Add enchanted items
- Add bonus roll.
- Add /commands to add, remove items and reload the config
- Allow custom names for items
Known bugs:
- Some wool says player won coal, but they get wool(Display issue only) (Fixed in v0.0.3)
- My web address was hard-coded in error messages (Removed my web address in 0.0.3)
Help me!
Talk to me live on my minecraft server 91.121.226.106 (user name Cronos79)
or leave a comment below.
Why are there two identical configs? I just put the same thing in each. Not sure what that's about.
EDIT: One is now blank, and the other is working hmm.
Anyways, here's a bug report for you: http://imgur.com/HrzUM
@astranathan45
no this is the listener you need to use votifier for this to work
Must i still make a vote listner to use this?
Faldonboy - It should work on all the servers. All it does is hook into votifer and when a vote comes in it gets player name and gives the items. I have about 8 voting sites on my site. one does not work but thats on the voting pages end. all 7 others work though
notif those are some good ideas I'll add them to the todo list:) The way I have the code currently I cant do a lot of that but i would like to give more power to the user on how he wants the rewards given out. So after I get the core features all in Ill start to rewrite the reward system My long term goals would be to keep the config as simple as i can to use out of the box. (my original goal of this plugin) Yet let a user modify it he wants to change the way rewards are given out. for the more advanced users.
Some features I would like to see:
- Give multiple items for some rewards. OR:
- Have a reward that's given all of the time, in addition to random rewards
- Specify how many of an item to give, with average and min amount acting as a multiplier. Or to ignore the random amount altogether
- Reward exp/potion effects
Thanks for the best random voting plugin thus far!
Not sure if I'm doing something wrong or if this is intentional but my server has 4 votifier sites players can vote on but this plugin only gives the item for the first site they vote on but any votes after that result in no reward.
Not sure why but the configs all updated correctly on my test server
When i pushed the update to my live server it didnt update the config
you can add
broadcast_message_item:
- '<displayname> &avoted for the server! and got &b<itemamount> <itemname>'
- '&cVote for the server at &dYOURURL'
broadcast_message_econ:
- '<displayname> &avoted for the server! and got &b<econ>'
- '&cVote for the server at &dYOURURL'
to the old config for now to get custom messages in v0.0.6
I'm going to try and see why it isnt updating correctly on my live server and put out a v0.0.6a tomorrow hopefully
@rmh4209
Thank you I'll have to check that out
@Cronos1979
You can use a class called CommentedYamlConfiguration by dumptruckman to put comments inside configuration files. It's very useful.
I think the way im going to do it is make a items.yml
with a list inside like
items:
- id name
- id name
that will override my names. so you could add custom items or rename any of my item names if you dont like them.
One downside I found out by trying different things out is bukkit does not save config comments :(
so my default config with the help comments. All the comments will be wiped out when I add /commands to edit the config from in game.
or the auto updater I'm adding next update.
It needs to be done. I'll just have to make a how to page on the site here for all the config stuff
@Cronos1979
Haha well, I'll definitely leave that part for you!
I'll gladly sponsor you a beer and/or non-alcoholic beverage if so! :D
@Kapten_Knas
I'm sure i could do that. Not sure how right now. I'll have to look into it. Guessing make a second .yml file with custom item ids - names
Doing it that way I could let you rename any item as well If i put all the items with there id number in it. Right now I have it all hard coded in with a massive if else statement..
If anyone can think of an easier way pm me!
Epic plugin! Simple yet powerful, and functioning! I have a slight request though to be able to add custom items on your own, replacing the "got <amount> Item ID: <ID>" with the name entered. I'll make sure to send a donation your way if you pull that off. :)
Finally something simple for Votifier! I've been looking for a simple Votifer listener for weeks now.
I was going to write my own this week-end but I came across this. Thank you man, you saved me a week-end of work :)
Really looking forward to being able to add my own broadcast :)
Sorry for so many small updates. I'm new to java and trying to keep this as bug free as i can. So I'm only adding one feature at a time so far.
ok thanks looking forward for all the new features you'r adding :)
@rusty0509
Thats a good idea. I'll add it to the ToDo list. I know a simple way of doing it.. with limited options. Ill try and make it more advanced after i get a few other things in.
can you make it so people can customize the broadcast message when you vote please? :)
@Cronos1979
if u do you should make it essentials eco :)
@dotapurex1
I'm not sure. that depends on if votifer passes that info to my plugin. I'll check that out. If it does that will be simple to do.