Buy-A-Wolf
This plugin allows players to purchase wolves through chat commands.
Update 1.3: Should be compatible with 1.2.5, although I haven't tested it. Also, Register now must be present in the plugins folder.
Commands
- /buywolf - Lets you buy a wolf. Requires buywolf.buy.
- /buywolf help - Displays some information and the cost of wolves.
- /buywolf setcost <amount> - Sets the cost of wolves in-game. Requires buywolf.admin.
- /buywolf reload - Reloads the config file from disk. Requires buywolf.admin.
Permissions
- buywolf.buy - Default: true - Anyone with this perm can buy wolves.
- buywolf.free - Default: op - With this perm you don't have to pay for wolves.
- buywolf.admin - Default: op - Allows you to execute the setcost and reload commands.
Config File
- cost - How much the player will have to pay for a wolf. Default is 10.0.
- lang.boughtWolf - Shown when player buys a wolf. Plugin automatically pastes a space and cost. (ie. " 30 Coins!")
- lang.boughtWolfFree - Shown when player buys a wolf without paying (buywolf.free permission)
- lang.noMore - Shown when the tame event is cancelled.
- lang.playersOnly - Shown when command is executed from console.
- lang.notEnoughMoney - Shown when player doesn't have enough money.
- lang.noPermBuy - Shown when player tries to buy a wolf, but doesn't have permission.
- lang.noPerm - Shown when player tries to do something else they don't have permission for.
The used permissions system is Bukkit's default, so for example BukkitPermissions would work fine.
This is my first plug-in. It has been tested out, but if there's anything you want to tell me, please make a ticket :3
Please upgrade to 1.3
@tmad40blue
Here you go: http://dev.bukkit.org/server-mods/buy-a-wolf/pages/default-config/
@pichubolt090
My config file generated blank. Would you mind pasting a default one? Thanks :)
@Egor33345
Done.
Please upgrade to 1.2
Wolfpound hasnnt been updated in FOREVER and the cur ver of wolfpound does not actually deduct any money for buying wolves.
@darth2499
I believe there is already a plugin that does exactly that; it's named WolfPound.
Can you make it sign instead of commands? Because i want to make a pet store in my server so players have to go there to buy the pets :)
@Royalgamer06 Actually there is one it's called Pet Shop
@Zombiemold
The new file, 1.16, is being approved right now. It features the delivery delay, like you suggested. :)
@Zombiemold
The thing is, I hate to be dependent on another plugin - and a thing like Vault requires a seperate JAR to be installed. I include Register in my own JAR, so no seperate installing is required and there is no risk of conflicting versions. As for such a warm-up time, that's quite the good idea. Also, I recommend you put the price on something high that isn't too easy to obtain; on my server it's 300.0 for a wolf, where 5.0 is the average mob drop.
@pichubolt090
Would love to see a configurable warm-up time before the wolf is delivered. Without such a warm-up, it has proven to be slightly annoying since you can just buy them on the fly.
Additionally, you might want to look into depending this on Vault instead of Register. Register is old, outdated, and only covers a few of the major economies. Vault hooks into ALL of them, and is updated weekly. Also, in addition to handling economies, it also handles permission systems. This could possibly make your life a whole lot easier, and make your plugin that much more awesome :D
@Royalgamer06
Might do that.