Register on hacktoberfest.com and start supporting open source!
Add/Improve/Fix features and open Pull request! If you don't have an idea, see issues!
Command framework for Velocity, Bukkit, Paper, BungeeCord, Minestom, JDA and your other implementations.
Helpful links:
<repository>
<id>panda-repository</id>
<url>https://repo.panda-lang.org/releases</url>
</repository>
maven { url "https://repo.panda-lang.org/releases" }
Framework Core
<dependency>
<groupId>dev.rollczi</groupId>
<artifactId>litecommands-core</artifactId>
<version>3.0.0-BETA-pre22</version>
</dependency>
implementation 'dev.rollczi:litecommands-core:3.0.0-BETA-pre22'
/hello-world <name> <amount>
/hello-world message <text...>
@Command(name = "hello-world")
@Permission("dev.rollczi.helloworld")
public class HelloWorldCommand {
@Execute
public void command(@Context CommandSender sender, @Arg String name, @Arg int amount) {
for (int i = 0; i < amount; i++) {
sender.sendMessage("Hello " + name);
}
}
@Execute(name = "message")
public void subcommand(@Context CommandSender sender, @Join String text) {
sender.sendMessage(text);
}
}
Register your first command in plugin main class: (in this case for Velocity)
this.liteCommands=LiteVelocityFactory.builder(proxy)
.command(HelloWorldCommand.class)
.register();
Add this to your dependencies if you want to use ready-made implementation for velocity.
<dependency>
<groupId>dev.rollczi</groupId>
<artifactId>litecommands-velocity</artifactId>
<version>3.0.0-BETA-pre22</version>
</dependency>
implementation 'dev.rollczi:litecommands-velocity:3.0.0-BETA-pre22'
tasks.withType(JavaCompile) {
options.compilerArgs << "-parameters"
}
tasks.withType<JavaCompile> {
options.compilerArgs.add("-parameters")
}
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<compilerArgs>
<arg>-parameters</arg>
</compilerArgs>
</configuration>
</plugin>
- panda-lang/expressible
- panda-lang/panda (panda-utilities) (v1.0.0 - v1.9.2) (in v2.0.0 and above a built-in DI modeled on it is used)