☄️ LiteCommands - Command framework for Velocity, Bukkit, Paper, BungeeCord, Minestom, Sponge, JDA and other implementations.
APACHE-2.0 License
Annotation based command framework for Velocity, Bukkit, Paper, BungeeCord, Minestom, Sponge, Fabric, JDA and future implementations.
int
, double
, Duration
, LocalDateTime
, Location
and more!List
, Set
, TreeSet
, Queue
, java array T[]
and many others!This is an example of /hello <name> <amount>
command:
@Command(name = "hello")
@Permission("dev.rollczi.helloworld")
public class HelloCommand {
@Execute
void command(@Context CommandSender sender, @Arg String name, @Arg int amount) {
for (int i = 0; i < amount; i++) {
sender.sendMessage("Hello " + name);
}
}
}
Then we need to register the command in plugin main class: (in this case for Bukkit)
this.liteCommands = LiteBukkitFactory.builder("example-plugin")
.commands(new HelloCommand())
.build();
maven("https://repo.panda-lang.org/releases")
<repository>
<id>panda-repository</id>
<url>https://repo.panda-lang.org/releases</url>
</repository>
implementation("dev.rollczi:{artifact}:3.6.1")
<dependency>
<groupId>dev.rollczi</groupId>
<artifactId>{artifact}</artifactId>
<version>3.6.1</version>
</dependency>
⚠️ Replace
{artifact}
with platform artifact Add-parameters
flag to your compiler to use all features (read more)
@@ Special thanks to all sponsors for supporting me and my projects! ❤️ @@
With LiteCommands plugin, you can easily develop your commands within the IntelliJ IDEA environment. The plugin provides annotation inspections, tools for creating new command classes, syntax highlighting, code completion, and other useful features to make your development experience smoother and more efficient. How to install?