Skip to content

Commit 956918a

Browse files
committed
Handle merge commands classes, improve builder API and 2.3.3 Release
1 parent a1ebccf commit 956918a

File tree

15 files changed

+106
-40
lines changed

15 files changed

+106
-40
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
Helpful links:
77
- [Support Discord](https://discord.gg/6cUhkj6uZJ)
88
- [GitHub issues](https://github.com/Rollczi/LiteCommands/issues)
9-
- [Example (Modern 2.3.2)](https://github.com/Rollczi/LiteCommands/tree/master/examples/bukkit)
9+
- [Example (Modern 2.3.3)](https://github.com/Rollczi/LiteCommands/tree/master/examples/bukkit)
1010
- [Docs (Legacy 1.7.2)](https://docs.rollczi.dev/)
1111

1212
### Panda Repository (Maven or Gradle) ❤️
@@ -25,11 +25,11 @@ Framework Core
2525
<dependency>
2626
<groupId>dev.rollczi.litecommands</groupId>
2727
<artifactId>core</artifactId>
28-
<version>2.3.2</version>
28+
<version>2.3.3</version>
2929
</dependency>
3030
```
3131
```groovy
32-
implementation 'dev.rollczi.litecommands:core:2.3.2'
32+
implementation 'dev.rollczi.litecommands:core:2.3.3'
3333
```
3434

3535
### First Simple Command
@@ -64,11 +64,11 @@ Add this to your dependencies if you want use ready-made implementation for velo
6464
<dependency>
6565
<groupId>dev.rollczi.litecommands</groupId>
6666
<artifactId>velocity</artifactId>
67-
<version>2.3.2</version>
67+
<version>2.3.3</version>
6868
</dependency>
6969
```
7070
```groovy
71-
implementation 'dev.rollczi.litecommands:velocity:2.3.2'
71+
implementation 'dev.rollczi.litecommands:velocity:2.3.3'
7272
```
7373

7474
#### All extensions:

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ plugins {
1414

1515
allprojects {
1616
group = "dev.rollczi.litecommands"
17-
version = "2.3.2"
17+
version = "2.3.3"
1818

1919
apply(plugin = "java-library")
2020
apply(plugin = "maven-publish")

examples/bukkit/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ repositories {
1010

1111
dependencies {
1212
compileOnly("org.spigotmc:spigot-api:1.19-R0.1-SNAPSHOT")
13-
// implementation("dev.rollczi.litecommands:bukkit:2.3.2") // <-- uncomment in your project
13+
// implementation("dev.rollczi.litecommands:bukkit:2.3.3") // <-- uncomment in your project
1414
implementation(project(":litecommands-bukkit")) // don't use this line in your build.gradle
1515

1616
testImplementation("org.junit.jupiter:junit-jupiter-api:5.8.1")

litecommands-bukkit-adventure/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ Maven
44
<dependency>
55
<groupId>dev.rollczi.litecommands</groupId>
66
<artifactId>bukkit-adventure</artifactId>
7-
<version>2.3.2</version>
7+
<version>2.3.3</version>
88
</dependency>
99
```
1010
Gradle
1111
```groovy
12-
implementation 'dev.rollczi.litecommands:bukkit-adventure:2.3.2'
12+
implementation 'dev.rollczi.litecommands:bukkit-adventure:2.3.3'
1313
```

litecommands-bukkit/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ Maven
44
<dependency>
55
<groupId>dev.rollczi.litecommands</groupId>
66
<artifactId>bukkit</artifactId>
7-
<version>2.3.2</version>
7+
<version>2.3.3</version>
88
</dependency>
99
```
1010
Gradle
1111
```groovy
12-
implementation 'dev.rollczi.litecommands:bukkit:2.3.2'
12+
implementation 'dev.rollczi.litecommands:bukkit:2.3.3'
1313
```
1414

1515
#### Examples:

litecommands-bungee/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ Maven
44
<dependency>
55
<groupId>dev.rollczi.litecommands</groupId>
66
<artifactId>bungee</artifactId>
7-
<version>2.3.2</version>
7+
<version>2.3.3</version>
88
</dependency>
99
```
1010
Gradle
1111
```groovy
12-
implementation 'dev.rollczi.litecommands:bungee:2.3.2'
12+
implementation 'dev.rollczi.litecommands:bungee:2.3.3'
1313
```
1414

1515
#### Examples:

litecommands-core/src/main/java/dev/rollczi/litecommands/LiteCommandsBuilder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@ public interface LiteCommandsBuilder<SENDER> {
7373

7474
Class<SENDER> getSenderType();
7575

76-
LiteCommandsBuilder<SENDER> beforeRegister(LiteCommandsProcess<SENDER> preProcess);
76+
LiteCommandsBuilder<SENDER> beforeRegister(LiteCommandsPreProcess<SENDER> preProcess);
7777

78-
LiteCommandsBuilder<SENDER> afterRegister(LiteCommandsProcess<SENDER> postProcess);
78+
LiteCommandsBuilder<SENDER> afterRegister(LiteCommandsPostProcess<SENDER> postProcess);
7979

8080
LiteCommands<SENDER> register();
8181

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package dev.rollczi.litecommands;
2+
3+
import dev.rollczi.litecommands.command.CommandService;
4+
import dev.rollczi.litecommands.injector.Injector;
5+
import dev.rollczi.litecommands.platform.RegistryPlatform;
6+
7+
public interface LiteCommandsPostProcess<SENDER> {
8+
9+
void process(LiteCommandsBuilder<SENDER> builder, RegistryPlatform<SENDER> platform, Injector<SENDER> injector, CommandService<SENDER> commandService);
10+
11+
}

litecommands-core/src/main/java/dev/rollczi/litecommands/LiteCommandsProcess.java renamed to litecommands-core/src/main/java/dev/rollczi/litecommands/LiteCommandsPreProcess.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import dev.rollczi.litecommands.injector.Injector;
44
import dev.rollczi.litecommands.platform.RegistryPlatform;
55

6-
public interface LiteCommandsProcess<SENDER> {
6+
public interface LiteCommandsPreProcess<SENDER> {
77

88
void process(LiteCommandsBuilder<SENDER> builder, RegistryPlatform<SENDER> platform, Injector<SENDER> injector);
99

litecommands-core/src/main/java/dev/rollczi/litecommands/command/CommandService.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,12 @@ public void register(CommandSection<SENDER> section) {
4848
);
4949
}
5050

51+
public RegistryPlatform<SENDER> getPlatform() {
52+
return platform;
53+
}
54+
55+
public ExecuteResultHandler<SENDER> getHandler() {
56+
return handler;
57+
}
58+
5159
}

0 commit comments

Comments
 (0)