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. 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. Back in town, and getting the update prepared as I type

    Alright Guys, SORRY for the delay, I was away on 2 trips spanning about 9 days! But 1.0 is finally out, and there may be some bugs, so please report them here and I'll get them fixed quick fastly! Once I'm sure there are no bugs, I'll start implementing people's feature requests!

    Also:
    Almost all commands have changed, I'm in the process of updateing the OP, but for now use the /help command to figure it out! Or this:
    Show Spoiler
    commands:
    adopt:
    description: Gives you a wolf!
    usage: /<command> [NUMBER]
    wpprice:
    description: States the price of a wolf.
    usage: /<command> [all|w:WORLD]
    wplimit:
    description: States how many wolves can be adopted at once.
    usage: /<command> [all|w:WORLD]
    wpsetprice:
    description: Sets the price to buy a wolf using the /adopt command.
    usage: /<command> {PRICE} [global|w:WORLD]
    wpsetaggro:
    description: Sets the agressiveness of a wolf when it is obtained via /adopt.
    usage: /<command> {angry|friend|neutral} [global|w:WORLD]
    wpsettype:
    description: Sets the type of currency used to buy a wolf via /adopt. {Use ITEM_NAME|money|ITEM_ID}
    usage: /<command> {TYPE} [global|w:WORLD]
    wpsetlimit:
    description: Sets the number of wolves one can adopt at once via /adopt.
    usage: /<command> {NUMBER} [global|w:WORLD]
    wpreset:
    description: Resets specified world to default from the current world if none is specified, or all if global is specified.
    usage: /<command> {w:WORLD | global}


    EDIT: Thank you for everyone making youtube demo vids, but now most of them are REALLY out of date :/ If someone could make one for 1.0 that'd be awesome and I'll put it in the OP!

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 13, 2016
  3. Offline

    POC0bob

    I cant get it to work, does it REQUIRE permissions to use? becouse i cannot use it, it messed up some of my plugins... I cant get it to work...
     
  4. Offline

    LastKossack

    Thank you so much!, im on the way to test right now... if this one works ill make you a nice trailer :3
     
  5. It does not REQUIRE permissions, but in the op it states that everyone will have access to everything if permissions is not found. This may change in the future...
     
  6. Offline

    K3kz0r

    Since i updated to the latest version (1.0) i get spammed with this text in the console:
    Code:
    [INFO] [AllPay] - Version .4 - hooked into Essentials Economy for WolfPound v1.0
    I counted 34 times that error during a server start.
     
  7. Not sure why it's spitting it out 34 times, but seeing as it says "INFO" and not "WARNING" or "SEVERE" It's just an information item, not an error, it should be there, just not 34 times. Mind posting that log to pastebin?
     
  8. Offline

    K3kz0r

  9. Offline

    Timecpo

    Why I don't want V0.1 :)
     
  10. Offline

    byteman

    Why?

    Code:
    01:56:29 [SEVERE] Could not load 'plugins/WolfPound.jar' in folder 'plugins':
    java.lang.NoClassDefFoundError: org/bukkit/entity/AnimalTamer
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:247)
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:134)
        at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:160)
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:108)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:85)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:217)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:204)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:144)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:259)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    Caused by: java.lang.ClassNotFoundException: org.bukkit.entity.AnimalTamer
        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:36)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:24)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
        ... 11 more
     
  11. Offline

    City Builder

    If I choose to make the wolf 'friendly' does that mean it comes out already attached to the player that buys it, or they still have to tame it with bones?
     
  12. already attached :)

    Please read the thread header, requires bukkit 766
    Oh wow, looks like AllPay doesn't like one of those other plugins, It's gonna take me a bit to figure out, but It should work fine.

    Because I didn't keep a built jar of it :p .2 came out like an hour or two after haha!

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 13, 2016
  13. Offline

    ElectricPulze

    Fernferret, coud you please try make it compatible with Build 766?
    All my players is waiting for it :eek:
     
  14. Offline

    LastKossack

    Read the header

    How can I just spawn Wolf only from the sign? I just dont have idea. I have EssentialsProtect
     
  15. There is a picture in the OP, but put the following text on a sign:

    [WolfPound]
    Free
    Friend

    Already there!

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 13, 2016
  16. Offline

    LastKossack

    Ok Fern, here is my Idea in three words, iConomy-Account-Customization, Like iConomyChestShop!
     
  17. Could you elaborate on this? Not quite sure what you're wanting.

    A side note: feature dev will be slow the next few weeks, going through a move. (I'll still be on top of bugs asap)
     
  18. Offline

    LastKossack

    Ok so you can just get al the money from the selling to an iConomy Account with a line and the name... like:

    [WolfPound]
    Friend
    10$
    LastKossack <--OWNER of the shop
     
  19. Offline

    ElectricPulze

    Orly? What's wrong then?
    Code:
    03:08:35 [ALLVARLIG] Could not pass event PLAYER_INTERACT to WolfPound
    java.lang.NoSuchMethodError: com.earth2me.essentials.User.get(Lorg/bukkit/entity
    /Player;)Lcom/earth2me/essentials/User;
            at com.fernferret.allpay.EssentialsBank.hasMoney(EssentialsBank.java:34)
    
            at com.fernferret.allpay.GenericBank.hasEnough(GenericBank.java:63)
            at com.fernferret.allpay.GenericBank.hasEnough(GenericBank.java:78)
            at com.fernferret.wolfpound.WPPlayerListener.onPlayerInteract(WPPlayerLi
    stener.java:29)
            at org.bukkit.plugin.java.JavaPluginLoader$9.execute(JavaPluginLoader.ja
    va:299)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:302)
            at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEven
    t(CraftEventFactory.java:162)
            at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.j
    ava:207)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:535)
            at net.minecraft.server.Packet15Place.a(SourceFile:57)
            at net.minecraft.server.NetworkManager.a(NetworkManager.java:196)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:377)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:292)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
     
  20. Offline

    LastKossack

    I think there is a incompatibility with EssentialsBank :s
     
  21. Offline

    Matt Harkins

    I would suggest the option of giving the player/owner of a wolfpound to define a spawn point
    Sets it up relatively similar to a full function pound.
     
  22. Offline

    Gangsta_hotdog

    SMILEY FACE
     
  23. Yea I'm not a huge fan of essentials... these guys have like 3 versions of their software out right now... grr... I'll take a look. Mind giving me a version on your Essentials?

    Also, as noted before: still in the process of moving, so feature dev will be slow for the next few weeks!
     
  24. Offline

    phaed

    This been fixed yet? Its driving me insane

    Code:
    2011-05-27 00:06:07 [INFO] [AllPay] - Version .4 - using only an item based economy for WolfPound v1.0
    2011-05-27 00:06:07 [INFO] [VanishNoPickup] 1.8.1 enabled.
    2011-05-27 00:06:07 [INFO] [AllPay] - Version .4 - using only an item based economy for WolfPound v1.0
    2011-05-27 00:06:07 [INFO] [Friendlies]: version [1.2] (United Nations) loaded
    2011-05-27 00:06:07 [INFO] [AllPay] - Version .4 - using only an item based economy for WolfPound v1.0
    2011-05-27 00:06:07 [INFO] DyeWool version 1.3 is enabled with permissions!
    2011-05-27 00:06:07 [INFO] [AllPay] - Version .4 - using only an item based economy for WolfPound v1.0
    2011-05-27 00:06:07 [INFO] Varietree version 0.5 is enabled!
    2011-05-27 00:06:07 [INFO] [AllPay] - Version .4 - using only an item based economy for WolfPound v1.0
    2011-05-27 00:06:07 [INFO] [RedstoneTransmission] version 1.0 loaded
    2011-05-27 00:06:07 [INFO] [RedstoneTransmission] world connections: 106
    2011-05-27 00:06:07 [INFO] [AllPay] - Version .4 - using only an item based economy for WolfPound v1.0
    2011-05-27 00:06:07 [INFO] MoveCraft 0.6.9 Beta plugin enabled
    2011-05-27 00:06:07 [INFO] [AllPay] - Version .4 - using only an item based economy for WolfPound v1.0
    2011-05-27 00:06:07 [INFO] ChairCraft 1.2.2 is enabled.
    2011-05-27 00:06:07 [INFO] [AllPay] - Version .4 - using only an item based economy for WolfPound v1.0
    2011-05-27 00:06:07 [INFO] [obuShutTheHellUp version 0.1] Enabled!
    2011-05-27 00:06:07 [INFO] [AllPay] - Version .4 - using only an item based economy for WolfPound v1.0
    2011-05-27 00:06:07 [INFO] [MagicCarpet] MagicCarpet version 1.5.5 is enabled!
    2011-05-27 00:06:07 [INFO] [MagicCarpet] Take yourself wonder by wonder, using /magiccarpet or /mc.
    2011-05-27 00:06:07 [INFO] [MagicCarpet] Using Permissions.
    2011-05-27 00:06:07 [INFO] [AllPay] - Version .4 - using only an item based economy for WolfPound v1.0
    2011-05-27 00:06:07 [INFO] [Kit] plugins/KitPlugin/kits.txt reloaded OK
    2011-05-27 00:06:07 [INFO] [Kit] Permission system detected. Good.
    2011-05-27 00:06:07 [INFO] [Kit] iConomy not found, some features will be unavailable.
    2011-05-27 00:06:07 [INFO] KitPlugin version 1.15 is enabled!
    2011-05-27 00:06:07 [INFO] [AllPay] - Version .4 - using only an item based economy for WolfPound v1.0
    2011-05-27 00:06:07 [INFO] Turnstile 1.6.1 is enabled!
    2011-05-27 00:06:07 [INFO] [AllPay] - Version .4 - using only an item based economy for WolfPound v1.0
    2011-05-27 00:06:07 [INFO] Turnstile Successfully linked with Permissions!
    2011-05-27 00:06:07 [INFO] [OpenInv] version 1.0.3 is enabled!
    2011-05-27 00:06:07 [INFO] [AllPay] - Version .4 - using only an item based economy for WolfPound v1.0
    2011-05-27 00:06:07 [INFO] WorldEdit 4.4 enabled.
    2011-05-27 00:06:07 [INFO] WorldEdit: Permissions plugin detected! Using Permissions plugin for permissions.
    2011-05-27 00:06:07 [INFO] [AllPay] - Version .4 - using only an item based economy for WolfPound v1.0
    2011-05-27 00:06:07 [INFO] Bukkit Flow Control version 0.0.4 loaded.
    2011-05-27 00:06:07 [INFO] [AllPay] - Version .4 - using only an item based economy for WolfPound v1.0
    2011-05-27 00:06:07 [INFO] SimpleWarp v1.1.0 has been enabled
    2011-05-27 00:06:07 [INFO] [AllPay] - Version .4 - using only an item based economy for WolfPound v1.0
    2011-05-27 00:06:07 [INFO] [ChestSearch] v0.41 is enabled.
    2011-05-27 00:06:07 [INFO] [AllPay] - Version .4 - using only an item based economy for WolfPound v1.0
    2011-05-27 00:06:07 [INFO] [StealthLogin] version 1.1.0 Permissions detected...
    2011-05-27 00:06:07 [INFO] [StealthLogin] version 1.1.0 enabled!
    2011-05-27 00:06:07 [INFO] [AllPay] - Version .4 - using only an item based economy for WolfPound v1.0
    2011-05-27 00:06:07 [INFO] SquidLimiter version 1.1 is enabled!
    2011-05-27 00:06:07 [INFO] [AllPay] - Version .4 - using only an item based economy for WolfPound v1.0
    2011-05-27 00:06:07 [INFO] [AllPay] - Version .4 - using only an item based economy for WolfPound v1.0
     
  25. Sorry, been busy with my Move: Part A. I'm setled for a week, and i'll try to get this resolved. It must be another plugin causing this, as on my server, and the server I play on, we've never seen it.

    I'll throw it in the GitHub issue tracker.

    Sorry, missed your post :p

    I'm freezing all new features until I finish:
    - Moving
    - Refactoring the code

    The ETA on this will be 1-3 Weeks (Shouldn't take that long, just have to get personal things sorted out.)

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 13, 2016
  26. Alright, I'll be dropping an update to fix essentials econ later tonight.

    If someone like @phaed can give me some more info on the console spam issue, as I don't see it with WP, Essentials, Permissions and iConomy (Nor is it present with MV) I'll get that resolved. I just don't feel like installing every single plugin, because it seems that you guys have a bunch installed :p
     
  27. Offline

    phaed

    Your problem is here. If you notice you are creating a new AllPay instance every time any plugin is enabled:

    Code:
        @Override
        public void onPluginEnable(PluginEnableEvent event) {
            // Let AllPay handle all econ plugin loadings
            AllPay banker = new AllPay(plugin, WolfPound.logPrefix + " ");
            plugin.bank = banker.getEconPlugin();
        }
    Which in turn looks for an economy plugin, and if it finds none it spits out that message:

    Code:
        private void loadDefaultItemEconomy() {
            if (this.bank == null) {
                this.bank = new ItemBank();
                log.info(logPrefix + " - using only an item based economy for " + plugin.getDescription().getFullName());
            }
    For every single one of my non-economy plugins. Which is all of them.
     
  28. Ah, sorry about that, I'll take care of it. Guess I misread the docs on that function. I'll have an update out VERY soon.

    WP Update is Live!

    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

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 13, 2016
  29. Offline

    Minecrafter9001

    Maybe set it to Ops-only if you don't Have Permissions.
     
  30. Offline

    Nagato

    Link is down! =O
     
  31. Don't think so! Just tested, they still work! Maybe dropbox was down yesterday...
     

Share This Page