AntiXPFarm
AntiXPFarm
Version: 0.6.1
CraftBukkit Build 1.6.2-R1.0 [Tested]
Info
This plugin disables xp from mobs spawned by xp farms. I've added auto update support so It will warn you If their is a new version. This has not been fully tested tho. Every entity, the mob in this case, is given a UUID which is a unique key for every mob that doesn't change. Basically this plugin creates a list of all the uuids, every time a mob spawns if it's from a spawned then it's uuid is added to the list. Every time the mob dies it is removed from the list and if its uuid is in the list then cancels the xp drop event thus meaning it does not drop xp :D
Features
- Disables xp from mobs spawned by spawners.
- Logs in console when theirs an update.
- Lightweight and easy to use.
To Do
- User suggestions!
Change Log
Version 0.4
Version 0.3.2
- Fixed bugs
- Updated to 1.3.2-R-0.1
Version 0.3.1
- Fixed bugs
- Added a different auto update system
- Added a config
- Updated to 1.3.1-R2.0
Version 0.3
- Changed the HashMap tp a HashSet
- Removal of the bin file
Version 0.2
- Added a bin file so the hashmap will save and no data will be lost.
- Code clean up
Version 0.1
- Release of the plugin
This is what i been looking for sadly it seems to kill ALL xp dropped even those not spawned by a spawner (as in normal randomly generated mobs) If it only did ones from a spawner and not a global xp kill i would use this.
@np98765
lol I don't plan to make it too big :P. I'll consider your option.
I really like this. I'm willing to sacrifice looting dungeons. Whatever you do, please do not make this heavier! I like it just the way it is.
Except... There is one feature. Is it possible you could add no item drops as well? Seems like while you're cancelling the XP drop, it would be easy to cancel the item drop, too. :) Maybe a configurable option?
Thanks. :D
Would it be possible if you could add a feature to disable xp from enderman as most exp is from the traps they make D: Maybe add the enderman to a hashset of they are damaged by fall damage as.most of them make them fall.
@javoris767
D: I guess it doesn't need to save during restarts or reloads.
New update!
Version 0.3
Recommended update for better storage.
@falsevacuum
I'll check it out :P
@rythar
If the mob spawns from a mob spawner it won't give XP.
Im confused does this block xp from all mobs coming from spawners or would we still get xp from mobs in plugins like catacombs .
I think you actually want what's called a HashSet, rather than a HashMap. It's a lot more memory efficient. I can help you write more space efficient output files, too, if you want.
Also, it would be really cool if you could detect dungeons vs farms. If you want help with that, it seems like it would be fun to code and I would be happy to help.
@javoris767
Lovely plugin ;) This was missing in the community ;)
New update!
v 0.2
Recommended update so no data will leak.
@phuriousgeorge
My mistake for not adding much info :c.
@phuriousgeorge
Every entity, the mob in this case, is given a UUID which is a unique key for every mob that doesn't change. Basically this plugin creates a list of all the uuids, every time a mob spawns if it's from a spawned then it's uuid is added to the list. Every time the mob dies it is removed from the list and if its uuid is in the list then cancels the xp drop event thus meaning it does not drop xp :D
Like the concept, but not much information here. How does this differentiate between mobs spawned by spawners and those not?