Value
What it does:
This a very simple plugin made for convenience. It calculates the price of an item using the prices of the items used to craft it. Clean and simple.
The advantage of having this plugin is that if something ever gets a better value, then all you need to do is set the new price for the item, and anything that uses it will also raise/lower in value.
Here's an example:
If notch were to suddenly do an update that makes wheat OP, then you would normally have to set the new price of every item that uses wheat as a crafting ingredient. Well with this plugin, all you have to do is set the new price of wheat, and everything that uses it as a crafting ingredient will be affected by the new price.
The main idea of this plugin is to make server administrators less of a burden to place the prices on store items, since all this plugin does is show you the value.
Main features:
- Calculates the price of an item using the prices of the items used to craft it.
- Since it only uses 'raw' items, you only need to set up the price for about 1/4 of the total amount of items in Minecraft. Don't worry, There's a default configuration with prices set up by me, so you only need to modify if you feel like it ;)
- Make selling signs that use the values of only raw items to calculate the price of all the items in Minecraft.
How it works:
To get the price of an item, simply hold the item in your hand and type '/value'. The total price is multiplied by the amount held.
To make a Value sign, type in a sign as follows:
[Value]
Sell/Buy
Item ID*
Amount:Price*
* These two options only apply to buying
Now anyone with the value.trade.* permission will be able to sell/buy anything they want by right-clicking this sign. I only made the sign as a little 'extra', but buying/selling is not the main focus of this plugin.
Commands:
- /value - Tells you the price of the held item
- /value sell - Sells the held item for the price calculated by Value. Also takes into account the price drop set in the configuration.
- /value setworth - Sets the prices of the worth.yml of the Essentials plugin to the prices in Value
- /value reload - Updates the prices of raw items in the configuration file.
The configuration file:
The configuration will be generated in the plugin folder when you first run the server with the plugin. Just read the comments and you will know what to do.
Permissions:
- value.command.value - Permission to use the /value command.
- value.command.help - Permission to use the /value help command.
- value.command.setworth - Permission to use the /value setworth command.
- value.command.sell- Permission to use the /value sell command.
- value.command.reload - Permission to use the /value reload command.
- value.trade.sell - Permission to sell things with the sell sign.
- value.trade.buy - Permission to buy things with the buy sign.
- value.sign.sell - Permission to create/break sell signs.
- value.sign.buy - Permission to create/break buy signs.
Requirements:
- Vault
- An economy plugin


