VillagerPerm
Information
addemod:
I handed over this to 'minoneer'. He will keep the plugin up to date, I am sorry if this plugin didn't go so well, I were and am very busy I do not have time to fix it.
minoneer:
Thanke you!
A new version (1.3) was released, fixing all bugs and changing some other things. It should now be working with any recent bukkit version.
I will continue expanding this plugin by adding new features and functions, and of course keep it up to date.
Description
This plugin has two main functions. You can:
- choose, which players or groups can buy from villagers.
- choose, which players or groups can hurt / kill villagers.
If you want to disable villagers trading to stabilize your economy system, or you don't want griefers constantly killing all villagers leaving none to trade with, this plugin is exactly what you're looking for. It is very lightweight and simple to use, but works very steadily.
Setup
Install the plugin as you would any other. Simply place the .jar-file in your plugins directory and restart the server.
The plugin will automatically disable any trading or damage done to villagers by any player (except OPs). If you want to allow trading and/or damaging for some of your players, simply give them the appropriate permission (see lit below) using your prefered permissions system.
Permission nodes
Permission | Description | Default |
VillagerPerm.buy | Allows to buy from villagers | To OP |
VillagerPerm.hurt | Allows to hurt villagers | To OP |
Changelog
- 1.0
- initial release
- initial release
- 1.1
- Added so you can give permissions to who can hurt Villagers
- Fixed other Entity conflict
- Changed package name to: com.adde.villagerperm
- 1.2
- Deleted the "can't hurt villagers" method.
- Fixed another entity conflict.
- minoneer took over any further development from addemod
- 1.3
- Fixed all bugs causing the plugin to be unfunctional
- Fixed permissions
- Reimplemented the damage protection
- Damage by bow and arrow and other projectiles is now blocked aswell
- Updated some messages
- 1.4
- Fixed a bug disallowing any Entity to be killed with a bow
- Update for bukkit/craftbukkit 1.5.x
Planned Features
- Disable any damage done to villagers (i.e. fire, falling, drowning, ...) using a config.yml
- Enable trading for certain villagers with everyone.
- Customize messages
- If you have any other ideas, please let me know :)
@Gavagai12
I haven't got ANY of what you said? I tried it over 15 minutes this time to make sure it works?
The Idea is nice, but ...
... your plugin is spamming my consol whith 'could not pass errors'! (I send you a PM about it with the exact error code.)
... you can still kill Villagers by bow and arrow!
... the trade Message comes sometimes, when you don't expect it!
@jrtc27
Thank you, I already did it but thank you for making it until I released the new version.
For those of you wanting a version without the bug where it stops interaction with all entities, I made a modded version of the plugin, and it is available at http://dl.dropbox.com/u/2042276/VillagerPerm1.0a.jar
@Stacelin
Thank you for reporting this and I am sorry for the conflict with other entitys, I will fix this when I am back from my vacation! Hope you can be patient for it!
So, further digging, it seems that players can not feed animals, or ride minecarts. Says they do not have perms to buy from villagers.
Looks great so far! I'll be sure to let you know how it pans out! Thanks :)