cloud-bungee#
cloud-bungee
allows you to write commands for BungeeCord.
Links#
Installation#
Cloud for BungeeCord is available through Maven Central.
<dependencies>
<dependency>
<groupId>org.incendo</groupId>
<artifactId>cloud-bungee</artifactId>
<version>2.0.0-beta.10</version>
</dependency>
</dependencies>
implementation("org.incendo:cloud-bungee:2.0.0-beta.10")
implementation 'org.incendo:cloud-bungee:2.0.0-beta.10'
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)! */
);
- Information about execution coordinators in general can be found here.
- The sender mapper is a two-way mapping between BungeeCord’s
CommandSender
and your custom sender type. You may useSenderMapper.identity()
if usingCommandSender
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
.