diff --git a/README.md b/README.md index 0b329bf98..ad8ca968b 100644 --- a/README.md +++ b/README.md @@ -3,40 +3,53 @@ # ☄️ LiteCommands [![dependency](https://repo.panda-lang.org/api/badge/latest/releases/dev/rollczi/litecommands/core?color=53a2f9&name=LiteCommands)](https://repo.panda-lang.org/#/releases/dev/rollczi/litecommands) [![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.com/paypalme/NDejlich) [![Discord](https://img.shields.io/discord/896933084983877662?color=8f79f4&label=Lite%20Discord)](https://img.shields.io/discord/896933084983877662?color=8f79f4&label=Lite%20Discord) [![OSCS Status](https://www.oscs1024.com/platform/badge/Rollczi/LiteCommands.svg?size=small)](https://www.oscs1024.com/project/Rollczi/LiteCommands?ref=badge_small) #### Command framework for Velocity, Bukkit, Paper, BungeeCord and your other implementations. + Helpful links: + - [Support Discord](https://discord.gg/6cUhkj6uZJ) - [GitHub issues](https://github.com/Rollczi/LiteCommands/issues) - [Example](https://github.com/Rollczi/LiteCommands/tree/master/examples/bukkit) - [Documentation](https://docs.rollczi.dev/) ### Panda Repository (Maven or Gradle) ❤️ + ```xml + - panda-repository - https://repo.panda-lang.org/releases + panda-repository + https://repo.panda-lang.org/releases ``` + ```groovy maven { url "https://repo.panda-lang.org/releases" } ``` + ### Dependencies (Maven or Gradle) + Framework Core + ```xml + dev.rollczi.litecommands core - 2.7.0 + 2.7.1 ``` + ```groovy -implementation 'dev.rollczi.litecommands:core:2.7.0' +implementation 'dev.rollczi.litecommands:core:2.7.1' ``` ### First Simple Command - `/helloworld ` - `/helloworld other-solution ` - `/helloworld subcommand ` + +`/helloworld ` +`/helloworld other-solution ` +`/helloworld subcommand ` + ```java + @Route(name = "helloworld") @Permission("dev.rollczi.helloworld") public class HelloWorldCommand { @@ -52,7 +65,7 @@ public class HelloWorldCommand { public void otherSolution(LiteSender sender, @Joiner String text) { sender.sendMessage(text); } - + @Execute(route = "subcommand") public void subcommand(LiteSender sender, @Arg String text) { sender.sendMessage(text); @@ -60,39 +73,51 @@ public class HelloWorldCommand { } ``` + Register your first command in plugin main class: (in this case for Velocity) + ```java -this.liteCommands = LiteVelocityFactory.builder(proxy) - .command(HelloWorldCommand.class) - .register(); +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. + ```xml + dev.rollczi.litecommands velocity - 2.7.0 + 2.7.1 ``` + ```groovy -implementation 'dev.rollczi.litecommands:velocity:2.7.0' +implementation 'dev.rollczi.litecommands:velocity:2.7.1' ``` -#### All extensions: - - [Velocity](https://github.com/Rollczi/LiteCommands/tree/master/litecommands-velocity) - - [Bukkit](https://github.com/Rollczi/LiteCommands/tree/master/litecommands-bukkit) - - [Bukkit Adventure extension](https://github.com/Rollczi/LiteCommands/tree/master/litecommands-bukkit-adventure) - - [BungeeCord](https://github.com/Rollczi/LiteCommands/tree/master/litecommands-bungee) - -#### Other examples: - - [Bukkit Example](https://github.com/Rollczi/LiteCommands/tree/master/examples/bukkit) +#### All extensions: + +- [Velocity](https://github.com/Rollczi/LiteCommands/tree/master/litecommands-velocity) +- [Bukkit](https://github.com/Rollczi/LiteCommands/tree/master/litecommands-bukkit) +- [Bukkit Adventure extension](https://github.com/Rollczi/LiteCommands/tree/master/litecommands-bukkit-adventure) +- [BungeeCord](https://github.com/Rollczi/LiteCommands/tree/master/litecommands-bungee) + +#### Other examples: + +- [Bukkit Example](https://github.com/Rollczi/LiteCommands/tree/master/examples/bukkit) #### See (Important dependencies used) - - [panda-lang/expressible](https://github.com/panda-lang/expressible) - - [panda-lang/panda (panda-utilities)](https://github.com/panda-lang/panda) (v1.0.0 - v1.9.2) (in v2.0.0 and above a built-in DI modeled on it is used) + +- [panda-lang/expressible](https://github.com/panda-lang/expressible) +- [panda-lang/panda (panda-utilities)](https://github.com/panda-lang/panda) (v1.0.0 - v1.9.2) (in v2.0.0 and above a + built-in DI modeled on it is used) #### Plugins that use LiteCommands: + - [EternalCore](https://github.com/EternalCodeTeam/EternalCore) - [EternalCheck](https://github.com/EternalCodeTeam/EternalCheck) - [EternalRTP](https://github.com/EternalCodeTeam/EternalRTP) diff --git a/build.gradle.kts b/build.gradle.kts index a35acea8a..aa539ff92 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,4 +1,3 @@ - val coreArtifact by extra("core") val velocityArtifact by extra("velocity") val bukkitArtifact by extra("bukkit") @@ -14,7 +13,7 @@ plugins { allprojects { group = "dev.rollczi.litecommands" - version = "2.7.0-SNAPSHOT" + version = "2.7.1" apply(plugin = "java-library") apply(plugin = "maven-publish") @@ -46,14 +45,30 @@ subprojects { maven("panda", "https://repo.panda-lang.org", "MAVEN_USERNAME", "MAVEN_PASSWORD", false) - maven("eternalcode", "https://repo.eternalcode.pl", "ETERNAL_CODE_MAVEN_USERNAME", "ETERNAL_CODE_MAVEN_PASSWORD") - - maven("minecodes", "https://repository.minecodes.pl", "MINE_CODES_MAVEN_USERNAME", "MINE_CODES_MAVEN_PASSWORD",) + maven( + "eternalcode", + "https://repo.eternalcode.pl", + "ETERNAL_CODE_MAVEN_USERNAME", + "ETERNAL_CODE_MAVEN_PASSWORD" + ) + + maven( + "minecodes", + "https://repository.minecodes.pl", + "MINE_CODES_MAVEN_USERNAME", + "MINE_CODES_MAVEN_PASSWORD", + ) } } } -fun RepositoryHandler.maven(name: String, url: String, username: String, password: String, deploySnapshots: Boolean = true) { +fun RepositoryHandler.maven( + name: String, + url: String, + username: String, + password: String, + deploySnapshots: Boolean = true +) { val isSnapshot = version.toString().endsWith("-SNAPSHOT") if (isSnapshot && !deploySnapshots) { diff --git a/examples/bukkit/build.gradle.kts b/examples/bukkit/build.gradle.kts index 586d0a3fd..fe3c8ea8c 100644 --- a/examples/bukkit/build.gradle.kts +++ b/examples/bukkit/build.gradle.kts @@ -10,7 +10,7 @@ repositories { dependencies { compileOnly("org.spigotmc:spigot-api:1.19.2-R0.1-SNAPSHOT") - // implementation("dev.rollczi.litecommands:bukkit:2.7.0") // <-- uncomment in your project + // implementation("dev.rollczi.litecommands:bukkit:2.7.1") // <-- uncomment in your project implementation(project(":litecommands-bukkit")) // don't use this line in your build.gradle testImplementation("org.junit.jupiter:junit-jupiter-api:5.9.0") diff --git a/litecommands-bukkit-adventure/README.md b/litecommands-bukkit-adventure/README.md index ed30b54e5..413f9ddc8 100644 --- a/litecommands-bukkit-adventure/README.md +++ b/litecommands-bukkit-adventure/README.md @@ -4,10 +4,10 @@ Maven dev.rollczi.litecommands bukkit-adventure - 2.7.0 + 2.7.1 ``` Gradle ```groovy -implementation 'dev.rollczi.litecommands:bukkit-adventure:2.7.0' +implementation 'dev.rollczi.litecommands:bukkit-adventure:2.7.1' ``` diff --git a/litecommands-bukkit/README.md b/litecommands-bukkit/README.md index 84ac369f1..3febc4195 100644 --- a/litecommands-bukkit/README.md +++ b/litecommands-bukkit/README.md @@ -4,12 +4,12 @@ Maven dev.rollczi.litecommands bukkit - 2.7.0 + 2.7.1 ``` Gradle ```groovy -implementation 'dev.rollczi.litecommands:bukkit:2.7.0' +implementation 'dev.rollczi.litecommands:bukkit:2.7.1' ``` #### Examples: diff --git a/litecommands-bungee/README.md b/litecommands-bungee/README.md index b0fc1d2ef..0bc1cd5f1 100644 --- a/litecommands-bungee/README.md +++ b/litecommands-bungee/README.md @@ -4,12 +4,12 @@ Maven dev.rollczi.litecommands bungee - 2.7.0 + 2.7.1 ``` Gradle ```groovy -implementation 'dev.rollczi.litecommands:bungee:2.7.0' +implementation 'dev.rollczi.litecommands:bungee:2.7.1' ``` #### Examples: diff --git a/litecommands-velocity/README.md b/litecommands-velocity/README.md index 56a1a4414..9fec6e28a 100644 --- a/litecommands-velocity/README.md +++ b/litecommands-velocity/README.md @@ -4,12 +4,12 @@ Maven dev.rollczi.litecommands velocity - 2.7.0 + 2.7.1 ``` Gradle ```groovy -implementation 'dev.rollczi.litecommands:velocity:2.7.0' +implementation 'dev.rollczi.litecommands:velocity:2.7.1' ``` #### Examples: