Skip to content

cloud-bungee#

cloud-bungee allows you to write commands for BungeeCord.

Installation#

Cloud for BungeeCord is available through Maven Central.

<dependencies>
    <dependency>
        <groupId>org.incendo</groupId>
        <artifactId>cloud-bungee</artifactId>
        <version>2.0.0-beta.2</version>
    </dependency>
</dependencies>
implementation("org.incendo:cloud-bungee:2.0.0-beta.2")
implementation 'org.incendo:cloud-bungee:2.0.0-beta.2'

Usage#

cloud-bungee has a command manager implementation called BungeeCommandManager that can be created like:

BungeeCommandManager<YourSenderType> commandManager = new BungeeCommandManager<>(
  plugin,
  executionCoordinator, /* (1)! */
  senderMapper /* (2)! */
);
  1. Information about execution coordinators in general can be found here.
  2. The sender mapper is a two-way mapping between BungeeCord’s CommandSender and your custom sender type. You may use SenderMapper.identity() if using CommandSender as the sender type.

Parsers#

Parser Type
PlayerParser ProxiedPlayer
ServerParser ServerInfo

Localization#

cloud-bungee provides additional caption keys for the localization system. These can be found in BungeeCaptionKeys. The default caption values can be found in BungeeCommandManager.