Skip to content

Commit

Permalink
Release 2.7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Rollczi committed Jan 14, 2023
1 parent e6cd577 commit 1d764b7
Show file tree
Hide file tree
Showing 7 changed files with 78 additions and 38 deletions.
71 changes: 48 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

<repository>
<id>panda-repository</id>
<url>https://repo.panda-lang.org/releases</url>
<id>panda-repository</id>
<url>https://repo.panda-lang.org/releases</url>
</repository>
```

```groovy
maven { url "https://repo.panda-lang.org/releases" }
```

### Dependencies (Maven or Gradle)

Framework Core

```xml

<dependency>
<groupId>dev.rollczi.litecommands</groupId>
<artifactId>core</artifactId>
<version>2.7.0</version>
<version>2.7.1</version>
</dependency>
```

```groovy
implementation 'dev.rollczi.litecommands:core:2.7.0'
implementation 'dev.rollczi.litecommands:core:2.7.1'
```

### First Simple Command
`/helloworld <text...>`
`/helloworld other-solution <text...>`
`/helloworld subcommand <text>`

`/helloworld <text...>`
`/helloworld other-solution <text...>`
`/helloworld subcommand <text>`

```java

@Route(name = "helloworld")
@Permission("dev.rollczi.helloworld")
public class HelloWorldCommand {
Expand All @@ -52,47 +65,59 @@ 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);
}

}
```

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

<dependency>
<groupId>dev.rollczi.litecommands</groupId>
<artifactId>velocity</artifactId>
<version>2.7.0</version>
<version>2.7.1</version>
</dependency>
```

```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)
Expand Down
27 changes: 21 additions & 6 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

val coreArtifact by extra("core")
val velocityArtifact by extra("velocity")
val bukkitArtifact by extra("bukkit")
Expand All @@ -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")
Expand Down Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion examples/bukkit/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
4 changes: 2 additions & 2 deletions litecommands-bukkit-adventure/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ Maven
<dependency>
<groupId>dev.rollczi.litecommands</groupId>
<artifactId>bukkit-adventure</artifactId>
<version>2.7.0</version>
<version>2.7.1</version>
</dependency>
```
Gradle
```groovy
implementation 'dev.rollczi.litecommands:bukkit-adventure:2.7.0'
implementation 'dev.rollczi.litecommands:bukkit-adventure:2.7.1'
```
4 changes: 2 additions & 2 deletions litecommands-bukkit/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ Maven
<dependency>
<groupId>dev.rollczi.litecommands</groupId>
<artifactId>bukkit</artifactId>
<version>2.7.0</version>
<version>2.7.1</version>
</dependency>
```
Gradle
```groovy
implementation 'dev.rollczi.litecommands:bukkit:2.7.0'
implementation 'dev.rollczi.litecommands:bukkit:2.7.1'
```

#### Examples:
Expand Down
4 changes: 2 additions & 2 deletions litecommands-bungee/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ Maven
<dependency>
<groupId>dev.rollczi.litecommands</groupId>
<artifactId>bungee</artifactId>
<version>2.7.0</version>
<version>2.7.1</version>
</dependency>
```
Gradle
```groovy
implementation 'dev.rollczi.litecommands:bungee:2.7.0'
implementation 'dev.rollczi.litecommands:bungee:2.7.1'
```

#### Examples:
Expand Down
4 changes: 2 additions & 2 deletions litecommands-velocity/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ Maven
<dependency>
<groupId>dev.rollczi.litecommands</groupId>
<artifactId>velocity</artifactId>
<version>2.7.0</version>
<version>2.7.1</version>
</dependency>
```
Gradle
```groovy
implementation 'dev.rollczi.litecommands:velocity:2.7.0'
implementation 'dev.rollczi.litecommands:velocity:2.7.1'
```

#### Examples:
Expand Down

0 comments on commit 1d764b7

Please sign in to comment.