ProtectAnimals
Lightweight Anti Animalgriefing Plugin
ProtectAnimals
other language-versions/Andere Sprachversionen
What does this Plugin?
- - It's quite simple, neutral Animals and Villagers are completely protected by player damage, when either the player or the animal/villager is standing in a WorldGuard-Region, where the player cannot build.
- - Additionally tamed ocelots(cats) and tamed wolves(dogs) are protected, while untamed Mobs aren't protected
- - People, who cannot attack, can also not tie up an animal with a leash and not feed any animals(very smart griefers could produce a huge amount of animal, that would cause lags and that's not cool at all)
- - It's not possible to get on a horse, when you cannot build in a specific region and also you can't dismount, because if you would, your horse will be lost forever in that region :o and we don't want that!
- - Projectiles fired / thrown by Witches or Skeletons are blocked, when the animal/villager is standing in a WorldGuard Region(with the exception: the "global" - Region)
- - Creepers are harmless against protected animals and villagers. But you'll still get damage, so don't be so naive! :D
- - Players can throw Damage-Bottles all day long, but nothing will happen, except they are starting to throw healing pots....but hey this wouldn't get anyone mad :D!
- - Players are blocked from dyeing sheeps, when the player cannot build at the location of himself or the location of the sheep.
How to install ProtectAnimals:
- - Download the version of your choice
- - Place the .jar in your server-plugins directory
- - Either reload, restart or start your Server
- - Completed. Have fun, and stop slaughtering poor Animals
Which commands can i use?:
- - instead of "/pa" you can use "/protectanimals"
- - "/pa" shows available Commands
- - "/pa help" shows what kind of Entities are protected in WorldGuard Regions
- - "/pa info" gives Information about the Plugin(Author, etc...)
- - "/pa reload" reloads the config
- - "/pa leave" forces leaving a horse
- Permission nodes:
- - "ProtectAnimals.info" includes all commands that gives simple information
- - "ProtectAnimals.reload" gives acces to the "/pa reload" command
- - "ProtectAnimals.update" players with this node, will get update informationen
- - "ProtectAnimals.bypass.dye" allows people to dye a sheep everywhere
- - "ProtectAnimals.bypass.exit" allows people to jump off horses everytime
- - "ProtectAnimals.bypass.feed" gives permission to feed every animal
- - "ProtectAnimals.bypass.potion" allows members to throw bad potions at animals
- - "ProtectAnimals.bypass.rename" people can rename every animal
- - "ProtectAnimals.bypass.ride" allows people to jump on horses everytime
- - "ProtectAnimals.bypass.shear" allows people to shear a sheep everywhere
- - "ProtectAnimals.bypass.shoot" arrows, snowballs etc are not longer blocked
- - "ProtectAnimals.bypass.tie" people can tie up every animal
- - "ProtectAnimals.bypass.trade" people can trade with villagers
Config(v.1.10 and higher):
# The Config should look like this:
#
Config: updater: ShouldThePluginCheckUpdates?: true <- "true" let's the plugin check, if it's the latest version protected_Animals: sheep: false <- "false" means sheeps can be attacked, sheared, dyed, feeded, tied up and everything.. pig: true cow: false chicken: true <- "true" means that chickens are protected everywhere mushroom: false squid: false villager: true . . .
editable Messages within the configuration File(v.1.16 and higher):
- - you can now edit mostly every message that players can get from my plugin. Use the following codes to write with color:
- - &0 = BLACK
- - &1 = DARK_BLUE
- - &2 = DARK_GREEN
- - &3 = DARK_AQUA
- - &4 = DARK_RED
- - &5 = DARK_PURPLE
- - &6 = GOLD
- - &7 = GRAY
- - &8 = DARK_GRAY
- - &9 = BLUE
- - &a = GREEN
- - &b = AQUA
- - &c = RED
- - &d = LIGHT_PURPLE
- - &e = YELLOW
- - &f = WHITE
- - &k = MAGIC
- - &l = BOLD
- - &m = STRIKETHROUGH
- - &o = ITALIC
- - &n = UNDERLINE
- - &r = RESET
- - an Example: "&4Hello" will become a dark red text
- - you can also follow this link to look for colorcodes: Colorcodes
- World-Support(v.1.17 and higher):
- - You can protect only a few worlds or as much as you like to protect
- - Change the Text within the config and separate world with a ", "
- - EXAMPLE: " worlds: farming, world, world_nether, world_the_end"
- - You can also easily protect all worlds by writing "+ALL"
- - EXAMPLE: " worlds: +ALL"
Required Plugins:
- - for my Plugin you'll need WorldGuard
# Important Information!!!
#
- - The PlugIn normally searches for an update and opens a connection.
- - this Update-Check can be toggeled within the config.yml
- - the update-checker uses this Link to check the latest version:
- - https://api.curseforge.com/servermods/files?projectIds=65168
Known Issues:
- - if you use "PlotMe Animal" you have to write "/protectanimals ..." instead of "/pa ..."
ToDo List:
- - fix bugs
- - move it to spiggot
- - make it 1.8 ready(new mobs)
Servers that I support:
- - TheNation[german] - my Server
- - SpawnTown[english]
Feel free to send me ideas, problems or just nice messages, either via the comments or via a ticket :)
Thank you for reading, Sincerely Japu_D_Cret
PS: Thank you for 2000+ Downloads :) You are awesome!
OK, thanks, no problem. I waiting on upload. And VERY VERY ThANKS Japu for this config :)
@Jalulek
i uploaded version 1.10 and also 1.11, but the bukkit staff has too much to do, i'll upload it for you on another platform
I must again download version 0.9? When switched i not see create folder 'ProtectAnimals" with config. I must download other version?
@JapuDCret
Hey Japu,
That error I posted previously is still showing up. I cannot seem to find out what is going on. Whenever I see it spam the console I go to all the players to see what they are doing and the only common thing is players in disguises. I had the two players with disguises undisguised and the console spam stopped.
@sigler
@Jalulek
@mal67
config is implemented. i hope it helps all of you :D
@JapuDCret
You're always one step ahead of me...
@Jalulek
not today..i live in germany and it's late :D but i'll include your idea, thanks!
Thanks, new update fine working. Good job! Japu, Can you still protect snowmen and iron golems, and remove protection or added permission from the squid?
@sigler
please try the latest version, i did many fixxes and maybe i already fixed your problem, i hope so :D
Hey Japu, This error started showing up
5:07:01 PM CONSOLE: [SEVERE] Could not pass event EntityDamageByEntityEvent to ProtectAnimals v1.05 5:07:06 PM CONSOLE: [SEVERE] Could not pass event EntityDamageByEntityEvent to ProtectAnimals v1.05 5:07:06 PM CONSOLE: [SEVERE] Could not pass event EntityDamageByEntityEvent to ProtectAnimals v1.05
2013-09-16 20:13:32 [SEVERE] Could not pass event EntityDamageByEntityEvent to ProtectAnimals v1.05 org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462) at org.bukkit.craftbukkit.v1_6_R2.event.CraftEventFactory.callEvent(CraftEventFactory.java:93) at org.bukkit.craftbukkit.v1_6_R2.event.CraftEventFactory.callEntityDamageEvent(CraftEventFactory.java:381) at org.bukkit.craftbukkit.v1_6_R2.event.CraftEventFactory.handleEntityDamageEvent(CraftEventFactory.java:406) at net.minecraft.server.v1_6_R2.EntityLiving.damageEntity(EntityLiving.java:636) at net.minecraft.server.v1_6_R2.EntityAnimal.damageEntity(SourceFile:128) at net.minecraft.server.v1_6_R2.EntityEgg.a(EntityEgg.java:26) at net.minecraft.server.v1_6_R2.EntityProjectile.l_(EntityProjectile.java:156) at net.minecraft.server.v1_6_R2.World.entityJoinedWorld(World.java:1354) at net.minecraft.server.v1_6_R2.World.playerJoinedWorld(World.java:1335) at net.minecraft.server.v1_6_R2.World.tickEntities(World.java:1223) at net.minecraft.server.v1_6_R2.WorldServer.tickEntities(WorldServer.java:480) at net.minecraft.server.v1_6_R2.MinecraftServer.t(MinecraftServer.java:572) at net.minecraft.server.v1_6_R2.DedicatedServer.t(DedicatedServer.java:226) at net.minecraft.server.v1_6_R2.MinecraftServer.s(MinecraftServer.java:486) at net.minecraft.server.v1_6_R2.MinecraftServer.run(MinecraftServer.java:419) at net.minecraft.server.v1_6_R2.ThreadServerApplication.run(SourceFile:582) Caused by: java.lang.NullPointerException at me.japu_d_cret.main.EventSign.onEntityDamageByEntity(EventSign.java:83) at sun.reflect.GeneratedMethodAccessor397.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425) ... 19 more
Thank you very much. I waiting on config :)
@Jalulek
@mal67
i added permissions, and by using them both problems should get fixxed :)
Hi JapuDCret.
Sorry for my English.. Can I have a request? Is it possible to remove the blockade of killing squid and remove the lock entrance to the horses within a protected site? When one player riding a horse to another, gets off of him, he can not re-take. This is problematic. Alternatively, you can ask for the ability to configure this in Config? Please...
@mal67
i'm goind to add a permission tomorrow, which allows specific players to kill mobs, so when you add the permission to a specific group in a specific, this should help you.
will this one allow you to exempt worlds from this? i used to use animalprotect, but after its update server got hacked i need to find another plugin. stupid young players always find it 'fun' to kill other players animals for no reason.
@sigler
Just wanted to let you know Japu that I've not had any issues since removing portablehorses plugin. Thanks again for the awesome plugin
The error was not for this plugin
@JapuDCret
Yes, and if possible any other added members.
Going to try this plugin out on my server, hope it goes well because i've had a few people complain about players killing their animal farms D:
@ringhean
you mean, that Owners of Horses can still ride their horses, even if their in regions that dont belong to the players?