Skip to content
/ kodaka Public
forked from bizarre/honcho1

🦅 A Modern Powerful Lightweight Command Framework Library for Paper

License

Notifications You must be signed in to change notification settings

2mug1/kodaka

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kodaka

Getting Started

Installation

pom.xml

 <repository>
  <id>github</id>
  <name>kodaka</name>
  <url>https://maven.pkg.github.com/2mug1/kodaka</url>
</repository>

<dependency>
  <groupId>net.iamtakagi</groupId>
  <artifactId>kodaka</artifactId>
  <version>1.0.3</version>
  <scope>compile</scope>
</dependency>

build.gradle

repositories {
  maven (url = "https://maven.pkg.github.com/2mug1/kodaka")
}
dependencies {
  implementation("net.iamtakagi:kodaka:1.0.3")
}

Usage

Kotlin Example - A command that broadcasts a message in chat (/broadcast <message>)

@CommandMeta(label = ["broadcast"])
class BroadcastCommand {

  fun execute(sender: CommandSender, message: String) {
    Bukkit.broadcastMessage("${ChatColor.AQUA}$message");
  }

}

Java Example - A command that broadcasts a message in chat (/broadcast <message>)

@CommandMeta(label = "broadcast")
public class BroadcastCommand {

  public void execute(CommandSender sender, String message) {
    Bukkit.broadcastMessage(ChatColor.AQUA + message);
  }

}

Result (A kodaka automatically generates command usage and converts String[] arguments into a single String)

img

LICENSE

MIT License (© 2022 iamtakagi)

About

🦅 A Modern Powerful Lightweight Command Framework Library for Paper

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • Kotlin 100.0%