To develop lobby modules, the practical LobbyAPI is available, with which each programmer can implement their own ideas. To start programming, 2 files must be added as dependencies:

  1. The Lobby Plugin
  2. The lastest Spigot version or another server software


After the programming environment is set up, the module can begin to be developed. For this, the corresponding class must implement the interface interface Module (me.BukkitPVP.Lobby.Module.Module). It is important that the class must be in the default package. Alternatively, you can also copy the following code into your class:


import me.BukkitPVP.Lobby.Module.LobbyAPI;
import me.BukkitPVP.Lobby.Module.Module;

public class Classname implements Module {

    private LobbyAPI api;
    private JavaPlugin plugin;

    public String getName() {
        return "Module name";

    public int getProductID() {
        return 0;

    public String getVersion() {
        return "1.0.0";

    public void load(JavaPlugin plugin, LobbyAPI api) {
        this.plugin = plugin;
        this.api = api;

This code already generates a functioning module without any function.

Add command

The simplest thing is to add a command:

api.registerCommand("myCommand", new MyCommand());

This command defines the command /lb myCommand. The 2nd argument is a class that implements the SubCMD interface.

class MyCommand implements SubCMD {
  public boolean cmd(Player p, String[] arg1) {
    //Your command action

    //Command successful
    return true; 
  public String getPermission() {
    return "lb.myPermission";

Add item

If you now want to add an item that executes this command, this is done as follows:

ItemStack i = new ItemStack(Material.STONE);
api.addItem(i, "/lobby myCommand", "lb.myPermission");

Here, the permission is optional. If left empty, all players automatically gain access to the item.


The lobby plugin has an integrated config API to allow developers to integrate functions as easily as possible.

The first step is to add a new entry. At the same time, it is checked whether the entry already exists. In addition, it is possible to add a comment to allow users the simplest possible setup.

Config.check(Config.getConfig(), "key", "value", "Your comment");

Otherwise all usual operations can be used. For example, to read a string, you can use the following code:


Create the module

Once your module is finished, you can install it on your server or offer it to other users for download. Proceed as follows:

  1. Compile your classes. For this you can, for example, make a right-click on the corresponding file in your programming environment. The menu should have a button for compiling the class.
  2. The compiled .class files can now be copied from the corresponding directory into the module folder of the lobby plugin.
  3. For greater clarity, the class files can be copied to a subdirectory.
% of people found this helpful.