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 :)
Can i ask you a question about a plugin? Ok, i want to programm that i could trade endless with the villager, how can i programm this?
The new version 1.4 is available now!
Sorry about the late answer, I've been busy lately,
I'll look into fixing those bugs soon, any additional information would be very appreciated :)
regards, minoneer
I'm not 100% sure but I think its not working for me because I use: http://dev.bukkit.org/server-mods/shopkeepers/#comments Can you look into this and find a possible fix? :s
Hey, I cant hit anything with a bow without getting the "You are not allowed to attack villagers." Not other mobs or even players! lol. Look into fixing that?
@CollinDesigns
Sure, if you could send me those screen shots that would be great. I'll do some testing aswell to hopefully find the error.
Regards minoneer
I just played survival with my brother and he couldn't kill a blaze in the end with his arrow. so I assume also not with his sword. So I have default perm to hurt villagers -> Than he could kill it since he received: you are not allowed to kill villager or something. I told him to take a screen and I will provide it to you later. (remind me of it :p) And now he told me that when I gave him a splash potion yesterday to kill all skeletons and zombies in our xp grinder he said he received same error, not allowed to.... So.... please fix this bug? :)
@minoneer
The 'breeding' would need 2 villagers and than right click both of them with a 'emerald' and than they would create hearts and make a baby villager like you can do with other mobs. :)
@CollinDesigns
hey, thanks for the feedback!
I tested it myself aswell, and didn't have that issue with magma cubes... If it happens again, please let me know.
How exactly did you think "breeding" should work?
Again an awesome plugin! Really handy and epic feature for my donators! But yesterday a (normal) player reported that during a 'bloodmoon' (http://dev.bukkit.org/server-mods/bloodmoon/) when magma cubes and blazes etc also spawn in overworld he couldn't kill the magma cube: he said it told him ingame something like: 'Can't hurt villagers' while hitting a magma cube.... Though idk yet so I will test this myself today and will let you know. Edit: just tested it myself and got nothing about the villager thing so far....
As suggestion I would say: Able to 'breed' them with permission if possible.
Thank you minoneer! :D
Hi,
I could take over further development and maintenance of this project. I wrote you a pm about it, please let me know how you decide :)
Regards, minoneer
Addemod, do you have any reccommendations? Also you may want to mark your plugin as inactive by changing the development stage.
@MysticCity
Sorry, I don't know how to fix this. Search for another plugin, this one is like not updating anymore.
this plugin work only for 10 min and then it chrached
its a realy nice plugin what i need or my server money system goes down... buts all 10 min i must restart the server to start the plugin again
to fix it surround your cast with try catch blocks, at least then it won't spam the console.
@Mariskaaa
I uploaded a new version where I removed the function to hurt villagers.. Sorry but I can't fix that thing to make it not spam that error. Use 1.2 if you want to disable trading.
Hi. I don't know what I did, but I got a very very very very big log from this plugin: http://pastebin.com/W6DhGMEZ What the hell is wrong with it? Lol. EDIT: Sorry for my bad English, I'm Dutch.
I said, that I like your Idea, but you can still kill Villagers by bow and arrow! This Plugin also sends nearly every Second a Error Mesage, and I wrote you one per PM.!
PS. 1.1 is out -.-