I'm looking for a very simple plugin that can deny and allow players to pickup experience orb with a simple permission. I'm assuming this is very simple to do and only requires a couple of lines of code. If you have any other suggestions on a plugin that allows me to give me this kind of control, please do post. ModifyWorld doesn't seem to have the permission node so unless I'm overseeing something, I don't think I can do it with ModifyWorld. Again, this plugin can be very, very simple, I basically only need one permission node that controls orb pickup. Ideas for a name: ControlExp, OrbControl, ExpControl, etc... I really don't care Ideas for commands: None at all. Ideas for permissions: <plugin name>.expgain or anything else as long as it makes sence. Thank you in advance! Icefuzion Fuzioncraft.org
Ok I have coded your plugin already. I cannot post it until about 3:30 PST. I will also bug test the plugin also before I release it. There is one permission node: "XpControl.xpgain" When the user lacks the proper permission they will still pick up the xp orb but no xp will be given and the user will recive a message informing them that no xp has been given to them.
Isn't there a way you could disallow them to pick up xp completely? If it's going to be like you say, could you give me the option to customize the message they receive?
I looked through the bukkit api but I didnt find anything that specific ill look again. But the way I have currently coded the plugin would basically have the same result of no xp going to that user that doest have the perm's. I will look again at the API. Icefuzion There is no code in the API that outright restricts XP pickup. So the solution that I came up with is the only way to stop people from gaining XP. My code will give the same results that you want (No xp without the perm node) its just the XP will be "picked up" without any xp actually being given unless that user has the perms. EDIT by Moderator: merged posts, please use the edit button instead of double posting.
Alright. Basically I have an experience farm in The End, and I want people to have the option to pay and then they get a temporary permission that allows them to pick up xp for a set amount of time. And I wanna do this by denying the permission for everyone in The End first, and allowing the permission to the ones that payed for it for x amount of minutes.
PlayerItemPickUpEvent if(event.getEntity() instanceof Exp(or xp or whatever its called) event setcancelled
Vandrake thanks I will edit my code now. @ Icefuzion So you only want users in "the end" to have to have a perm to get xp? Not server wide?
No. - I want to DENY all xp gain in The End; - I want to make a command sign at the XP farm in The End that allows players to pay money and get a temporary permission that will override the DENY permission and ALLOWS them to gain XP from the XP farm for a certain amount of time; - Everything else should work as normal on the other maps. (= everyone gains xp) Maybe I'm making this more complicated than I should. Am I?
yes lol describe your request per topics and main points Deny xp in these situations: - 1 - 2 Allow them only when: - 1 - 2 Worlds denied exp forever: - 1 - 2 World allowed to get exp with temporary permission node: - 1 - 2 THe more detail you provide the faster OfficialJake can finish your request
If anything you dont want them leaving dropped xp orbs around anyway because it will cause lag This plugin solution is very good imo If you need help doing the timed permissions Pex or Variable Triggers can do that.
Sorry I have not uploaded the plugin yet eclipse has been giving me trouble and doesnt want to show the code in my workspace. It will be up on Monday
This is actually very easy to make, but it's a bit stupid in my opinion.. If you want to make EXP a economy type of thing, why not sell it?
It would be quite difficult to send the player a message if the actual picking up of the orb is denied. The event would be called every tick, so if the orb was not picked up, 20 messages would be sent per second,.
How does one spend weeks making an exp farm for endermen in the end? They are super simple to make depending on what you mean by exp farm. Also did you not think of something like selling exp bottles those provide a fixed amount of exp orbs so you could regulate it much more than grinding. Also that would be better for the player because say for example they are grinding and lose internet or have to go, then they just simply lose out. If they had exp bottles they could just throw them later.