Skip to content

Commit

Permalink
Release 3.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Rollczi committed Nov 2, 2024
1 parent 26dcb81 commit b949f7e
Show file tree
Hide file tree
Showing 11 changed files with 41 additions and 25 deletions.
23 changes: 13 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<div align="right">

<div align="center"><img src="https://github.com/user-attachments/assets/b1b56f65-2cea-4c24-ae99-8c01f45a33cb" alt="hacktoberfest" width="85%"/></div>
<div align="center"><h3>LiteCommands & Hacktoberfest 2024</h3></div>
<div align="center">Register on <a href="https://hacktoberfest.com/">hacktoberfest.com</a> and start supporting open source!</div>
<div align="center">Add/Improve/Fix features and open <a href="https://github.com/Rollczi/LiteCommands/pulls">Pull request</a>! If you don't have an idea, see <a href="https://github.com/Rollczi/LiteCommands/issues">issues</a>!</div>
<br>
[![dependency](https://repo.panda-lang.org/api/badge/latest/releases/dev/rollczi/litecommands-core?color=9372f9&name=Version)](https://repo.panda-lang.org/#/releases/dev/rollczi/litecommands)
</div>

<div align="center">

<img src="https://github.com/Rollczi/LiteCommands/assets/49173834/4c297b16-eacd-4c89-ba34-2767b114e391" alt="banner" width="65%"/>
<br><br>

[![Discord](https://raw.githubusercontent.com/intergrav/devins-badges/v3/assets/cozy/social/discord-plural_vector.svg)](https://discord.gg/6cUhkj6uZJ)
[![Sponsor](https://raw.githubusercontent.com/intergrav/devins-badges/v3/assets/cozy/donate/ghsponsors-singular_vector.svg)](https://github.com/sponsors/Rollczi)
Expand All @@ -27,7 +27,10 @@ Annotation based command framework for Velocity, Bukkit, Paper, BungeeCord, Mine
- Simple Arguments [@Arg](https://docs.rollczi.dev/documentation/litecommands/arguments/arg.html#arg) & Optional arguments [@OptionalArg](https://docs.rollczi.dev/documentation/litecommands/arguments/arg-optional.html#arg-optional)
- Flags - [@Flag](https://docs.rollczi.dev/documentation/litecommands/arguments/flag.html#flag)
- Joiner - _[@Join](https://docs.rollczi.dev/documentation/litecommands/arguments/join.html#join) remaining arguments into a string_
- Literal arguments - @Literal
- [@Quoted](https://docs.rollczi.dev/documentation/litecommands/arguments/quoted.html) arguments for `"quoted input!"`
- Asynchronous commands, argument parsing and completion. [@Async](https://docs.rollczi.dev/documentation/litecommands/features/asynchronous/async-annotation.html#async)
- Context providers - e.g. `@Sender Player`, `@Context World` and [more](https://docs.rollczi.dev/documentation/litecommands/getting-started/context.html)
- Command shortcuts [@Shortcut](https://docs.rollczi.dev/documentation/litecommands/features/shortcut.html#shortcut)
- Support for basic types: `int`, `double`, `Duration`, `LocalDateTime`, `Location` and [more](https://docs.rollczi.dev/documentation/litecommands/arguments/arg/java-types.html#java-types)!
- Support for collection types: `List`, `Set`, `TreeSet`, `Queue`, java array `T[]` and many others!
Expand All @@ -42,7 +45,7 @@ Annotation based command framework for Velocity, Bukkit, Paper, BungeeCord, Mine
## 📦 Platforms
- Velocity
- Bukkit, Spigot, Paper
- BungeeCord, Waterfall
- BungeeCord, Waterfall _(by [rchomczyk](https://github.com/rchomczyk))_
- Minestom _(by [Codestech1](https://github.com/Codestech1))_
- Sponge _(by [BlackBaroness](https://github.com/BlackBaroness))_
- Fabric _(by [huanmeng_qwq](https://github.com/huanmeng-qwq))_
Expand All @@ -57,7 +60,7 @@ This is an example of `/hello <name> <amount>` command:
public class HelloCommand {

@Execute
void command(@Context CommandSender sender, @Arg String name, @Arg int amount) {
void command(@Sender CommandSender sender, @Arg String name, @Arg int amount) {
for (int i = 0; i < amount; i++) {
sender.sendMessage("Hello " + name);
}
Expand Down Expand Up @@ -86,13 +89,13 @@ maven("https://repo.panda-lang.org/releases")

#### ➕ Add LiteCommands to dependencies
```kts
implementation("dev.rollczi:{artifact}:3.8.0")
implementation("dev.rollczi:{artifact}:3.9.0")
```
```xml
<dependency>
<groupId>dev.rollczi</groupId>
<artifactId>{artifact}</artifactId>
<version>3.8.0</version>
<version>3.9.0</version>
</dependency>
```
> ⚠️ Replace `{artifact}` with [platform artifact](https://docs.rollczi.dev/documentation/litecommands/platforms.html#supported-platforms)
Expand All @@ -104,7 +107,7 @@ implementation("dev.rollczi:{artifact}:3.8.0")
@@ Special thanks to all sponsors for supporting me and my projects! ❤️ @@
```

<!-- sponsors --><a href="https://github.com/P1otrulla"><img src="https://images.weserv.nl/?url=https://github.com/P1otrulla.png?v=4&mask=circle" width="60px" alt="Piotr Zych" /></a>&nbsp;&nbsp;&nbsp;<a href="https://github.com/q1zZu"><img src="https://images.weserv.nl/?url=https://github.com/q1zZu.png?v=4&mask=circle" width="60px" alt="q1zZ" /></a>&nbsp;&nbsp;&nbsp;<a href="https://github.com/Nadwey"><img src="https://images.weserv.nl/?url=https://github.com/Nadwey.png?v=4&mask=circle" width="60px" alt="Nadwey" /></a>&nbsp;&nbsp;<!-- sponsors -->
<!-- sponsors --><a href="https://github.com/P1otrulla"><img src="https://images.weserv.nl/?url=https://github.com/P1otrulla.png?v=4&mask=circle" width="60px" alt="Piotr Zych" /></a>&nbsp;&nbsp;&nbsp;<a href="https://github.com/Nadwey"><img src="https://images.weserv.nl/?url=https://github.com/Nadwey.png?v=4&mask=circle" width="60px" alt="Nadwey" /></a>&nbsp;&nbsp;<!-- sponsors -->

## 🔮 Official IntelliJ Plugin

Expand Down
6 changes: 3 additions & 3 deletions examples/bukkit-adventure-platform/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
id("xyz.jpenilla.run-paper") version "2.3.0"
}

version = "3.8.0"
version = "3.9.0"

repositories {
mavenCentral()
Expand All @@ -16,8 +16,8 @@ repositories {
dependencies {
compileOnly("org.spigotmc:spigot-api:1.20.2-R0.1-SNAPSHOT")

// implementation("dev.rollczi:litecommands-bukkit:3.8.0") // <-- uncomment in your project
// implementation("dev.rollczi:litecommands-adventure-platform:3.8.0") // <-- uncomment in your project
// implementation("dev.rollczi:litecommands-bukkit:3.9.0") // <-- uncomment in your project
// implementation("dev.rollczi:litecommands-adventure-platform:3.9.0") // <-- uncomment in your project
implementation("net.kyori:adventure-platform-bukkit:4.3.0")
implementation("net.kyori:adventure-text-minimessage:4.14.0")

Expand Down
6 changes: 3 additions & 3 deletions examples/bukkit-chatgpt/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
id("xyz.jpenilla.run-paper") version "2.3.0"
}

version = "3.8.0-SNAPSHOT"
version = "3.9.0"

repositories {
mavenCentral()
Expand All @@ -16,8 +16,8 @@ repositories {
dependencies {
compileOnly("org.spigotmc:spigot-api:1.20.2-R0.1-SNAPSHOT")

// implementation("dev.rollczi:litecommands-bukkit:3.8.0") // <-- uncomment in your project
// implementation("dev.rollczi:litecommands-chatgpt:3.8.0") // <-- uncomment in your project
// implementation("dev.rollczi:litecommands-bukkit:3.9.0") // <-- uncomment in your project
// implementation("dev.rollczi:litecommands-chatgpt:3.9.0") // <-- uncomment in your project
implementation(project(":litecommands-bukkit")) // don't use this line in your build.gradle
implementation(project(":litecommands-chatgpt")) // don't use this line in your build.gradle
}
Expand Down
4 changes: 2 additions & 2 deletions examples/bukkit/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
id("xyz.jpenilla.run-paper") version "2.3.1"
}

version = "3.8.0"
version = "3.9.0"

repositories {
mavenCentral()
Expand All @@ -16,7 +16,7 @@ repositories {
dependencies {
compileOnly("org.spigotmc:spigot-api:1.20.2-R0.1-SNAPSHOT")

// implementation("dev.rollczi:litecommands-bukkit:3.8.0") // <-- uncomment in your project
// implementation("dev.rollczi:litecommands-bukkit:3.9.0") // <-- uncomment in your project
implementation(project(":litecommands-bukkit")) // don't use this line in your build.gradle
}

Expand Down
2 changes: 1 addition & 1 deletion examples/fabric/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ dependencies {
modImplementation("net.fabricmc:fabric-loader:0.16.7")
modImplementation("net.fabricmc.fabric-api:fabric-api:0.106.0+1.21.1")

// modImplementation("dev.rollczi:litecommands-fabric:3.8.0") // <-- uncomment in your project
// modImplementation("dev.rollczi:litecommands-fabric:3.9.0") // <-- uncomment in your project
implementation(project(path = ":litecommands-fabric", configuration = "namedElements"))

}
Expand Down
2 changes: 1 addition & 1 deletion examples/fabric/src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"schemaVersion": 1,
"id": "litecommands_example",
"version": "3.8.0",
"version": "3.9.0",
"name": "LiteCommands Fabric Example",
"description": "Annotation based command framework for Fabric.",
"authors": [
Expand Down
2 changes: 1 addition & 1 deletion examples/minestom/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dependencies {
implementation("net.minestom:minestom-snapshots:4305006e6b")
implementation("net.kyori:adventure-text-minimessage:4.17.0")

// implementation("dev.rollczi:litecommands-minestom:3.8.0") // <-- uncomment in your project
// implementation("dev.rollczi:litecommands-minestom:3.9.0") // <-- uncomment in your project
implementation(project(":litecommands-minestom")) // don't use this line in your build.gradle
}

Expand Down
2 changes: 1 addition & 1 deletion examples/velocity/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ dependencies {
compileOnly("com.velocitypowered:velocity-api:3.2.0-SNAPSHOT")
annotationProcessor("com.velocitypowered:velocity-api:3.2.0-SNAPSHOT")

// implementation("dev.rollczi:litecommands-velocity:3.8.0") // <-- uncomment in your project
// implementation("dev.rollczi:litecommands-velocity:3.9.0") // <-- uncomment in your project
implementation(project(":litecommands-velocity")) // don't use this line in your build.gradle
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,12 @@
import dev.rollczi.example.velocity.handler.PermissionMessage;
import dev.rollczi.litecommands.LiteCommands;
import dev.rollczi.litecommands.argument.profile.ProfileNamespaces;
import dev.rollczi.litecommands.join.JoinProfile;
import dev.rollczi.litecommands.suggestion.SuggestionResult;
import dev.rollczi.litecommands.schematic.SchematicFormat;
import dev.rollczi.litecommands.velocity.LiteVelocityFactory;
import dev.rollczi.litecommands.velocity.tools.VelocityOnlyPlayerContextual;

@Plugin(id = "example-plugin", name = "ExamplePlugin", version = "3.8.0", authors = "Rollczi")
@Plugin(id = "example-plugin", name = "ExamplePlugin", version = "3.9.0", authors = "Rollczi")
public class ExamplePlugin {

private final ProxyServer proxyServer;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ public int lengthMultilevel() {
return this.multiSuggestion.size();
}

/**
* @since 3.9.0
*/
@ApiStatus.Experimental
public String tooltip() {
return this.tooltip;
Expand Down Expand Up @@ -115,17 +118,28 @@ public Suggestion appendLevel(String levelPart) {
return Suggestion.from(newSuggestion, this.tooltip);
}

/**
* Creates a new suggestion with the given tooltip. The List of suggestions will be joined by space.
* @since 3.9.0
*/
@ApiStatus.Experimental
@ApiStatus.Internal
public static Suggestion from(List<String> suggestion, String tooltip) {
return new Suggestion(String.join(" ", suggestion), tooltip, new ArrayList<>(suggestion));
}

/**
* Creates a new suggestion from the given list of suggestions that will be joined by space.
*/
@ApiStatus.Internal
public static Suggestion from(List<String> suggestion) {
return new Suggestion(String.join(" ", suggestion), DEFAULT_TOOLTIP, new ArrayList<>(suggestion));
}

/**
* Creates a new suggestion with the given tooltip.
* @since 3.9.0
*/
@ApiStatus.Experimental
public static Suggestion of(String suggestion, String tooltip) {
return new Suggestion(suggestion, tooltip, StringUtil.splitBySpace(suggestion));
Expand Down
2 changes: 1 addition & 1 deletion litecommands-fabric/src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"schemaVersion": 1,
"id": "litecommands",
"version": "3.8.0",
"version": "3.9.0",
"name": "LiteCommands",
"description": "Annotation based command framework for Fabric.",
"authors": [
Expand Down

0 comments on commit b949f7e

Please sign in to comment.