eXPra
Overview
eXPra allows players to be rewarded experience orbs ("XP") for other tasks than just killing monsters and mining ores.
Currently, players are only rewarded XP from slain enemies (and other players) and mining certain ore. By contrast, with eXPra, players will earn XP through various activities other than killing ranging from building houses to fishing to exploring untouched areas and everything in between.
Rewards
Rewards are configurable, but by default the following activities will drop XP in addition to XP that already drops from killing monsters. This allows for additional XP gain for people that enjoy building or helping the server community by harvesting, fishing, crafting, or exploring.
- Breaking or digging blocks
- Placing blocks (building!)
- Planting saplings and seeds
- Exploring (lighting unlit areas)
- Going fishing
- Taming wolves
- Breeding animals (coming soon)
- Crafting items at a workbench or forge (delayed)
Death
Death XP handling can be configured to either drop experience from players as usual, not at all, or to fine tune the amount of percentage of experience lost upon death.
Usage
There really is nothing special a player needs to do to use eXPra; simply carry on as usual.
The /expra
or /xp
command will give players information about their experience and level.
Also, if you are using the PermissionsEx plugin, players with the expra.adjust
permission can set/adjust player levels with the following commands:
/expra(xp) set(s) playername(blank for self) level(blank for 0)
/expra(xp) adjust(a|adj|add) playername(blank for self) (-)levels
Permissions
If you are using PermissionsEx, you can (and need to) assign the following permissions to their respective groups and users.
-
expra.adjust
This is for administrators and moderators only! Use with caution. Allows the user to set their own, and others' level. -
expra.award.*
This will allow the user to receive all additional XP rewards that eXPra offers. -
expra.award.break
Reward the user for breaking blocks as per the configuration file. -
expra.award.place
Reward the user for placing blocks as per the configuration file. -
expra.award.fish
Reward the user for fishing as per the configuration file. -
expra.award.explore
Reward the user for exploring (lighting) as per the configuration file. -
expra.award.tame
Reward the user for taming wolves as per the configuration file. -
expra.death.noloss
This will allow the user to keep all XP upon death regardless of configuration. -
expra.death.loss
This will allow the user to only lose a configurable amount of experience. Without this orexpra.death.noloss
, the user will lose all levels and XP as per standard MC loss.
@yamar35
I need the same functionnality than yamar35! I use Buycraft too and i need the command /expra work in the console :)
@yamar35
I'd like to mention that Nekoyoubi probably won't be doing much more to this plugin, rather, he will maintain it if anything breaks.
Would it be possible to allow the /xp add <name> <lvl> command to work from the console?
I figured out it doesn't work because I was trying to have a magic kit in buycraft, and all items come through, but the user does not get set 30 lvls higher like they should. In the logs, it simply shows up as the command "/xp [0m" was run, not the command "/xp add <name> 30" like it should.
Thanks, - Yamar
@Deadaliz
They fixed those errors with version 1.0.0, by allowing xp to group itself together into stacks. In previous versions of minecraft with xp, 1 xp would be 1 orb drop, causing loads and loads of lag. Now, a player at level 50 would probably only drop 5 orbs.
Everything you could want from a xp plugin. And more. Ty.
@Dead that was taken care of with 1.8.1 but theres also plugins like NoLagg it even safer. But basically if you're hearing people report these things recently then they run a server with way more player slots and plugins then their server can handle.
Does this give exp even if you have orbs turned off? We turned orbs off because of hearing of issues with millions of xp orbs lagging servers. Anyway I was wondering if it just made peoples xp go up.
The expra.adjust permission node doesn't work for some reason. I set it to true for the Admin group and it doesn't do anything for me. I'm in the admin group.
EDIT: It actually does work after a server restart
hi,
Do you think it's possible to hook you're plugin into econxp to synch the experience with it, because when i set 50% of loosing exp at death, econxp don't follow and reset the exp balance to 0 (it use a proper calculation for exp : "EconXP still does it's own experience calculation to fix a Minecraft bug with checking experience of large quantities.")
econxpAPI
@lawliet555
This seems like a pretty bad exploit indeed. Having not worked with WorldGuard regions previously, this could be a challenge, but I will give it a valiant attempt. ;)
@KCZerG
Well, my apologies that you're having problems with the plugin, but yes, my commands most certainly "do something"; as they are running on many servers that I personally have played on. ;) As for what may be tripping yours up, what CB build is this data against? The v0.5 version will not work with the current recommended (pre-release) build, and I have not been able to work on this since CB1550.
As for classes, I have been considering it based on previous feedback, but I haven't come up with a good system yet that would work for everyone so I haven't included it.
If you read through the comments here, there is a conversation between ReVurb and myself that lays out how the rate numbers work and he has put together a configuration file that includes a note about it that I was going to try to work into mine, but as of right now, no.
Agreed, this plugin needs group or class specifiy changes so say a Premium User on your server gets a different xp rate :) nice work though seems great. is there any explanation on how to adjust your rate of exp ? x@xx numbers* Oh and your commands do nothing.
org.bukkit.command.CommandException: Unhandled exception executing command 'expra' in plugin eXPra v0.5 at org.bukkit.command.PluginCommand.execute(PluginCommand.java:42) at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:163) at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:364) at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:756) at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:721) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:714) at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33) at net.minecraft.server.NetworkManager.b(NetworkManager.java:226) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:92) at net.minecraft.server.NetworkListenThread.a(SourceFile:108) at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:516) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:414) at net.minecraft.server.ThreadServerApplication.run(SourceFile:457) Caused by: java.lang.NoSuchMethodError: org.bukkit.entity.Player.getExp()F at me.Nekoyoubi.Expra.Expra.onCommand(Expra.java:83) at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
VERY NICE!, but hmmm need classes :D
Is it possible to have this plugin respect world guard regions. The members on the server I am on have found an exploit using world guard and saplings. 1) Plant sapling in a region you do not own 2) Get Exp 3) World guard places the sapling back in your inv because you do not own the region 4) spam the plant button for unlimited exp
@RockstarSVG
Nice find! I will do my best to work it into the next build. If not, then I will certainly get it by v0.7.
With SilkTouch you can farm Exp by repeatedly mining and placing ores that are on the exp list. Any way to stop blocks that players have placed from counting for the exp?
@fonkfader
Actually, while this would have originally been out of scope for this plugin, I have had numerous conversations with other users about adding this functionality already. At this point, I am interested in pursuing the possibility. Let me see what I can do. ;)
@Nekoyoubi
thank's ! i got a little suggestion, there is a plugin called expplugin, it let choose the number of orbs the mobs can drop (and i'am using it to add exp drop for the ghasts and pigzombies, they doesn't drop anything without) and i think it woul'd be interesting to add this to you're plugin if you add the group based configuration that will do a all-in-one exp gestion plugin that would be great ! ( i have in head the idea of double exp weekend for my server for example)
@fonkfader
I'm glad you got it all working. I'm guessing the config file had gotten corrupt (easy to do with YAML) so it was just using defaults for everything. Let me know if you have any other issues with it and I'll do my best to help.
@Nekoyoubi
the permition was set to true and not working, but after that i delete the config to generate a new one and it works ! ( i change and add override bloc in the old config and add them after the new was generated and its ok)