BukkitWiki

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!

READ MORE

BukkitWiki
Advertisement
Lightbulb Note: This page is for developers, server administrators should read Bukkit.yml#database

Bukkit API[]

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[]

For an example using Ebeans ORM,

see Bukkit's HomeBukkit Plugin


Information[]

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[]

Lightbulb Note: Plugins are not restricted to communicating with databases through the provided ORM
Lightbulb 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

Advertisement