Welcome to the BukkitWiki!

This Wiki is home to Bukkit's documentation and regulations surrounding the Bukkit Project and it's services. Want to help out? We would love to have you! Signup to get started!

Plugin Databases

From BukkitWiki
Jump to: navigation, search
Lightbulb.png Note: This page is for developers, server administrators should read Bukkit.yml#database

Bukkit API[edit | edit source]

Bukkit provides an ORM layer for accessing a database. Craftbukkit servers have a database defined in their bukkit.yml. A plugin may access the defined database if the database attribute is set to true in plugin.yml. Plugins can access the database through the Avaje Ebeans ORM by calling JavaPlugin.getDatabase().

For more information about Avaje Ebeans see the Avaje Ebeans Documentation

Example[edit | edit source]

For an example using Ebeans ORM,

see Bukkit's HomeBukkit Plugin


Information[edit | edit source]

Plugins that use a MySQL database use it because it is more powerful than flat-file databases. Using MySQL increases chances of server crashes unless the database is hosted externally. Your server(s) can crash from reaching maximum HDD space allocated to your server.

Note[edit | edit source]

Lightbulb.png Note: Plugins are not restricted to communicating with databases through the provided ORM
Lightbulb.png Note: Plugins seeking direct connections with a database may do so using the Standard Java Library or other libraries.


This page is a stub. You can help us by expanding it