ItemsForXP
Buy items with your XP (experience) via signs. Simple!
Summary
"It's all about special signs!"
Many of us love the experience point system. Some of us would also love to have another way to gain some of those hard to find/craft items without cheapening the gameplay. Put these two ideas together and you get ItemsForXP! It's inspired by the instant gratification of plugins like SignShops. ItemsForXP allows you to setup signs with a simple, specific layout and to spend your hard earned XP on much needed materials and items. Permissions is normally required to place one of these special signs and also to use the sign. However, you can disable Permissions in the config file.
Xtra Features
Now, you can have even more goodness with the new Xtra Features add-on. Players can sell their items to signs and get XP in return. In a later version, players will be able to set up their own signs and sell items to each other. You'll have a full economy based on experience points! All the information you need about this add-on (configuration, permissions, etc.) is under the appropriate sections on this page in sub-sections titled "Xtra Features." For a longer explanation of what the Xtra Features add-on is and why we have one, read the "What is Xtra Features?" page.
Features
- All you have to do is place a sign to get started!
- Supports permissions via SuperPerms (built into bukkit) or PEX. (can be disabled in config.yml)
- Handy
/checkxp
and/level
commands. - Console logs (with coordinates) whenever a user tries to do something with a special sign.
- Fully customizable (translatable) messages in the game and console!
Xtra Features
- "Pawn" signs that allow players to pawn off their items and get xp.
Commands
/checkxp
- Find out exactly how much XP you have/level
- See what your level really is. There are specific occasions when minecraft doesn't update the number in the HUD./levelup
- Debug mode only. (See Configuration below.) Gives you the xp needed to level up.
Xtra Features
None.
Placing Special Signs
Here is an example sign:
Quote:
[ItemsForXP]
- Case does not matter (ie.[itemsforxp]
works just fine).
42x1
- Item ID times Quantity (Spaces are allowed now!)
18
- Cost (Experience points) You may placexp
on this line as well.
18xp for iron
- You can put whatever you want on this line
- You may also use
[Buy With XP]
(or what ever you configured) instead of[ItemsForXP]
. - That is an x on the second line, but you may use an * instead. You can find Item IDs here. You may use data/damage (like for colored wool) by doing something like
35:15x5
(five black wool). - The game will let you know if a sign is invalid when you try to use it.
- I often like to place the item (a block of iron in this example) underneath the sign for a quick and easy visual reference. Of course, this is not required.
Xtra Features
The layout is the exactly same, except the top line must be [Sell for XP]
instead. This can also be modified (in the add-on's config file).
Configuration
No configuration is necessary to use this plugin. However, you may customize the plugin's operation. A new config.yml is automatically generated if the plugin cannot find it (like when you run it for the first time). Click here to see the default config.yml. If you would like a new configuration option, just post below and tell me.
There are explanations in the file for each option, but here's an overview:
Debug
This will put all kinds of useful information in the console. This can help me determine why the plugin might not be working correctly for you. Just set debug: true
, save the file, and reload your plugins via the /reload
command. Then me everything it spits out.
Use Item
Players are required to hold a certain item when they punch a sign. This keeps the players from accidentally buying stuff. By default, they must be holding paper, but you can change that here. Just set this option to the ID of the material you want (item data is not supported). You can find ID numbers here.
Sign Title
The signTitle
option lets you specify a different tag to put on Line 1 of your signs. You could remove the braces ("[" and "]"), replace them with dashes, or change the text from [Buy With XP]
to [Crap Shack]
. Whatever you want to do. If you change this, [Buy With XP]
will be unavailable until you change it back. [ItemsForXP]
is built into the plugin, so it will always be available.
Permissions
Normally, this plugin requires permissions. Now you can tell it shut up and deal without it …in a nice kind of way. You can disable permission for either placing signs, buying from them, or both. You will find these options indented under permissions:
.
Messages
There are a lot of config options in this section. I will not explain all of them here. They allow you to change the text that the plugin displays. There are three subsections: Global, Console, and Game. Console options are text that appears in the console. Game options are text that appear in the chat in-game. Global options are used in both the console and the game. Finding the option for the text you want to replace simply requires some searching (with your eyes or CTRL+F). Descriptions and default values are provided in comments in the config.yml file. They are very helpful.
Xtra Features
View the full config here.
Sign Title (Pawn)
Similar to "sign title" above, this is the first line on pawn signs. These are signs that allow users to sell their items and get xp in return.
Messages
Most messages are pulled from the main plugin's config file, but there are some messages that are exclusive to the add-on. These messages can be translated/modified here.
Permissions
ifx.sign.place
- Users who can place special signsifx.sign.use
- Users who can buy from special signs
Xtra Features
ifx.place.infinite.pawn
- Users who can place "pawn" signs (signs which allow users to sell their items and get xp)ifx.use.infinite.pawn
- Users who can sell their items to a sign
Version Stuff:
Plans
- Add commands as an alternative to laying out the sign specifically - (config option?)
- Come up with a way to sell actual items (instead of infinite sales out of thin air) [Xtra Features]
- Investigate the implications of supporting economy plugins [Xtra Features]
- Possibly add configuration options to customize logging? Let me know!
Latest Release
- Restructured code to make way for new features
- New "Xtra Features" add-on! That's right, an add-on for the plugin (for the server mod for minecraft). :D
- Added ability to sell items to signs in exchange for xp [Xtra Features]
- New config option for this
- A few new translatable messages too
- Added ability to sell items to signs in exchange for xp [Xtra Features]
@musicin3d
I hope it's not too hard to accomplish!
I've personally been having many problems trying to get econXP to work properly with vault and essentialseco, because Vault automatically hooks into essentials first :(
The only solution to this, is to use a plugin dedicated to using xp for item buying/sell, which is what you're doing! Take your time and do your best, it's extremely appreciated.
That's exactly how the xp system works in minecraft. Your xp is actually a percentage of the next level. I realized today that this sucks if you use your level for enchantments. The next release will instead take into account what level you're on. This will effectively utilize all xp that you've collected, even when you level up.
@xXReVurbXx
Same problem.
Yep. Your plugin is trying to find the exact xp a person has,
however it resets this value to 0 every level up.
:(
@zOxigen00
What do you have on the sign? What version of CraftBukkit are you running?
If it says the sign is invalid, it probably is. Your xp does reset at each level, and each level requires more xp to move to the next level.
Hmm now work for me :/
ERROR: This sign is invalid
however i try
EDIT: If i leveled up my /xp is reset and not show the real xp
@zOxigen00
Haha that's such a great idea. And simple too! I'll try to get to it today.
I think is better if u put the texts in a config file so anyone who need other languange can change it. :)
And thx for the update
New update is out! :D
@zOxigen00
Sure. I only know Spanish, but I can use Google Translate. :D What language would you like?
Am is there a chance to change the texts other languanges? That would be great :D
@Joager
What about it? What would you like me to do?
What about Heroes support?
Awesome plugins, tho.
@zOxigen00
Are you using Minecraft 1.0? CraftBukkit for 1.0 is still in the works, so there are a lot of bugs. This is one of them. I can only support recommended builds. Sorry.
Im sure my PEX is configured correctly, the problem is the same anytime or anyhow i try. [ItemsForXP] ERROR: This sign is invalid
Thx for the new update again, and to support color and other items.
EDIT:
It works now with this 1.2 but... always have a but :D So, ihave 118 XP i bought something with 12xp and after the buy i have 0XP. i tried more version of buy but same story, and the xp line not changed. /xp not show the correct xp that i have.
@zOxigen00
The next update (coming in a couple days) will support using * instead of x. It will also support item data, such as wool color. The current version does not.
Now about your issue…
This sounds like a permissions issue. For the next version, I have changed the way it looks for PEX, so it should correctly recognize it on your server at startup. Though, it should not matter once you start playing. Are you sure you have permissions set up correctly on your server? The only time the sign should go blank is if you don't have permission. It will also tell you in chat. Do you see a message saying, "You do not have permission to place that sign!" ?
@AkioKasai
The short answer is: This plugin does not support 1.0
I can only support recommended builds, as an issue like this will probably be resolved by bukkit. Thanks for trying it out though! :D
Gave this a bit of a testrun on a 1.0 server, ran into a little bit of a snag.
Using the /xp command at level 0 with half a bar of exp or so, said I had sixty-seven experience. However at level five, with barely any bar, it says I now have nine.
Unsure if this is common or something is wrong.
Edit: With 79xp, I set up a 50xp costing sign. When I used it however, it said I had 0xp left, my experience bar however, didn't drop in the slightest.
-AkioKasai
@zOxigen00
Oh wow. Ok let me look into all that right now...
Hmm there was no spaces at all the signs, but thank u for the update i try it as soon as i can. Otherwise it would not be better a * instead of x? Just an idea :D
oh and i forget to try, is it work if i use ID-s: 35:15 (black wool) like this example ?
EDIT:
Hmm i installed this new one, and i just cant write anything on sign, i mean i write and it dissaper at once.
Btw console log:
2011-12-06 12:05:51 [INFO] [ItemsForXP] version 1.0 is starting up... 2011-12-06 12:05:51 [INFO] [ItemsForXP] No permissions plugins detected. Falling back to Bukkit API 2011-12-06 12:05:51 [INFO] [ItemsForXP] Debug is set to: false 2011-12-06 12:05:51 [INFO] [ItemsForXP] Start up completed!
2 misstake as i see its 1.1 as i know and i have permissionsex 1.16 or 1.6 dunno now but this plugin not see that.