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.
This is still active, right?
when players are offline, will they still recieve their item?
How does this work? How do i change file to Votifier as listener so it'll work?
Does not work 100% of the times. No error codes or anything. simply doesn't register all of the votes.
Update? Love this plugin <3
@Cronos1979
Nah, there's no error with it. Sometimes it works sometimes not. Mostly it doesn't work when multiple votes enter at the same time.
Pls compile your code.
It does also sometimes create a NullPointerExeption.
@webshoptv
It looks like an economy issue the line of code throwing the error is trying to get data from vault. Can you post what version of vault and the broadcast_message_econ: lines from your config?
2012-12-21 10:59:59 [SEVERE] Could not pass event VotifierEvent to ItemsForVote v0.0.6b
org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462)
at com.vexsoftware.votifier.net.VoteReceiver$1.run(VoteReceiver.java:181)
at org.bukkit.craftbukkit.v1_4_6.scheduler.CraftTask.run(CraftTask.java:53)
at org.bukkit.craftbukkit.v1_4_6.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:345)
at net.minecraft.server.v1_4_6.MinecraftServer.r(MinecraftServer.java:530)
at net.minecraft.server.v1_4_6.DedicatedServer.r(DedicatedServer.java:224)
at net.minecraft.server.v1_4_6.MinecraftServer.q(MinecraftServer.java:494)
at net.minecraft.server.v1_4_6.MinecraftServer.run(MinecraftServer.java:427)
at net.minecraft.server.v1_4_6.ThreadServerApplication.run(SourceFile:849)
Caused by: java.lang.IndexOutOfBoundsException: No group 5
at java.util.regex.Matcher.start(Unknown Source)
at java.util.regex.Matcher.appendReplacement(Unknown Source)
at java.util.regex.Matcher.replaceAll(Unknown Source)
at java.lang.String.replaceAll(Unknown Source)
at com.github.Cronos79.ItemsForVote.CustomEventListener.BroadcastEconMsg(CustomEventListener.java:125)
at com.github.Cronos79.ItemsForVote.CustomEventListener.SetItem(CustomEventListener.java:54)
at com.github.Cronos79.ItemsForVote.CustomEventListener.onVotifierEvent(CustomEventListener.java:33)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425)
... 11 more
Sorry I have been gone for so long.. I sadly ran out of time to code. I would still like to add a custom config to change item names or add missing items. I Saw the CB change with 1.4.5 So I built the plugin on the new version. Soon as bukkit approves the file it will be on the download links.
Will their be any updates for the plugin soon? Also i was wondering if you were going to make any other plugins you seem like a good coder to me for a first timer :D
love this plugin thanks so much, really adds fun to voting. Is there any way in the next update that you could add item names for potions and spawn eggs? so when ppl vote it comes up in the msg, instead of the numbers? again, thank you
<3 Cat
Can you add the option to detect Groups from GroupManager I want to give donators a better chance to get items that normal players would have say a 1% chance of getting
e.g
Member Very good chance: 1% Donator Very good chance: 5%
Some of the names for items are way off, or non existent.
Suggestions:
Perhaps a way for it to detect if the item's name/amount is plural or singular.
And a way to reward offline players, or players who's inventory is full when they vote.
Any help with this error? http://pastebin.com/gGh2A4hA
@Cronos1979
Awesome, thank you.
@OtterTrotter
Yes is a random value between the min and max. I have been a bit busy irl when i get coding again im going to add a option to set a number so it is not random ..if you want to only give 3 items not 3-5.. for now you can set min max to both 3 to do that i believe.
@Cronos1979
The config help page was a little bit unclear form e. Are the min and max values used to control how many items a user can get from said list? So if i put min to 2 and max to 5 a user could potentially get 2 to 5 items from that list?
just put one item in a category and set it to 100 and all the others to 0 for now im going to add that feature later on
how do you make it so that it only gives you one thing when you vote instead of it being a randomizer i'd like it to be like that for example it would only give you $50 money ingame
Thats strange not sure why it would make two. Ill look into the bug