Inactive [FUN] WolfPound v1.0.2 - Adopt a wolf today! [953, 1000, 1060]

Discussion in 'Inactive/Unsupported Plugins' started by fernferret, Apr 1, 2011.

  1. Offline

    fernferret

    WolfPound - Adopt a Wolf Today:
    Current Version: v1.0.4 - Get it at dev.bukkit.org

    Please Move All Discussion/Questions/Comments/Issues to our dev.bukkit.org Site!
    BukkitPerms verison on it's WAY!

    Want live help? Join #wolfpound on EsperNet

    Wolf Pound aims to make obtaining these epic companions just a little easier by allowing users to buy them (or have them for free)! The process is very simple and there are no config files to edit! Simply copy the jar to your plugins folder, create a sign with the required text, and you're good to go!

    Features:
    • Lets users buy wolves (or you could make them free :))
    • Integrates with iConomy, BOSEconomy, RealEconomy, Essentials Built in Economy, and Permissions!
    • All wolves spawned by this are neutral, meaning you must train them yourself with bones! See Below:
    • Spawn wolves as neutral, friendly or REALLY ANGRY
    • Spawn multiple wolves with one command! (Disclaimer: I am not responsible for the massive amount of wolves you spawn, or if wolves start getting in fights)
    • Limit the number of wolves you can spawn with the command
    • Multi-World Support! All options are now configurable PER WORLD!
    Download V1.0.2
    Download V1.0.1
    Download V1.0
    Download V0.12
    Download V0.11
    Download V0.9
    Download V0.8
    Download V0.7
    Download V0.6
    Download V0.5
    Download V0.4
    Download V0.3
    Download V0.2
    You don't want V0.1
    Github Source

    Video Demo: (Thanks @EpicDavi!)


    Todo:
    • Restrict wolves per time (wp[mhd]) This would not restrict the number of wolves a user can have, only a limit on how many they can get per amount of time from the sign, to reduce wolfspam - Medium
    • Refactor. The code is a mess and it's making future changes hard. I'm working on this in my free time from MV2 - HIGH
    How to setup a Pound (Store) (Simple):

    If you've used Essentials Free/Buy/Sell/Trade, then this should be a breeze, for everyone else, it should still be very easy.
    • Place Sign
    • Make Line 1 say: [WolfPound]
    • OPTIONAL: Make Line 2 say: $10
    • OPTIONAL: Make Line 3 say either: angry, friend, or neutral
    • DONE!
    Example Sign:

    [​IMG]
    Note: You can have line 2 in whatever currency you want, it could say `100 Rupees` and that would be valid.

    How to setup a Pound (Store) (Advanced example):
    [​IMG]
    • Sign1: No params = Free wolves
    • Sign2: 2:bone = It costs 2 bones to get a wolf
    • Sign3: 1:260 = It costs 1 Item #260(apple) to get a wolf
    • Sign4: 3 = It costs 3 dollars from an econ plugin, if none is found, wolf is free
    • Sign5: $10 = It costs 10 dollars from an econ plugin, if none is found, wolf is free
    Config file: (If you mess it up, delete it and it will auto regen)
    You don't actually ever need to touch this. You can use the commands that are outlined in the commands section entirely!
    Code:
    adopt:
        price: 0.0 # Set this to the number of dollars or items you want
        type: -1 # Set this to a positive integer to use an item, or leave it -1 to use dollars
        limit: 10 # The max number of wolves someone can spawn using the /adopt command
        aggro: friend # Could also be angry or neutral
        worlds:
            world:
                price: 0.0
                type: -1
                limit: 10
                aggro: friend
    Permissions:
    I have included 3 types of permissions:
    wolfpound.create - Allows users to create/destroy Pounds
    wolfpound.use - Allows users to use Pounds
    wolfpound.adopt - Allows users to type /adopt [X] and get a wolf (or X wolves, the X is optional)
    wolfpound.admin - Allows users to and use the /adopt setprice/settype/setlimit/setglobal

    Integration with other Plugins
    All integration with other plugins is handled automatically, but I thought I would explain a little about what this means.

    Permissions Plugin Support
    If you have Permissions installed, it restricts commands based on those, if you don't, it's a free-for-all.

    Economy Plugin Support
    Econ support is in this order(meaning it will use the one at the top of the list if you have it, then go down the list):
    1. iConomy - Version 4.6.5, Version 5 (Yes both of them :D)
    2. BOSEconomy - Version 0.6.2
    2. RealEcon - Version 0.6.2
    3. Essentials Economy - Version 2.2
    If you have none of the above Installed, all Pounds will give wolves away for free, regardless of what you put on the second line. The version numbers listed simply show which version is the latest I've tested with, they will most likely work with newer or older versions.

    Commands
    {} = needed; [] = optional

    Code:
    /adopt [X] : Where X is the number of wolves you want. If X is not present, it defaults to 1. Automatically charges you price * X
    /wpprice [all | w:WORLD]: States the price of a wolf.
    /wplimit [all | w:WORLD]: States how many wolves can be adopted at once.
    /wpsetprice {PRICE} [global | w:WORLD]: Sets the price to buy a wolf using the /adopt command.
    /wpsetaggro {angry | friend | neutral} [global | w:WORLD]: Sets the agressiveness of a wolf when it is obtained via /adopt.
    /wpsettype {ITEM_NAME | ITEM_ID | money} [global | w:WORLD]: Sets the type of currency used to buy a wolf via /adopt.
    /wpsetlimit {NUMBER} [global | w:WORLD]: Sets the number of wolves one can adopt at once via /adopt.
    /wpreset {w:WORLD | global}: Resets specified world to default from the current world if none is specified, or all if global is specified.
    
    Please Post any questions/comments/request!

    Changelog:
    Version 1.0.2
    • Upgrade AllPay Version. Now this works great with MV2!
    • Remove dependency on CraftBukkit, should be more stable with future updates
    Version 1.0.1
    • Fix massive console spam caused by AllPay (Thanks @phaed) - tested by renaming to aWolfPound
    • Fix Essentials Economy (2.2+ required as of now)
    • Supports permissions 2x and 3x
    Version 1.0
    • WARNING: MOST COMMANDS HAVE CHANGED (OP is currently being updated)
    • Fix several ecommerce bugs
    • Now features AllPay integration! No longer will you have to choose your econ plugin based on WolfPound!
    • Much better code :)
    • New wolf functions from RB 766
    Version 0.12
    Version 0.11
    • Update for MC 1.5/CB 704+
    • Fix compatibility error with other plugins that used signs
    • Fix Essentials economy giving you money if wolves were free
    Version 0.9
    • Add RealEconomy Support
    • TONS OF BUGS SQUASHED - .9 is a MUST HAVE UPDATE (See Github if you want to see what bugs were squashed)
    Version 0.8
    • Add friendly, neutral or angry spawning options
    • Add /adopt agro X command to allow setting default wolf type spawned via the command
    • Add Line 3 of signs now controls how a wolf spawns
    Version 0.7
    • Add multi-world support
    • Add ability to limit wolves spawned with the /adopt command
    • Improve error messages
    Version 0.6
    • Add partial item matching (now you can use cook instead of cookie)
    • Fix BUG where if you had the exact number of items requested, it would give you a wolf but not take items
    • Add better error messages when creating signs
    • Add config file support for buying wolves via the /adopt command
    • Fix some other bugs I forgot about...
    Version 0.5
    • Refactor banking to reduce future errors
    • Add support for using items as the currency for wolves
    • Add config file support for buying wolves via the /adopt command
    Version 0.4
    • Add /adopt X, where X is the number of wolves you want
    Version 0.3
    • Add BOSEconomy Support
    • Fix message to users on every sign
    Version 0.2
    • Add /adopt that requires permission wolfpound.adopt
    Version 0.1
    • Releasing WolfPound
    Other Wolf Plugins:
     
  2. Offline

    fernferret

    Hmm I'll have a look this week, should be good to go with the latest RBs and such, I'll verify and update the title when I have done this.
     
  3. Offline

    Maxxgold

    Yes please update this. It no longer works correctly with CB 1531

    2011-11-29 10:50:31 [SEVERE] Could not pass event PLAYER_INTERACT to WolfPound
    java.lang.IllegalArgumentException: Health must be between 0 and 8
    at org.bukkit.craftbukkit.entity.CraftLivingEntity.setHealth(CraftLivingEntity.java:40)
    at com.fernferret.wolfpound.WolfPound.spawnWolf(WolfPound.java:270)
    at com.fernferret.wolfpound.listeners.WPPlayerListener.onPlayerInteract(WPPlayerListener.java:32)
    at org.bukkit.plugin.java.JavaPluginLoader$11.execute(JavaPluginLoader.java:330)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339)
    at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:178)
    at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.java:266)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:592)
    at net.minecraft.server.Packet15Place.a(SourceFile:39)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:92)
    at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:546)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:516)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:414)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
     
  4. Offline

    fernferret

    @Maxxgold

    Roger. Will do. Lots of shenanigans going on with Multiverse atm, but this is an easy fix, so i'll at least get a dev build out tonight
     
  5. Offline

    Cory_

    I'm an admin on MCM Server and since I can do /spawnmob wolf:baby - I get a puppy, but if we were to do a Pound, we would want to sell puppies as they would go for more than a wolf.

    Wolf's don't breed, so hence why you have to spawn them, but only admins can do this...which would be fine to do adding them manually but the puppies eventually grow up. (Unless there was a way to keep them a puppy forever)

    [​IMG]
     
  6. Offline

    fernferret

    Aww yea, you're right, totally forgot about the new AGE api. Again MV2 has been keeping me _very_ busy but I will look at this tomorrowish, or tonight when my internet speeds up.

    --FF
     
  7. Offline

    Maxxgold

    Can we get an update to this ????
     
  8. Offline

    fernferret

    @Maxxgold

    I'll try to work on it this weekend, unfortunately I have a full time job, and maintaining MV is my first bukkit plugin priority (sorry :() as it has about 100x the users of wolfpound. I have some time tomorrow that I'll take a look at this and as a bonus, I'll see about adding baby/adult wolf options.

    Thanks for your patience,
    --FF
     
  9. Offline

    kalez

    Good to know! Take your time. And SWEET! Puppies!
     
  10. Offline

    fernferret

    Babies are already in the dev builds, but they're a secret (s/secret/undocumented) feature!

    /wp adopt 3 pup

    There are definitely some issues though, so be warned. the current dev builds do bite :(
     
  11. Offline

    kalez

    :p which is why ill just wait for the recommended =b
     
  12. Offline

    Armaxxx

    Code:
    2011-12-14 21:35:41 [SEVERE] Could not pass event PLAYER_INTERACT to WolfPound
    java.lang.IllegalArgumentException: Health must be between 0 and 8
        at org.bukkit.craftbukkit.entity.CraftLivingEntity.setHealth(CraftLivingEntity.java:42)
        at com.fernferret.wolfpound.WolfPound.spawnWolf(WolfPound.java:270)
        at com.fernferret.wolfpound.listeners.WPPlayerListener.onPlayerInteract(WPPlayerListener.java:32)
        at org.bukkit.plugin.java.JavaPluginLoader$11.execute(JavaPluginLoader.java:335)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339)
        at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:178)
        at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.java:266)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:593)
        at net.minecraft.server.Packet15Place.a(SourceFile:39)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:93)
        at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:550)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
        at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:527)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
    help? :D the plugin works, but all wolves are spawned on neutral
     
  13. Offline

    Marek0504

    Does this plugin will support Craftbukkit 1597?
     
  14. Offline

    97Dion

    Can you make an update that only admins have the permissions to make wolfpounds
     
  15. Offline

    fernferret

    Going to be trying to update this this weekend.
     
  16. Offline

    Deklipz

    Im trying to figure out a way to change the console commands for this to use /wolf instead of /wp. I use a waypoint plugin that already uses /wp and this doesn't allow any of those commands to be issued. I'm not asking you to do it for me but if you could point me in the right direction as to where to find this info I would greatly appreciate it. :)
     
  17. Offline

    QBcrusher

    when i try to buy a wolf from a sign, it says "diff" in my chat, and doesnt spawn the wolf or take the money.
     
  18. Offline

    fernferret

    You can actually make your own aliases in the bukkit.yml file! Make sure you're on the new version (from ci.onarandombox.com) and you can alias from there:

    http://wiki.bukkit.org/Bukkit.yml#aliases

    The way this works is that the first plugin to load will get the alias \o/
     
  19. Offline

    Deklipz

    I cant seem to get the aliases to work. it still says that /wp tp isn't a valid wolfpound command when the command is for waypoint not wolfpound. :( I'll have to sideline wolfpound until I can figure it out I guess.
     
  20. Offline

    jinS

    WOW I like it the Sign3 Thanks very well
     
  21. Offline

    Deklipz

    Would you mind terribly if my brother dug through your plugin and changed the commands just for our own use on our server? I'm not trying to step on anyones toes or anything. :)
     
  22. Offline

    fernferret

    I doubt I'll change them permanently, but feel free to have at it. I'm trying to think of a way (since we use a dynamic command generation scheme) to allow you to use a custom prefix. Maybe this weekend :D

    EDIT: After all, this is why I make my code open source :)
     
  23. Offline

    Deklipz

    Thank you very much! He's attempting to teach me some things so this will be a good thing to play with. :) Thank you!
     
  24. Offline

    notbob1

    Code:
    01:00:03 [SEVERE] Could not pass event org.bukkit.event.player.PlayerInteractEvent to WolfPound
    java.lang.IllegalArgumentException: Health must be between 0 and 8
        at org.bukkit.craftbukkit.entity.CraftLivingEntity.setHealth(CraftLivingEntity.java:41)
        at com.fernferret.wolfpound.WolfPound.spawnWolf(WolfPound.java:270)
        at com.fernferret.wolfpound.listeners.WPPlayerListener.onPlayerInteract(WPPlayerListener.java:32)
        at org.bukkit.plugin.java.JavaPluginLoader$11.execute(JavaPluginLoader.java:340)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:57)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:453)
        at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:187)
        at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.java:284)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:602)
        at net.minecraft.server.Packet15Place.handle(SourceFile:39)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:100)
        at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78)
        at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:536)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:434)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
    It spawns neutral wolves for no cost. >_>
     
  25. Offline

    fernferret

    This has been fixed in the latest dev builds. ci.onarandombox.com
     
  26. Offline

    com. BOY

    Compatible with 1.1-R4? Doesn't work...
     
  27. Offline

    fernferret

    The dev builds are. I'm trying to get it working with Ocelots/Cats asap.
     
  28. Offline

    eattheburrito21

    pleaaaassseee update it please please please
     
  29. Offline

    omega3141

  30. Offline

    rubberducky42

    Hmm...maybe you could add ocelots to tame, also?
     

Share This Page