XP Item Storage

XP Item
XP Item will allow players to store their XP Levels or XP Experience into any item selected in the config. The players will be able to Left click to Deposit XP Levels or XP Experience and Right click to Withdraw XP Levels or XP Experience. As shown in the image above the amount of xp is saved in the item name and the items lore so that renaming the item will not give extra XP Levels or XP Experience. The item is also prevented from duping by ensuring that only one XP Item gets the XP Levels or XP Experience. The config has settings to log all transactions in the XP Items, change the colors, change the messages shown to players, and set a max amount of XP that can go into the XP Item.
This is also a great way to use disabled items for something useful. I have seen EnderPearls used before as the XP Item to put use to an item that was disabled.
Shops could also sell Bedrock and use it as the XP Item so bedrock could be used for something.
Latest Download (v1.1)
Download here: http://dev.bukkit.org/bukkit-plugins/xpitem/files/11-xpitem-v1-1/
Quote:v1.1
- Fixed duping problem when using Experience
- Updated Update Checker
- Modified Config to store Item names
v1.0
- Fixed error preventing players from using enderpearls.
Features
The plugin will allow any item in game to be used to store XP Levels or Experience.
Currently you can:
- Change the Item
- Change from Experience or XP Levels
- Change amount deposit/withdrawn while standing or sneaking
- Change the max amount per XP Item
- Change Colors
- Change all the messages
- Charge to Withdraw or Deposit Experience or XP Levels
- Ability to disabled or enabled Vault Support
- Log transactions to bukkit log.
Install
Drag and drop Installation. Afterword do a restart or reload.
Then edit the config file made to your liking. Use [/xpitem reload] to reload the config.
Config v1
BackEnd: DONOTTOUCHConfigVersion: 2 allowMetrics: true #Recommended so I can see the most common ways this plugin is used UpdateChecking: true #Only checks on restart and /xpitem reload sendInteractionsToLog: false Settings: itemName: EXP_BOTTLE #This is the item used to store the XP useLevels: false #Set to true if you wish to store XP Levels instead of Experience normalDepositAmount: 10 shiftDepositAmount: 30 maxAmount: -1 showEnchantWhenAmountOver0: true Colors: itemNameAmount: '&6' itemName: '&5' Messages: deposit: '&aYou have deposited {amount} {xptype}.' withdraw: '&3You have withdrawn {amount} {xptype}.' notEnough: '&cYou or the item does not have {amount} {xptype}.' max: '&cMax amount of {xptype} in this XP Item.'
Commands
- /xpitem reload
- XPItem reload command. Requires xpitem.reload perm.
Permissions
- * xpitem.reload
- Gives use to reload config.
- xpitem.deposit
- Allows a player to deposit levels
- xpitem.withdraw
- Allows a player to withdraw levels
- xpitem.bypasscost
- Allows a player to bypass a price to withdraw or deposit
Quote:This plugin utilizes Hidendra's plugin metrics system, which means that the following information is collected and sent to mcstats.org:
- A unique identifier
- The server's version of Java
- Whether the server is in offline or online mode
- The plugin's version
- The server's version
- The OS version/name and architecture
- The core count for the CPU
- The number of players online
- The Metrics version
- If the server is using XP or Experience
- The Item name of the XP Item
- Opting out of this service can be done by editing plugins/Plugin Metrics/config.yml and changing opt-out to true.
To-Do
- Add ability to make players pay to withdraw or deposit money
Vault: enabled: false withdrawCost: 0 depositCost: 0
- Add more features from requests.
Bugs or need help
- Post a comment or a ticket for bug or error help.
- If I have not replied quickly you can find me on skype: EnkyHD


