fullwall / Citizens

An NPC plugin for bukkit.
Other
35 stars 7 forks source link

SQL Support #149

Open ghost opened 13 years ago

ghost commented 13 years ago

SQL Chart

Most of the values should be correct (yellow = int / float, blue = enum / boolean, red = string). I most of the tables could be merged into the NPC table, but I think it helps the expandability for later features and makes the structure clearer.

[Profession]_Active determines whether the NPC has the profession or not. Example:

About the WP (Waypoints) table:

About the Stock table:

About the other tables:

fullwall commented 13 years ago

Thanks! It's looking really good :). After I get guards + questers finished, I may get the chance to look into adding SQL support. One question - should yml be an option as well?

ghost commented 13 years ago

I think it should be. As far as I know, all plugins with SQL support have a flatfile (most of the times in .yml) support, because many serveradmins don't have access to a MySQL server.