☄️
LiteCommands
Command framework for Velocity and your other implementations.
Helpful links:
❤️
Panda Repository (Maven or Gradle) <repository>
<id>panda-repository</id>
<url>https://repo.panda-lang.org/releases</url>
</repository>
maven { url "https://repo.panda-lang.org/releases" }
Dependencies (Maven or Gradle)
Framework Core
<dependency>
<groupId>dev.rollczi.litecommands</groupId>
<artifactId>core</artifactId>
<version>1.4.1</version>
</dependency>
implementation 'dev.rollczi.litecommands:core:1.4.1'
First Simple Command
/helloworld <text...>
@Section(route = "helloworld")
@Permission("dev.rollczi.helloworld")
public class HelloWorldCommand {
@Execute
@MinArgs(1)
public void execute(LiteSender sender, String[] args) {
sender.sendMessage(String.join(" ", args));
}
}
Register your first command in plugin main class: (in this case for Velocity)
this.liteCommands = LiteVelocityFactory.builder(proxy)
.command(HelloWorldCommand.class)
.register();
Velocity Extension Dependencies (Maven or Gradle)
Add this to your dependencies if you want use ready-made implementation for velocity.
<dependency>
<groupId>dev.rollczi.litecommands</groupId>
<artifactId>velocity</artifactId>
<version>1.4.1</version>
</dependency>
implementation 'dev.rollczi.litecommands:velocity:1.4.1'
All extensions:
Other examples:
- Wiki Velocity Example
- Wiki Velocity Example (advanced)
- (Rollczi) Bukkit Example
- (shitzuu) BungeeCord Example
See (Important dependencies used)