VillagerPerm

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

PermissionDescriptionDefault
VillagerPerm.buyAllows to buy from villagersTo OP
VillagerPerm.hurtAllows to hurt villagersTo OP



Changelog

  • 1.0
    • 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 :)

You must login to post a comment. Don't have an account? Register to get one!

  • Avatar of PapiDimmi PapiDimmi Sep 15, 2014 at 00:53 UTC - 0 likes

    addemod's name is spelled incorrectly in the banner.

    In the banner at the top of the plugin page, it says "- made by addedmod". One d too much.

    Last edited Sep 15, 2014 by PapiDimmi

    BFAK:90786952,b6f336fc920de76dbe32935fcb1d36616ddde3501af30f482a4add0f2b2facd5

  • Avatar of minoneer minoneer Apr 14, 2013 at 17:55 UTC - 0 likes

    The new version 1.4 is available now!

    • Fixed a bug disallowing any Entity to be killed with a bow
    • Update for bukkit/craftbukkit 1.5.x

    BFAK:90714521,637865931aa38bf39b5881d86210a5b0a358efbc813cac5647ca5dde9ffd749a

  • Avatar of minoneer minoneer Feb 26, 2013 at 16:11 UTC - 1 like

    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

  • Avatar of CollinDesigns CollinDesigns Feb 08, 2013 at 11:08 UTC - 0 likes

    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

    Last edited Feb 08, 2013 by CollinDesigns
  • Avatar of deleted_8591593 deleted_8591593 Jan 27, 2013 at 02:14 UTC - 1 like

    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?

    If something I said helped you, please click the "Like" button!

  • Avatar of minoneer minoneer Jan 17, 2013 at 09:47 UTC - 1 like

    @CollinDesigns: Go

    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

  • Avatar of CollinDesigns CollinDesigns Jan 13, 2013 at 20:51 UTC - 0 likes

    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? :)

  • Avatar of CollinDesigns CollinDesigns Jan 05, 2013 at 17:18 UTC - 0 likes

    @minoneer: Go

    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. :)

  • Avatar of minoneer minoneer Jan 05, 2013 at 17:13 UTC - 1 like

    @CollinDesigns: Go

    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?

  • Avatar of CollinDesigns CollinDesigns Jan 05, 2013 at 10:12 UTC - 0 likes

    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.

    Last edited Jan 05, 2013 by CollinDesigns

Facts

Date created
Aug 07, 2012
Categories
Last update
Apr 12, 2013
Development stage
Release
Language
  • enUS
License
All Rights Reserved
Curse link
VillagerPerm
Downloads
4,947
Recent files

Authors