EconXP
Overview
version: 0.5.0
| craftbukkit: #1.3.1
| Source | Developer API
Features
- Let players use their experience points to buy things! Since people can already buy Enchantments with experience points, why not buy be able to buy from shops as well!
- Supported by Vault!
- Works with Minecraft 1.3.1!
- Simple config file!
- No permission system needed (though there are permissions available if you want them)!
Description
EconXP is an economy system that users the player's experience points (the green orbs collected from monsters) as the currency. With the introduction of Enchanting costing experience, it will be interesting to see economies based around the concept of trading experience points, especially since they are already naturally collected and used, thus giving them an inherent value.
EconXP is now supported by Vault, so any shop or currency-related plugin that uses Vault can have EconXP as its currency type! I will also be adding Register support later, allowing EconXP to be used with many existing shop and economy-related plugins.
Minecraft Levels and Experience
Minecraft's levelling system is a bit strange and can be confusing to some people. Here's a quick explanation of how it works.
Players collect experience by slaying monsters, and the experience appears as green orbs on the ground. Upon receiving experience, players gain levels. As of MC 1.3.1, the calculations have changed for levels. I'm too lazy to write out the actual equations, though, so you'll have to check out the Minecraft wiki: MinecraftWiki.net
Developer API
Check out the API description here: Developer API
Configuration File
Configuration file can be found after starting the server, under the EconXP folder (inside the plugins folder).
Quote from the Config file:death-drop-percent: 100 - [0 to 100] By default, all players drop all of their experience (rather than only 60% of the old total). Do NOT use decimals here (or a percent sign). Set this to 0 (zero) if you do not want players to lose their experience points when they die.
Commands
Commands are OP-only by default, with the exception of the balance (self-only) command. Therefore, players should not be able to transfer experience unless given permission to use the command. All commands map 1-to-1 with the respective permission (see the Permission section below).
All commands can use abbreviated forms. For example, you may type /exp bal instead of /exp balance. Player names and amounts can not be abbreviated, however (for obvious reasons). Capitalization of player names does not matter, though.
All <amount> and <factor> values must be positive (greater than or equal to zero). All <amount> values must be whole numbers.
Quote from the Command list:/exp OR /econxp - The base commands (ie. /exp add Agnate 5 ). Either base can be used.
/exp add <player> <amount> - Add experience to the player.
/exp subtract <player> <amount> - Subtract experience from the player.
/exp multiply <player> <factor> - Multiply experience of a player by the factor.
/exp divide <player> <factor> - Divide experience of a player by the factor.
/exp set <player> <amount> - Set the experience of a player.
/exp clear <player> - Clear ALL of the experience of a player.
/exp balance - See your current experience points.
/exp balance <player> - See the current experience of a player.
/exp give <player> <amount> - Give some of your experience to a player.
/exp transfer <giver> <amount> <receiver> - Transfer from Giver to Receiver.
Permissions
Permissions are required to use any of the commands. Players can receive experience without having any permissions.
Quote from the Permission nodes:econxp.* - Allows all commands. econxp.add - Allows player to use the add command.
econxp.subtract - Allows player to use the subtract command.
econxp.multiply - Allows player to use the multiply command.
econxp.divide - Allows player to use the divide command.
econxp.set - Allows player to use the set command.
econxp.clear - Allows player to use the clear command.
econxp.balance - Allows player to use balance to check players' balances.
econxp.give - Allows player to give their own experience to a player.
econxp.transfer - Allows player to use the transfer command.
To Do List
My current to-do list:
- Finish Register support. (on hold until Vault is finished)
- Add some examples to the Develop API.
Changelog
View the Change Log.
Credits
- Flamers for helping with the banner's screenshot!
- Nijijokun for posting his iConomy source (and thus helping me figure out JNBT)!
- garbagemule for inspiration and code help along the way!
Okay this plugin works for, 1.16 just it keeps the baltop to be at -1 found a work around with it. Because there is no /baltp in it I decided to try a different plugin.. https://www.spigotmc.org/resources/xp-economy-use-experience-as-your-economy.66858/ and using it with it. It works together wonderfully on my paper server. Just when I did xpconomy a plugin for 1.16 players who paid each other would pay one another well the xp would jump.
So wanted to say it does work if you're having bal problems try the other plugin, it'll work out together. Or should don't know how everyone else is set up. But hope this helps for anyone who wants to use econxp.
In reply to boltwolf1:
Just a side note when using that plugin, change the levels to xP in config if you use econxP. It confused me why the bal wasn't the exp cause I left it to be levels to be money lol. This is for xpeconomy okay. Hope it helps.
Experience Level would be better than just experience
I'm having some trouble with using exp as a currency on [buy] signs, here's what my progress looks like so far. I'm guessing I'm doing something wrong but I don't really know what. [Buy] 1 Wood 5EconXP
Also please add reload command.
<<reply 1982401>> …swimmingly! Sir, I am adopting this for my server. :D
ANYWAY! I'd like to suggest two things!
1) some sort of player-configurable reminder of their current balance. When someone's hunting for XP, or farming on a mob spawner or whatever, just a message on the chat, or the scoreboard.
2) ability for server owners to set name and symbol for the currency, for localization purposes.
How does this plugin deal with offline players receiving payment?
Is it possible to remove [EconXP] and change the messages for each command?
I've haven't gotten any replies from either my ticket or the pm I sent. I hope you're still interested enough to add a bit to the plugin.
Update the plugin to work with factions bank and others pls!!!!
@AgnateHeartstone
i really want this
@grevinelveck
It might be a problem with Minecraft itself. Like when you kill the enderdragon and go back to the main world it often doesn't show the real amount of experience they have until they relog or gain more experience.
I'm not sure if this is a common problem or just due to the plugins I have but I have it set to 60% when the player dies they do not drop and exp and you have to exit and log back in to see your new exp total. This is the same for any percentage that's just what I have set. running CharonsFerry, Citizens2, CommandBook, CompatNoCheatPlus, CookMe, CraftIRC, Denizen, DurabilityNotify, EconXP, Enchanter, Herochat, Infected, MagicBookshelf, Monster Apocalypse, NoCheatPlus, NodeGuard, Orebfuscator, PermissionsBukkit, PorteCoulissante, RetractableBridge, SignShop, StarterKit, TravelPad, VanishNoPacket, VoxelSniper, WorldEdit, WorldGuard, iChat, ijmh, mcMMO, and uIRCBridge
@EDawg878 Its because EconXP still doesn't support banks. I really need to add this, as I'm tired of seeing it as a comment, haha!
@AgnateHeartstone
Econxp doesn't seem to be working with Vault and/or Factions When depositing money in a faction's bank, the bank balance is still stuck at -1 However, with other vault supported economies it seems to work fine. Im using Factions 1.6.9 Vault 1.2.17 Econxp 0.5.0 Any ideas on how to fix this?
@sleite Yeah, I can add those in on the next update. :)
Any chance of adding an alias of /money instead of /exp? And while we're on the topic, I'm sure many out there might appreciate /xp instead of /exp.
Thanks
@fjutte Offline players still receive the appropriate experience and levels. :)
Hmm, this could be really handy for my rpg server, but a question first: if player is offline, will they get (or loose if someone sold to them in a shop) the xp when logging in?
@AgnateHeartstoneI wasn't intended to start a discussion here, I accept your reasons and I thank you for explaining me those.
I was'nt able to find a relating plugin yet, but this doesn't mean there is no mod out there. I'll continue my search. But I got a bunch of ideas now, wish I could write my own plugin... Well if you decide some day that such a plugin could be worthwhile and start working on it you may inform me so I can share them; don't want to spam even more.
Oh and thanks for your answer, glad to see how commited you are. :)