From 8afd38a745360e871c9a6e89da11fbf83ea31212 Mon Sep 17 00:00:00 2001 From: Ali Date: Tue, 24 Sep 2024 21:09:37 +0300 Subject: [PATCH 1/3] Update README.md --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7d9691f0..58053248 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,8 @@ -# Lamp +

+ +

+# Lamp [![Discord](https://discord.com/api/guilds/939962855476846614/widget.png)](https://discord.gg/pEGGF785zp) [![Maven Central](https://img.shields.io/maven-metadata/v/https/repo1.maven.org/maven2/io/github/revxrsal/lamp.common/maven-metadata.xml.svg?label=maven%20central&colorB=brightgreen)](https://search.maven.org/artifact/io.github.revxrsal/lamp.common) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) From f51b630036843b8a93ce976fdf2f5e06b771c142 Mon Sep 17 00:00:00 2001 From: Ali Date: Tue, 24 Sep 2024 21:13:24 +0300 Subject: [PATCH 2/3] Update README.md --- README.md | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/README.md b/README.md index 58053248..48df6f5f 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,5 @@ -

- -

+

Lamp

-# Lamp [![Discord](https://discord.com/api/guilds/939962855476846614/widget.png)](https://discord.gg/pEGGF785zp) [![Maven Central](https://img.shields.io/maven-metadata/v/https/repo1.maven.org/maven2/io/github/revxrsal/lamp.common/maven-metadata.xml.svg?label=maven%20central&colorB=brightgreen)](https://search.maven.org/artifact/io.github.revxrsal/lamp.common) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) From a0d0f6ebfe989f0c74be7057ec665227e7d364c7 Mon Sep 17 00:00:00 2001 From: Ali Date: Tue, 24 Sep 2024 22:42:42 +0300 Subject: [PATCH 3/3] Update README.md --- README.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 48df6f5f..49681ad9 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -

Lamp

+# Lamp [![Discord](https://discord.com/api/guilds/939962855476846614/widget.png)](https://discord.gg/pEGGF785zp) [![Maven Central](https://img.shields.io/maven-metadata/v/https/repo1.maven.org/maven2/io/github/revxrsal/lamp.common/maven-metadata.xml.svg?label=maven%20central&colorB=brightgreen)](https://search.maven.org/artifact/io.github.revxrsal/lamp.common) @@ -15,8 +15,7 @@ robust solution with a clean, idiomatic API. ## Core Features - **Multi-Platform Support**: Easily integrate with various platforms including Bukkit, BungeeCord, Sponge, Velocity, - JDA, - and more. + JDA, Minestom, and more. - **Command Management**: - Define commands using simple annotations and manage them effortlessly. - Use spaces to define subcommands easily @@ -24,11 +23,16 @@ robust solution with a clean, idiomatic API. - Define parameters that come in the middle of the command - **Advanced Parameter Handling**: Support for context-based parameters, custom parameter types, and multiple parameter variants. +- **Optional parameters**: Define optional parameters and default values easily with `@Optional` and `@Default` +- **Flags and switches**: + - Define Unix-style switches (`--switch` and `-s`) and flags (`--value ` or `-v `) + - Use shorthand-syntax `-s -p -r` as `-spr` - **Response Handling**: Configure how command responses are processed with flexible `ResponseHandlers`. - **Dependency Injection**: Inject dependencies directly into command classes using a simple builder pattern. - **Context Resolving**: Use context resolvers to handle complex command input scenarios. -- **Command Permissions**: Apply granular permissions with `@CommandPermission` annotations. +- **Command Permissions**: Use built-in platform permissions, or define your own permission implementation with custom annotations. - **Modular Design with Visitors**: Extend Lamp’s functionality through modular visitors for dynamic feature additions. +- **Custom annotation support**: Lamp allows you to create custom annotations and customize their behaviors. - **Fool-proof**: Lamp has been designed to reduce user error as much as possible. It uses idiomatic APIs, immutability, and builders, to ensure you never run into bugs. Combined with extensive compiler annotations that will help you catch any problems at compile-time