-
View User Profile
-
Send Message
Posted Aug 23, 2013@EnkyHD
Sure, its somewhat hard to understand myself, to recreate the issue:
- Fill xp into an item
- Withdraw some xp to get you to level 10
- immediately make a level 10 enchantment on a enchantment table
- You are now level 0
- but when you withdraw any amount of xp from the item storage it will jump you back to level 10 no matter what, I have tested this with level 30 enchants, and it explains why many people on my server had double chests of really good enchantments.
-
View User Profile
-
Send Message
Posted Aug 20, 2013@zDylann
Can you explain a little more? I don't quite understand.
-
View User Profile
-
Send Message
Posted Aug 14, 2013Having an issue with this plugin, when a player deposits/withdraws xp then enchants an item, when they interact with the xp item storage again it just reverts them back to there xp prior to there deposit/withdraw therefore duping xp. I have tested it many times and it is indeed an xp exploit.
-
View User Profile
-
Send Message
Posted Jul 19, 2013@blueslime360
Try updating Java to the newest version of Java 7. If that doesn't work then make sure there is only one XPItem.jar in you plugins folder.
@zDylann
That is not checking if the player has the XPItem, it is a connection error. If this error still occurs then you could disable the updateCheck in the config.
-
View User Profile
-
Send Message
Posted Jul 18, 2013Getting this error on PlayerJoinEvent(s). It occurs even when the player doesn't have the xp storage item on them.
-
View User Profile
-
Send Message
Posted Jul 18, 2013i already have java 7
-
View User Profile
-
Send Message
Posted Jul 18, 2013@blueslime360
You need to update to Java 7.
-
View User Profile
-
Send Message
Posted Jul 18, 2013hi, EnkyHD well i got this problem which this type of error is coming out of all the good plugins i get. well here the error
[SEVERE] Could not load 'plugins/XPItem-1.jar' in folder 'plugins' org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError: com18bytes/plugindev/xpitem/main/XPItem : Unsupported major.minor version 51.0 at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:184) at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:305) at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:230) at org.bukkit.craftbukkit.v1_6_R2.CraftServer.loadPlugins(CraftServer.java:239) at org.bukkit.craftbukkit.v1_6_R2.CraftServer.<init>(CraftServer.java:217) at net.minecraft.server.v1_6_R2.PlayerList.<init>(PlayerList.java:56) at net.minecraft.server.v1_6_R2.DedicatedPlayerList.<init>(SourceFile:11) at net.minecraft.server.v1_6_R2.DedicatedServer.init(DedicatedServer.java:106) at net.minecraft.server.v1_6_R2.MinecraftServer.run(MinecraftServer.java:391) at net.minecraft.server.v1_6_R2.ThreadServerApplication.run(SourceFile:582) Caused by: java.lang.UnsupportedClassVersionError: com18bytes/plugindev/xpitem/main/XPItem : Unsupported major.minor version 51.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) at java.lang.ClassLoader.defineClass(ClassLoader.java:615) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) at java.net.URLClassLoader.defineClass(URLClassLoader.java:283) at java.net.URLClassLoader.access$000(URLClassLoader.java:58) at java.net.URLClassLoader$1.run(URLClassLoader.java:197) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at org.bukkit.plugin.java.PluginClassLoader.findClass0(PluginClassLoader.java:80) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:53) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:249) at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:173) ... 9 more
but this is the thing. every time i host my server clicking the cmd (terminal in my case) this error pops out but when i double click craftbukkit.jar it works and the same thing for other plugins i got so what can i do?
-
View User Profile
-
Send Message
Posted Jul 16, 2013@CraveMode
The players could just trade the item with another player by dropping it to them.
-
View User Profile
-
Send Message
Posted Jul 16, 2013Hello, I was looking for a plugin to store xp. Was thinking of bottles or books, but this allows me to config it.
I have not tried this yet, but do you have plans or would it be possible without allowing duping to send xp to someone? I see there are some xp bank and xp currency type plugins but I would love to store them in an item and trade or just to transfer xp to another player too without adding a bunch of other plugins.
-
View User Profile
-
Send Message
Posted Jul 13, 2013@esejuli94
Uploading this fix in v0.6
-
View User Profile
-
Send Message
Posted Jul 13, 2013Hello, i love this plugin but i have a important problem. When i change the item id and i try to use the ender pearl don't work, by that I mean that when I throw it doesn´t teleport me :S. You could solve this please. Thanks for your atention.
-
View User Profile
-
Send Message
Posted Jun 28, 2013@EnkyHD
Thanks! I gladly appreciate it!
-
View User Profile
-
Send Message
Posted Jun 28, 2013@EnkyHD
Thank you, I assumed that's what it meant. I was just wondering what I should do. Can't wait for the next version!
-
View User Profile
-
Send Message
Posted Jun 28, 2013@Nosibor_Nedle
Yes I will add that now.
@Mizzet3
That means that the itemID is invalid. But I think in the next version I will have that fixed.
-
View User Profile
-
Send Message
Posted Jun 27, 2013Having an issue here installing... My console says:
Plugin disabled : Invaid item : /xpitem reload
Any help is appreciated!
-
View User Profile
-
Send Message
Posted Jun 27, 2013Could you make it where players require a permission in order to storage and remove xp from the item. That way it could be a perk for higher ranks?
-
View User Profile
-
Send Message
Posted Jun 26, 2013More pictures and examples will come later today. Also v0.1 should be accepted by mid day.
-
View User Profile
-
Send Message
Posted Jun 25, 2013o nice, I like the look of this!
-
View User Profile
-
Send Message
Posted Jun 25, 2013@blueslime360
It will be released tomorrow. I promise!