ProtectingWolf - Let your wolves defend you current version ProtectingWolf 0.6.0 Short description This plugin let your wolves auto-attack evil mobs when they have seen you and not when they had made damage to you. So wolves become a better guardian than they are by default. Download Last stable: 0.6.0 For development snapshot or the source code itself look at PWs git repository: https://github.com/haruka/ProtectingWolf devBukkit-Link: http://dev.bukkit.org/server-mods/protectingwolf/ Features dogs attack on enemy sight warn user when dogs spotted enemies dogs attack on right click at an monster/animal dogs can respawn or be invincible tell your dogs how to behave limit dogs per user default and per user config Permissions Commands /pwolf help: Shows ingame help /pwolf info: Shows your current settings /pwolf disable/enable <setting>: change setting /pwolf set <setting> <value>: change setting /pwcall <amount/"all">: Calls your dogs to you Possible settings: kamikaze-dog: dogs will attack creepers too till-death: wounded dogs dont attack (till player gets melee damage) sit-is-sit: sitting dogs dont attack (till player gets melee damage) msg-on-attack: shows short info when you dogs attack msg-on-peace: shows short info when no enemies are spotted anymore msg-on-death: shows short info when one dog dies msg-on-respawn: shows short info when one dog respawns attack-click: dogs attack on right click invincible: dogs are invincible respawn: dogs respawn respawn-time: seconds till dogs respawn max-wolves: the max. amount of dogs a user can have unlimited-wolves: user can have unlimited wolves Todos / Known issues Mob-Arena-Support Permissions protectingwolf.call-wolves protectingwolf.option.kamikaze-dog protectingwolf.option.till-death protectingwolf.option.sit-is-sit protectingwolf.option.msg-on-attack protectingwolf.option.msg-on-peace protectingwolf.option.msg-on-death protectingwolf.option.attack-click protectingwolf.option.invincible protectingwolf.option.respawn protectingwolf.option.respawn-time protectingwolf.option.max-wolves protectingwolf.option.unlimited-wolves protectingwolf.option.msg-on-respawn Changelog Version 0.6.0 Permissions Wolves can be invincible Wolves may respawn Restrict wolves per player Get owner by right-click /pwcall-Command Version 0.5.0 Works with new config-system Updated to RB 1337 Spoiler (Move your mouse to the spoiler area to reveal the content) Show Spoiler Hide Spoiler Version 0.4.0 Command wolves to attack by right click (wolves only attacks players and tamed wolves on pvp-servers) Tested with RB 1185 Improved list handling Only warn user if wolves are near by Fixed scheduler problem (Thanks to: krinsdeath, Belf) Version 0.3.1 Small work around for collision exception Version 0.3.0 engine improvements Version 0.2.0 /pwolf-Command Per user config Version 0.1.0 Basic engine
Works with more then one wolf? EDIT: Yes it does. Sorry i had to ask . Anyway if you look at the code i posted nearing the end it shows that it gets error when the code gets the wolves to protect you. Sorry about the other errors its for WolfSpawn that throws those errors. Code: 2011-09-13 22:22:40 [INFO] [WolfSpawn] spawn wolf to in 1s, health: 20 2011-09-13 22:22:41 [SEVERE] Exception in thread "Thread-37" 2011-09-13 22:22:41 [SEVERE] java.lang.NoSuchMethodError: net.minecraft.server.E ntityWolf.d(Z)V 2011-09-13 22:22:41 [SEVERE] at Etherlands.WolfSpawn.UpdatedWolf.setOwner(Update dWolf.java:68) 2011-09-13 22:22:41 [SEVERE] at Etherlands.WolfSpawn.SpawnWolfTask.run(SpawnWolf Task.java:45) 2011-09-13 22:22:41 [SEVERE] at org.bukkit.craftbukkit.scheduler.CraftWorker.run (CraftWorker.java:34) 2011-09-13 22:22:41 [SEVERE] at java.lang.Thread.run(Unknown Source) 2011-09-13 22:23:05 [INFO] [WolfSpawn] spawn wolf to in 1s, health: 20 2011-09-13 22:23:06 [SEVERE] Exception in thread "Thread-44" 2011-09-13 22:23:06 [SEVERE] java.lang.NoSuchMethodError: net.minecraft.server.E ntityWolf.d(Z)V 2011-09-13 22:23:06 [SEVERE] at Etherlands.WolfSpawn.UpdatedWolf.setOwner(Update dWolf.java:68) 2011-09-13 22:23:06 [SEVERE] at Etherlands.WolfSpawn.SpawnWolfTask.run(SpawnWolf Task.java:45) 2011-09-13 22:23:06 [SEVERE] at org.bukkit.craftbukkit.scheduler.CraftWorker.run (CraftWorker.java:34) 2011-09-13 22:23:06 [SEVERE] at java.lang.Thread.run(Unknown Source) 2011-09-13 22:23:27 [INFO] [WolfSpawn] spawn wolf to Ren_kun in 1s, health: 20 2011-09-13 22:23:28 [SEVERE] Exception in thread "Thread-49" 2011-09-13 22:23:28 [SEVERE] at Etherlands.WolfSpawn.UpdatedWolf.setOwner(Update dWolf.java:63) 2011-09-13 22:23:28 [SEVERE] at Etherlands.WolfSpawn.SpawnWolfTask.run(SpawnWolf Task.java:45) 2011-09-13 22:23:28 [SEVERE] java.lang.NoSuchMethodError: net.minecraft.server.E ntityWolf.d(Z)V 2011-09-13 22:23:28 [SEVERE] at org.bukkit.craftbukkit.scheduler.CraftWorker.run (CraftWorker.java:34) 2011-09-13 22:23:28 [SEVERE] at java.lang.Thread.run(Unknown Source) 2011-09-13 22:23:38 [SEVERE] Could not pass event ENTITY_DEATH to WolfSpawn 2011-09-13 22:23:54 [INFO] [WolfSpawn] spawn wolf to in 1s, health: 20 2011-09-13 22:23:55 [SEVERE] Exception in thread "Thread-56" 2011-09-13 22:23:55 [SEVERE] java.lang.NoSuchMethodError: net.minecraft.server.E ntityWolf.d(Z)V 2011-09-13 22:23:55 [SEVERE] at Etherlands.WolfSpawn.UpdatedWolf.setOwner(Update dWolf.java:68) 2011-09-13 22:23:55 [SEVERE] at Etherlands.WolfSpawn.SpawnWolfTask.run(SpawnWolf Task.java:45) 2011-09-13 22:23:55 [SEVERE] at org.bukkit.craftbukkit.scheduler.CraftWorker.run (CraftWorker.java:34) 2011-09-13 22:23:55 [SEVERE] at java.lang.Thread.run(Unknown Source) 2011-09-13 22:24:10 [INFO] [WolfSpawn] spawn wolf to in 1s, health: 20 2011-09-13 22:24:11 [SEVERE] Exception in thread "Thread-59" 2011-09-13 22:24:11 [SEVERE] java.lang.NoSuchMethodError: net.minecraft.server.E ntityWolf.d(Z)V 2011-09-13 22:24:11 [SEVERE] at Etherlands.WolfSpawn.SpawnWolfTask.run(SpawnWolf Task.java:45) 2011-09-13 22:24:11 [SEVERE] at Etherlands.WolfSpawn.UpdatedWolf.setOwner(Update dWolf.java:68) 2011-09-13 22:24:11 [SEVERE] at org.bukkit.craftbukkit.scheduler.CraftWorker.run (CraftWorker.java:34) 2011-09-13 22:24:11 [SEVERE] at java.lang.Thread.run(Unknown Source) 2011-09-13 22:24:37 [INFO] Connection reset 2011-09-13 22:24:37 [INFO] ZGMF_X20AStrike lost connection: disconnect.quitting 2011-09-13 22:24:57 [INFO] [WolfSpawn] spawn wolf to in 1s, health: 20 2011-09-13 22:24:58 [SEVERE] Exception in thread "Thread-71" 2011-09-13 22:24:58 [SEVERE] java.lang.NoSuchMethodError: net.minecraft.server.E ntityWolf.d(Z)V 2011-09-13 22:24:58 [SEVERE] at Etherlands.WolfSpawn.UpdatedWolf.setOwner(Update dWolf.java:68) 2011-09-13 22:24:58 [SEVERE] at Etherlands.WolfSpawn.SpawnWolfTask.run(SpawnWolf Task.java:45) 2011-09-13 22:24:58 [SEVERE] at org.bukkit.craftbukkit.scheduler.CraftWorker.run (CraftWorker.java:34) 2011-09-13 22:24:58 [SEVERE] at java.lang.Thread.run(Unknown Source) 2011-09-13 22:25:34 [INFO] [WolfSpawn] spawn wolf to in 1s, health: 20 2011-09-13 22:25:35 [SEVERE] Exception in thread "Thread-79" 2011-09-13 22:25:35 [SEVERE] java.lang.NoSuchMethodError: net.minecraft.server.E ntityWolf.d(Z)V 2011-09-13 22:25:35 [SEVERE] at Etherlands.WolfSpawn.UpdatedWolf.setOwner(Update dWolf.java:68) 2011-09-13 22:25:35 [SEVERE] at Etherlands.WolfSpawn.SpawnWolfTask.run(SpawnWolf Task.java:45) 2011-09-13 22:25:35 [SEVERE] at org.bukkit.craftbukkit.scheduler.CraftWorker.run (CraftWorker.java:34) 2011-09-13 22:25:35 [SEVERE] at java.lang.Thread.run(Unknown Source) 2011-09-13 22:25:49 [INFO] [PLAYER_COMMAND] Ren_kun: /night 2011-09-13 22:26:10 [INFO] [WolfSpawn] spawn wolf to in 1s, health: 20 2011-09-13 22:26:12 [SEVERE] Exception in thread "Thread-88" 2011-09-13 22:26:12 [SEVERE] java.lang.NoSuchMethodError: net.minecraft.server.E ntityWolf.d(Z)V 2011-09-13 22:26:12 [SEVERE] at Etherlands.WolfSpawn.UpdatedWolf.setOwner(Update dWolf.java:68) 2011-09-13 22:26:12 [SEVERE] at Etherlands.WolfSpawn.SpawnWolfTask.run(SpawnWolf Task.java:45) 2011-09-13 22:26:12 [SEVERE] at org.bukkit.craftbukkit.scheduler.CraftWorker.run (CraftWorker.java:34) 2011-09-13 22:26:12 [SEVERE] at java.lang.Thread.run(Unknown Source) 2011-09-13 22:27:07 [INFO] [WolfSpawn] spawn wolf to in 1s, health: 20 2011-09-13 22:27:08 [SEVERE] Exception in thread "Thread-101" 2011-09-13 22:27:08 [SEVERE] java.lang.NoSuchMethodError: net.minecraft.server.E ntityWolf.d(Z)V 2011-09-13 22:27:08 [SEVERE] at Etherlands.WolfSpawn.UpdatedWolf.setOwner(Update dWolf.java:68) 2011-09-13 22:27:08 [SEVERE] at Etherlands.WolfSpawn.SpawnWolfTask.run(SpawnWolf Task.java:45) 2011-09-13 22:27:08 [SEVERE] at org.bukkit.craftbukkit.scheduler.CraftWorker.run (CraftWorker.java:34) 2011-09-13 22:27:08 [SEVERE] at java.lang.Thread.run(Unknown Source) 2011-09-13 22:28:02 [INFO] [PLAYER_COMMAND] Ren_kun: /ul 9 2011-09-13 22:28:51 [SEVERE] Could not pass event ENTITY_DEATH to WolfSpawn 2011-09-13 22:29:09 [SEVERE] Could not pass event ENTITY_DEATH to WolfSpawn 2011-09-13 22:29:13 [SEVERE] Could not pass event ENTITY_DEATH to WolfSpawn 2011-09-13 22:29:18 [SEVERE] Could not pass event ENTITY_DEATH to WolfSpawn 2011-09-13 22:29:18 [SEVERE] java.util.ConcurrentModificationException 2011-09-13 22:29:18 [SEVERE] at java.util.HashMap$HashIterator.nextEntry(Unknown Source) 2011-09-13 22:29:18 [SEVERE] at java.util.HashMap$KeyIterator.next(Unknown Sourc e) 2011-09-13 22:29:18 [SEVERE] at de.sunaru.ProtectingWolf.ProtectingWolfVictims.c leanUpDisputants(ProtectingWolfVictims.java:69) 2011-09-13 22:29:18 [SEVERE] at de.sunaru.ProtectingWolf.ProtectingWolfScheduler .run(ProtectingWolfScheduler.java:8) 2011-09-13 22:29:18 [SEVERE] at org.bukkit.craftbukkit.scheduler.CraftWorker.run (CraftWorker.java:34) 2011-09-13 22:29:18 [SEVERE] at java.lang.Thread.run(Unknown Source) 2011-09-13 22:29:18 [SEVERE] Could not pass event ENTITY_DEATH to WolfSpawn 2011-09-13 22:29:28 [SEVERE] Could not pass event ENTITY_DEATH to WolfSpawn 2011-09-13 22:29:32 [SEVERE] Could not pass event ENTITY_DEATH to WolfSpawn 2011-09-13 22:29:34 [SEVERE] Could not pass event ENTITY_DEATH to WolfSpawn 2011-09-13 22:29:34 [SEVERE] Could not pass event ENTITY_TARGET to ProtectingWol f java.lang.ClassCastException: org.bukkit.craftbukkit.entity.CraftArrow cannot be cast to org.bukkit.craftbukkit.entity.CraftLivingEntity
@haruka Also just a request could you add things like WolfSpawn does? it would be great if you could limit the amount of wolves that respawn among other things that it "should" support. BASED was last seen on the 9th of june and hasnt come back since. So maybe you can pick up where he left off?
Thanks for considering it, I know its hard work building things from scratch when the other person hasnt released a snapshot or sourcecode...
Just what I wanted. It's working great, thank you Especially the options make it suitable for every need.
From MULTIPLAY.CO.UK - SUPPORTER: "His addon has dependencies which I can't find from their website. If you can find out which dependencies this plugin requires, I'll be more than happy to get it uploaded and available for you."
@Petomatick I'll check that and try to fix it in an update. @Apasalic Exception, correct error message or stacktrace or it did not happen. @Parlez Yep. 1 is true.
May i suggest a configurable option to make your wolves respawn after a certain amount of time after death? Another suggestion i have would be a configurable call command to call your wolves to you maybe even with an economy cost?(though should you have more than one wolf this would require something to identify which one like a name obviously.) Thank you for your hard work this plugin looks great and i have already suggested it to my server admin. ~Von
This is a awesome plugin that I've used ever since I played multiplayer. I really enjoyed it but as the new update to 1.2.3 came out, I wasn't able to use this plugin. Can you update as soon as possible pls?
Can you make it so this supports multiple worlds? For example, have a list of worlds in the config that the dog will follow you into; - world_1 - world_2 but not world_creative because its not listed in the cfg Also I do notice that this has not been updated for a while but it still looks like a good plugin so please work on it again.