PetShop
PetShop
Description
PetShop is a Sign-Shop-System wich let your user buy cows and other Monster. This plugin require PermissionsEx and iConomy6 to handle the permissions and money(since v1.3 you can use Vault to handle money and permissions).With the command /deliver can the user spawn his bought Pets
coming features
- implement metrics ( http://manage.daily-craft.de/jira/browse/PETSHOP-2 )
- implement feature to prevent stealing pets from others ( http://manage.daily-craft.de/jira/browse/PETSHOP-1 )
- implement the different Villagers & Ocelots
Any wishes?! just let me know
added Features
- implemented Database Support
- PlayerShops
- Debug function
- Worldguard hook so you cant use /deliver in region with mob-spawning: deny flag
- config file so you can translate the displayed message
- hook into Vault to support All Eco and Permission Systems
- add Translation regex to config so %PLAYER% (unused jet) & %ANIMAL% can add to the translations
- add Translation for (peacefull Creatures)
Permissions
- petshop.shop.create | required to create Petshops
- petshop.shop.buy | required to buy @ one Petshop
- petshop.shop.create.player | required to create a playershop
- petshop.shop.create.admin | required to create a adminshop or playershop with a othername
- petshop.collect.pet | required to collect pets with a string
- petshop.admin,merge | required to merge from flatfile to db
Database Installation
All you have to do is to set in the config.yml store to database (the server have to be down for it)
all you need to do is to put this in your bukkit.yml file( replace username, password und database with yours)
You can use any other database (like sqlite) just write the right driver class.
database: username: USERNAME isolation: SERIALIZABLE driver: com.mysql.jdbc.Driver password: PASSWORD url: jdbc:mysql://localhost:3306/DATABASE
if you use previous flatfile system you can merge it with the command /petshop (in future releases there come more subcommand)
Commands
- /deliver .... deliver the bought monsters
- /deliver all .... same as /deliver
- /deliver Creaturename (Case sensitive) ... deliver only the given Type
- /petshop info [name] ... returns the content of the Player (not jet implemented)
- /petshop set [name] [PetType] [MetaTag] ... set a new petcount for a specific Pet (not jet implemented)
- /petshop export filename ... export the content of the whole petshop (not jet implemented)
- /petshop import filename ... import the backup file to the Petshop store (not jet implemented)
Shop-sign
AdminShop
- Line 1 Pet Shop
- Line 2 Creaturename:Color
- Line 3 how many
- Line 4 price
PlayerShop
- Line 1 Pet Shop
- Line 2 PlayerName
- Line 3 CreatureName:Color
- Line 4 price (for one pet)
allowed Creatures
- Cow
- MushroomCow
- WILD_OCELOT
- BLACK_CAT
- RED_CAT
- SIAMESE_CAT
- IronGolem
- Chicken
- Wolf
- FARMER
- BLACKSMITH
- LIBRARIAN
- BUTCHER
- PRIEST
- Sheep
- Squid
- Snowman
Colors
WHITE, ORANGE, MAGENTA, LIGHT_BLUE, YELLOW, LIME, PINK, GRAY, SILVER, CYAN, PURPLE, BLUE, BROWN, GREEN, RED, BLACK
Questions
If you have any questions, just join my server: server.daily-craft.de
(iam BADMAN152)

Looking 4 Dev Builds?!
http://manage.daily-craft.de/jenkins/job/PetShop/
Bugs and Feature Request
If you have some bugs or you want that a new feature have to be added use our bugtracker (Jira)
-
View User Profile
-
Send Message
Posted Sep 16, 2012NOT WORKING!
So,if i try to buy a pet from adminshop I can,but,the money isn't took out of the account.
using Boseconomy!
-
View User Profile
-
Send Message
Posted Sep 10, 2012@MurderingMason
if you use the latest version the pets are "auto"-tamed if it is applicable otherwise it spawn als normal creature
and there is (at this time) no final version of 6.0 only release candidate. And i sad i add this feature after i finaly got a RB of version 6.0
-
View User Profile
-
Send Message
Posted Sep 9, 2012What i wanted was the pets to follow you when ever you bought/spawned them ツ
-
View User Profile
-
Send Message
Posted Sep 9, 2012@DailyCraft
@DailyCraft
uhm idk how really?
-
View User Profile
-
Send Message
Posted Sep 2, 2012@The_Micahel
what kind of mob missing you ? every peacful mob is provided in the list Cow MushroomCow WILD_OCELOT BLACK_CAT RED_CAT SIAMESE_CAT IronGolem Chicken Wolf FARMER BLACKSMITH LIBRARIAN BUTCHER PRIEST Sheep Squid Snowman
-
View User Profile
-
Send Message
Posted Sep 2, 2012You need to update the list to show all of the mobs, not just some of them~ http://www.minecraftwiki.net/wiki/Mobs
-
View User Profile
-
Send Message
Posted Aug 31, 2012@Zefram
Ocelot is nolonger supportet you can now spawn the WILD_OCELOT, BLACK_CAT, RED_CAT, SIAMESE_CAT .
It could be a namechange for IronGolem from 1.2.5 to 1.3.1/2 ... to Iron_Golem
-
View User Profile
-
Send Message
Posted Aug 31, 2012@Zefram
i didnt implemented the autocorrect function for all meta data you have to write WHITE ( all uppercase)
-
View User Profile
-
Send Message
Posted Aug 30, 2012adminshop
sheep:white
i use /deliver all
sheep Unlimited spawn
09:37:12 [SEVERE] null
org.bukkit.command.CommandException Unhandled exception executing command 'deli
ver' in plugin PetShop v6.0.RC-1
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:42)
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:16
8)
at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:4
92)
at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.
java:838)
at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:788)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:770)
at net.minecraft.server.Packet3Chat.handle(Packet3Chat.java:44)
at net.minecraft.server.NetworkManager.b(NetworkManager.java:276)
at net.minecraft.server.NetServerHandler.d(NetServerHandler.java:125)
at net.minecraft.server.ServerConnection.b(SourceFile:35)
at net.minecraft.server.DedicatedServerConnection.b(SourceFile:30)
at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:581)
at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:212)
at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:474)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:406)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)
Caused by: java.lang.IllegalArgumentException No enum constant org.bukkit.DyeCo
lor.white
at java.lang.Enum.valueOf(Unknown Source)
at org.bukkit.DyeColor.valueOf(DyeColor.java:10)
at de.dailycraft.petshop.util.PetConverter.addPetData2Entity(PetConverte
r.java:58)
at de.dailycraft.petshop.util.Deliverer.deliverPets(Deliverer.java:36)
at de.dailycraft.petshop.util.Deliverer.deliverPets(Deliverer.java:27)
at de.dailycraft.petshop.Petshop.deliver(Petshop.java:190)
at de.dailycraft.petshop.command.Deliver.onCommand(Deliver.java:48)
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
... 15 more
>
-
View User Profile
-
Send Message
Posted Aug 30, 20126.0 rc1
ocelot
IronGolem
adminshop
can't spawn
[SEVERE] Could not pass event PlayerInteractEvent to PetShop
org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja
va:332)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
a:62)
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.j
ava:477)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
ava:462)
at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEven
t(CraftEventFactory.java:177
at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.j
ava:355)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:617)
at net.minecraft.server.Packet15Place.handle(SourceFile:58)
at net.minecraft.server.NetworkManager.b(NetworkManager.java:276)
at net.minecraft.server.NetServerHandler.d(NetServerHandler.java:125)
at net.minecraft.server.ServerConnection.b(SourceFile:35)
at net.minecraft.server.DedicatedServerConnection.b(SourceFile:30)
at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:581)
at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:212)
at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:474)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:406)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)
Caused by: java.lang.NullPointerException
at de.dailycraft.petshop.shop.PlayerBuyAction.onPlayerInteract(PlayerBuy
Action.java:81
at sun.reflect.GeneratedMethodAccessor15.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja
va:330)
... 16 more
>
-
View User Profile
-
Send Message
Posted Aug 27, 2012@Zefram
thanks for reporting bug here is the fixed version
http://manage.daily-craft.de/jenkins/job/PetShop/28/artifact/target/PetShop-6.0.RC-1.jar
i dont add it to dev-bukkit so the bukkit team dont have to prove avery bugfix
-
View User Profile
-
Send Message
Posted Aug 27, 2012@Zefram
ohhh you mean the admin-shop. this could be the bug. i try reproduce it and fix it.
-
View User Profile
-
Send Message
Posted Aug 27, 2012i just use
Line 1 Pet Shop
Line 2 PIG
Line 3 1
Line 4 1
[petshop] Successfully created Shop
but can't buy this
not Villager
-
View User Profile
-
Send Message
Posted Aug 26, 2012@Zefram
Caused by: java.lang.IllegalArgumentException No enum constant org.bukkit.entit y.Villager.Profession.1 means:
it doesnt exsist an Villager with profession 1. You have to choose one of FARMER BLACKSMITH LIBRARIAN BUTCHER PRIEST. the 3 line ist the name op the pet not the price!
-
View User Profile
-
Send Message
Posted Aug 26, 2012PetShop v6.0 Release Candidate
bukki 1.3.1
sign shop no work
[SEVERE] Could not pass event PlayerInteractEvent to PetShop
org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja
va:332)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
a:62)
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.j
ava:477)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
ava:462)
at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEven
t(CraftEventFactory.java:177
at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.j
ava:331)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:617)
at net.minecraft.server.Packet15Place.handle(SourceFile:58)
at net.minecraft.server.NetworkManager.b(NetworkManager.java:281)
at net.minecraft.server.NetServerHandler.d(NetServerHandler.java:125)
at net.minecraft.server.ServerConnection.b(SourceFile:35)
at net.minecraft.server.DedicatedServerConnection.b(SourceFile:30)
at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:583)
at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:212)
at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:476)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:408)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)
Caused by: java.lang.IllegalArgumentException No enum constant org.bukkit.entit
y.Villager.Profession.1
at java.lang.Enum.valueOf(Unknown Source)
at org.bukkit.entity.Villager$Profession.valueOf(Villager.java:25)
at de.dailycraft.petshop.shop.PlayerBuyAction.onPlayerInteract(PlayerBuy
Action.java:72
at sun.reflect.GeneratedMethodAccessor614.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja
va:330)
... 16 more
-
View User Profile
-
Send Message
Posted Aug 26, 2012@DailyCraft
New Release Cadidate 6.0.RC waiting for bukkit prove! Download here : http://dev.bukkit.org/server-mods/petshop/files/15-pet-shop-v6-0-release-candidate/ or over my ci build# 27
-
View User Profile
-
Send Message
Posted Aug 19, 2012@Zefram
@Egor33345
you can use my dev build of petshop http://manage.daily-craft.de/jenkins/job/PetShop/25/ i added a new permission petshop.collect.pet for farming/collecting pets with a string to give a better support for multiworld servers with a creative world
@MurderingMason
when i finally build a RB of Petshop against bukkit-1.3 i can try to add this feature if you create a feature request ( german "neue funktion") to my jira http://manage.daily-craft.de/jira/browse/PETSHOP you get a notification when im done with this feature
-
View User Profile
-
Send Message
Posted Aug 19, 2012Hey i have a wish can uhm when you buy and spawn them why dont they follow you? you should be able to have them follow you when you spawn them...
-
View User Profile
-
Send Message
Posted Aug 19, 2012@Egor33345
i working on it ... @ofnature
you can sell any pet/mob from adminshop you doesnt need a second plugin. use the english names ;)
-
View User Profile
-
Send Message
Posted Aug 17, 2012Please, Update to 1.3.1 thanks