EaglercraftBungee exposes the full BungeeCord plugin API plus Eaglercraft-specific events. Plugins are standard BungeeCord JAR files placed in theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/lDEVinux/eaglercraft/llms.txt
Use this file to discover all available pages before exploring further.
plugins/ directory — if you’ve developed BungeeCord plugins before, the process is identical.
Prerequisites
- Java 8 or later
- Any Java IDE (Eclipse, IntelliJ IDEA, etc.)
bungee-dist.jaradded as a build dependency (see below)
Setting Up Your Project
Create a new Java project in your IDE
Open your IDE and create a new Java project. Name it anything you like.
Download bungee-dist.jar
Download
bungee-dist.jar from stable-download/java/bungee_command/bungee-dist.jar inside the stable-download.zip. This JAR contains the full BungeeCord plugin API including Eaglercraft-specific classes.Add bungee-dist.jar to your project's Build Path
In Eclipse: right-click your project → Properties → Java Build Path → Libraries → Add External JARs… and select the downloaded
bungee-dist.jar.In IntelliJ IDEA: open File → Project Structure → Modules → Dependencies → + → JARs or Directories… and select the JAR.Create your main plugin class
Create a Java class that extends BungeeCord’s
Plugin class. See Basic Plugin Structure below for a minimal example.plugin.yml looks like this:
plugin.yml
Basic Plugin Structure
Every EaglercraftBungee plugin has a main class that extendsPlugin and overrides onEnable() and onDisable():
MyPlugin.java
Registering Event Handlers
Event handlers live in a class that implementsListener. Each handler method is annotated with @EventHandler:
MyListener.java
onEnable() by calling getProxy().getPluginManager().registerListener(this, new MyListener(this)) as shown in the main plugin class above.
For the full list of available events — including Eaglercraft-specific ones such as WebsocketMOTDEvent and WebsocketQueryEvent — see the Events Reference.
Testing Your Plugin
Export your plugin as a JAR
In Eclipse: File → Export → Java → JAR file (or Runnable JAR file) and export to a convenient location.In IntelliJ IDEA: Build → Build Artifacts → select your artifact → Build.
Copy the JAR to the plugins folder
Copy the exported JAR into
java/bungee_command/plugins/ inside your EaglercraftBungee installation directory.Run EaglercraftBungee
On Windows, double-click
run.bat in java/bungee_command/. On macOS or Linux, run ./run_unix.sh from the same directory.See Also
- Events Reference — full reference for
WebsocketMOTDEvent,WebsocketQueryEvent, and all standard BungeeCord events available in EaglercraftBungee - EaglerMOTD — a complete, real-world EaglercraftBungee plugin and the canonical reference implementation for plugin development