-
View User Profile
-
Send Message
Posted Sep 20, 2012I don't have anything that has custom items :(
I do have like 4 billion plugins though, let me weed through and see if it happens with anything in particular.
-
View User Profile
-
Send Message
Posted Sep 19, 2012@diannetea
Everything seems to be in check. It could be an incompatibility with another plugin... probably one that uses custom items that aren't normally available in minecraft. If it's not that, then I'm out of ideas xD
-
View User Profile
-
Send Message
Posted Sep 19, 2012I've tried /value with a lot of items and a lot are giving errors
http://pastebin.com/xpeXigsG
-
View User Profile
-
Send Message
Posted Sep 18, 2012@diannetea
I've tried to replicate the error but for me it's working fine :/ Post your configuration, so I can check for any errors.
-
View User Profile
-
Send Message
Posted Sep 17, 2012I am using the version available for 1.3.5 on the download page, however plugman states that it is version 1.3.4 and not 5 even after redownloading and installing again.
:(
-
View User Profile
-
Send Message
Posted Sep 13, 2012@diannetea
Are you using the most recent version(1.3.5)? Most of those problems were fixed.
Also, the swords stick is made from 2 wood, wich in turn is made with logs, so it ends up looking for the price of logs when calculating the price of a stick
-
View User Profile
-
Send Message
Posted Sep 12, 2012I'm not sure the recipes are correct, a diamond sword is 1. using "wood" (first is there a way to differentiate different wood types?) when it SHOULD be using a stick. 2. It doesn't seem to think it requires a diamond, diamonds come up at 202 coins for me, but a diamond sword is only valued at 4 coins (the cost of 1 wood).
:(
-
View User Profile
-
Send Message
Posted Sep 4, 2012@kohakukatou
I've been working on that recently, but its a bit more complicated than it seems :P
Don't worry though, its a planned feature :)
Also this plugin has no conflict with essentials :D
-
View User Profile
-
Send Message
Posted Sep 3, 2012Since are no other pages created in this project other then the main page and i wasn't sure how to search the previous comments, is there a way to add values to the metadata / damage values of an object? either in game or by hand? I'm just wondering cause im running a couple of mods on my server and wanted to add in there custom items but some of them share item id numbers with just a change in the metadata / damage value... Just to clarify what im asking is if i have Wooden Sword 10, and another items Sharp Wooden Sword 10:1 and then Wooden Shield 10:2, ect... is there a way i can have this program properly configure values? Any help would be greatly appreciated ^^
BTW i'm using essentials for economy as well but i don't think that would have any effect - thanks!
-
View User Profile
-
Send Message
Posted Sep 3, 2012@XxkmachoxX
Dude. You are on top of it! Thanks again for your awesome work! I have the utmost respect for you! I am severely impressed with how quickly you have pushed out these updates!
If I wasn't like completely broke right now I'd throw you a donation! I hope my thanks is enough for now!
-
View User Profile
-
Send Message
Posted Sep 2, 2012@PsychoFad
It was an internal change, the current permissions you have set up should work fine.
And here's the updated plugin, with a fix that prevents the crash:
http://dev.bukkit.org/server-mods/value/files/12-v1-3-5/
@sirrus86
Tested it and that seems to be exactly the problem. I made a quick fix though, that basically prevents infinite loops and uses another recipe for the item when it encounters the same item as the result of the recipe, so no need to disable the 'Polar Blade' power. Both plugins should be compatible now :D
-
View User Profile
-
Send Message
Posted Sep 2, 2012@XxkmachoxX
@PsychoFad
I received feedback from PsychoFad and determined that one of the powers in my plugin, S86 Powers, does indeed create a conflict with this plugin.
The power 'Polar Blade' adds two recipes to the server which each use a gold sword both as an ingredient and as the result (combining a gold sword with snowballs or snow blocks gives you an enchanted gold sword). I'm thinking this is creating an infinite loop in the value system, which would obviously create a conflict.
Fortunately I have some solutions in case your other users mention this same issue to you: 1) In S86 Powers it's possible for the server owner to disable certain powers from being loaded. Disabling 'Polar Blade' and restarting (not reloading) the server should prevent the power from loading, and thus prevent the conflict. 2) I can add a check in S86 Powers to prevent 'Polar Blade' from loading should the Value plugin be loaded, thus preventing owner intervention going forward.
I apologize for any inconvenience my plugin may have caused any of your users. Should any other conflicts between our plugins arise, don't hesitate to let me know.
-
View User Profile
-
Send Message
Posted Sep 2, 2012@XxkmachoxX
You were right...plugin conflict. I have a plugin that gives my players powers called s86powers
http://dev.bukkit.org/server-mods/s86-powers/
and it was the culprit. Guess I'll go harass that author for a bit. :)
Did you change the permissions again? Or just fix something internally with them?
-
View User Profile
-
Send Message
Posted Sep 2, 2012@PsychoFad
No worries, posting any bugs you find is no problem.
Just tested it though, and its working perfectly :O
Maybe its a plugin incompatibility?
By the way, the last version had a couple of errors with the permissions, uploaded v1.3.4.
Here you go so you don't have to wait :)
http://dev.bukkit.org/server-mods/value/files/11-v1-3-4/
-
View User Profile
-
Send Message
Posted Sep 2, 2012@XxkmachoxX
I hate to bug you yet again, but I found another bug. If i try to get the value for a golden sword I get a message that an internal error has occurred and it kicks me from the game. It won't let you sell that item either. All other golden tools work fine....just the sword.
P.S. No errors are shown in the console!
-
View User Profile
-
Send Message
Posted Sep 1, 2012@PsychoFad
Glad the plugin is working well for you.
Preventing members from exploiting prices was the reason I made it :D
-
View User Profile
-
Send Message
Posted Sep 1, 2012@XxkmachoxX
Awesome! I always believed that an open line of communication is the best way for advancement! Plus, this plugin has changed the way I run my server economy. I got eco-raped the first time I set up a shop on a server. I had no idea what things were worth and I created shops with what I thought were reasonable prices and let people sell back to the server (essentials worth) and boy....I learned a lesson....most members will exploit any mistake you make and it doesn't take them long to figure out you made one! I had Millionaires in a matter of minutes.
Thanks a lot for your hard work. I should really learn how to program in java. I could program in basic when I was 13, but life has a way of taking all your free time and running a server can really take a chunk!
-
View User Profile
-
Send Message
Posted Sep 1, 2012@PsychoFad
Uploaded a version with all those issues solved :D
Gotta wait for bukkit to approve it though, that might take some time :P
Turns out the right-clicking issue is actually a problem with bukkit, but I managed to find a way around it. Also when you see an item appearing right before getting sold, this is just a little lagg while the information of placing the block gets back to your client from the server. In reality the block never got placed, and no one in the server ever saw it.
Anyways, thanks for the feedback :)
-
View User Profile
-
Send Message
Posted Aug 31, 2012@XxkmachoxX
Ok...weirdness. In Version 1.3.2 of the Value.jar I have managed to sell all if the items to the sell sign except the tripwire hook..but with a catch. There has to be enough room to place the object before it will sell. For example...my sign is on the wall...The block directly under the sign is considered occupied, I stand on the second block from the wall and they won't sell, If i stand on the 3rd block from the wall they will and the item appears to be placed in the air right before it vanishes and I'm credited for the sell. The torch I couldn't sell until i placed the sign on the ground as it needed a block to place the torch on before it vanished and sold. How did you manage to sell the tripwire? On Version 1.2.0 of Value.jar I do not need this space requirement to sell the chests to the sign on the wall or the ground, but I can only sell the torch to the sign on the ground and the items appear above the sign before vanishing instead of in front of it as they do with the 1.3.2 version. Not sure what has changed between the versions but there is definitely something different. Can't sell the Tripwire hook in either version to a sign (wall or floor sign). But again I CAN sell it with the '/value sell' command in 1.3.2.
Just to be clear though...when I was talking about the Golden Apple before, I meant while I was using an older version of the plugin. The latest version handles both Golden Apples flawlessly. Just can't use it until the Armor values are fixed or members will be cheated when selling them. I allow 85% return on sold items but 85% of $22.89 would suck for an Iron Chestplate. :)
-
View User Profile
-
Send Message
Posted Aug 30, 2012@PsychoFad
Hmm... It's pretty odd that you can't sell the Torch/Enderchest/Tripwire hook/chest. I just tested them and it worked fine :P
Also, dont worry about the golden apple, the plugin knows wich one uses 8 gold_ingots and wich one uses 8 gold_nuggets :D
As for the gold/iron armor giving the incorrect value, I'll fix that as soon as possible :)