Skip to main content

Platforms

Imperat is a generic command dispatching framework, It can work almost on every platform possible if implemented properly. so to depend on any of the platforms you must first declare our repoistory in your build tool configuration file as follows:

Maven central (default)

In order to add the dependency of any platform, you should first add the dependency of the core module, then add the platform's dependency as below:

<dependency>
<groupId>dev.velix</groupId>
<artifactId>imperat-PLATFORM</artifactId>
<version>VERSION</version>
</dependency>
CAUTION

Replace PLATFORM with your platform's name in lowercase.

Platforms are classified into:

  • Minecraft Platforms
  • Non-Minecraft Platforms

Minecraft platforms

Imperat currently has implementations for the current minecraft-related platforms:

  • Bukkit
  • Bungeecord
  • Velocity
PRO TIP

You can use and integrate Imperat with Mojang's Brigadier you can do the following after initializing Imperat and BEFORE registering any commands.

imperat.applyBrigadier();

Bukkit

The BukkitImperat is the impl for Imperat on bukkit platform. The command source in bukkit is called BukkitSource.

Bungee

SAME AS BUKKIT but the prefix is Bungee

Velocity

SAME AS BUKKIT, but the prefix is Velocity

Minestom

SAME AS BUKKIT, but the prefix is Minestom

Other platforms

CLI

CLI for command-line applications, The CommandLineImperat is the impl for Imperat on CLI platform. the command source in CLI is called ConsoleSource.

Others

coming soon...