Inactive [Fun/Misc] ProtectingWolf v0.6.0 - Let your wolves defend you [1337]

Discussion in 'Inactive/Unsupported Plugins' started by haruka, Aug 29, 2011.

     
  1. Offline

    haruka

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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

    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

    This post has been edited 9 times. It was last edited by haruka Nov 16, 2011.
    varunax, THExSYSTEM and Sa_KE like this.
  2.  
  3. Offline

    Sa_KE

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Works with more then one wolf?

    EDIT: Yes it does. Sorry i had to ask :p.

    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

    This post has been edited 1 time. It was last edited by Sa_KE Sep 13, 2011.
  4. Offline

    Sa_KE

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    @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?
  5. Offline

    haruka

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Mh, I'll think about it.

    For now, the exception should be caught.
  6. Offline

    Sa_KE

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Thanks for considering it, I know its hard work building things from scratch when the other person hasnt released a snapshot or sourcecode...
  7. Offline

    xsolar66

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    oh wow! YES~ Gonna try this now! :D:D:D
  8. Offline

    haruka

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Updated plugin to version 0.4.0

    Please enjoy! :D
  9. Offline

    erdnuss

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Just what I wanted. It's working great, thank you :) Especially the options make it suitable for every need.

    This post has been edited 1 time. It was last edited by erdnuss Oct 2, 2011.
  10. Offline

    IniTW8X

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Can“t start it on 1317... ;)
  11. Offline

    MonsieurApple

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    + sign not allowed in CB build.
  12. Offline

    haruka

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    What do you mean? oO
  13. Offline

    haruka

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Updated to RB1337. Please move it back to the plugin-section.
  14. Offline

    Petomatick

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Doenst work in mobarena, havnt tried outside.

    EDIT:
    Work'd great outside.

    This post has been edited 1 time. It was last edited by Petomatick Oct 22, 2011.
  15. Offline

    Apasalic

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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."
  16. Offline

    Parlez

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    so is 1 true or false in the config?
    i assume its true.
  17. Offline

    haruka

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    @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.

    This post has been edited 1 time. It was last edited by haruka Oct 28, 2011.
  18. Offline

    vongard

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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 post has been edited 1 time. It was last edited by vongard Oct 31, 2011.
  19. Offline

    haruka

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Good news for you: Everything you want to have is allready on my (currently internal) todo-list ;)

    This post has been edited 1 time. It was last edited by haruka Oct 31, 2011.
  20. Offline

    vongard

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Ah awsome, well then i will have to keep this bookmarked!
  21. Offline

    haruka

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Updated to 0.6.0
  22. Offline

    kalez

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Anyone know if this works for 1597? Any issues?
  23. Offline

    haruka

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Jep, it does
  24. Offline

    Minecraft Player

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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?
  25. Offline

    Carmona

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    will this work against aggressive players?
  26. Offline

    joehot2000

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    please update, awsome plugin :(
  27. Offline

    Agent Wesker

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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.

Share This Page