ChestShopDB

5k Downloads

ChestShopDB records ChestShop shop information into either a MySQL or an SQLite database.


Please note: While it is needed for ChestShopDB to function, ChestShop is NOT bundled with ChestShopDB. Grab Chestshop here.


Table Structure

The current data recorded for shops is as follows:

FieldData TypeDescription
ownervarchar(16)The shop owner's name.
adminShopbooleanWhether the shop is an Admin shop or not.
itemIdintThe data value of the traded item.
stockintThe remaining stock left in the shop's chest.
buyPricedoubleThe price that the player has to <big>pay</big>.
sellPricedoubleThe price that the player will <big>receive</big>.
quantityintThe quantity that the shop buys and/or sells.
worldvarchar(50)The world that the shop's <big>sign</big> resides in.
xdoubleThe x coordinate of the shop's <big>sign</big>.
ydoubleThe y coordinate of the shop's <big>sign</big>.
zdoubleThe z coordinate of the shop's <big>sign</big>.

Source

The source can be viewed here.