ChestDataBase

ChestDataBase

2.7k Downloads

ChestDataBase

ChestDataBase is an in game implementation of an SQL database using chest arrays to store data. Out of the box this mod also works as a simple economy (able to store money for each player that logs in (default 50 starting cash, but can be set). Devs can include the ChestDataBase objects to edit default tables and create new tables. Within plugins, tables can be created on the fly and will store persistent data without the need for an external database. Queries can be made by ops with in game commands. This is meant to be used by other mods to build persistent data that will go with your world from server to server without worrying about copying databases over.

Additionally this has some extra methods for managing chest inventory slots and item stacks that you might find useful. In truth, it was shear novelty that drove me to build this, but it ended up working pretty well, enjoy :) I will be updating this as needed.

Meant to be used with WorldGuard/WorldEdit, but is not required. Since the database is represented by actual physical objects in game that can be edited under certain circumstances, WorldGuard (or another region protection mod) is highly recommended.

By default this mod registers 1 table called Players with an origin of 0, 0 ,0 and iterates indexes at x+3 for each table row and z+2 for each column. Players comes stock with the following fields:

Name (key) - String: 96bits (6 item slots)

Money - integer: 30bits (5 items slots)

Bits - bit array: 6bits (1 item slot)

Using ChestDataBase

http:dev.bukkit.org/server-mods/chestdatabase/pages/using-chest-data-base/

Commands

http:dev.bukkit.org/server-mods/chestdatabase/pages/commands/

Default Config File

http:dev.bukkit.org/server-mods/chestdatabase/pages/default-configuration/

Please post up questions on how to use this if interested, I am unsure of what all to put into the help here.

NOTE The upcoming Book update for minecraft will probably drastically change the way this mod works.

Plugins Using ChestDataBase

ChestBuilder Adds build-able structures that do a variety of things including teleporters and firework launchers.