Skip to content

Commit

Permalink
Added new features for the new version and fixed some bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
Mqzn committed Apr 18, 2023
1 parent 7f33974 commit 2bdc3b4
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
7 changes: 7 additions & 0 deletions README.MD
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# mCommands

An advanced general purpose command dispatching framework
designed using OOP concepts.

Expand All @@ -23,24 +24,30 @@ dependencies {
## Platforms

### Spigot

The spigot platform is for minecraft spigot api development

```gradle
implementation 'io.github.mqzn:mCommands-spigot:1.0.0'
```

### Annotations

This platform allows you to use annotations to declare and register your commands

```gradle
implementation 'io.github.mqzn:mCommands-annotations:1.0.0'
```

### Bungee

This bungeecord platform is for minecraft bungeecord proxy api development, allows you
to declare and register bungeecord commands.

```gradle
implementation 'io.github.mqzn:mCommands-bungee:1.0.0'
```

## Wiki

Wiki for mCommands is available [here](https://github.com/Mqzn/mCommands/wiki)
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public final class ArgumentTypeRegistry {
argumentCreatorMapper.put(Boolean.class, Argument::Boolean);
argumentCreatorMapper.put(boolean.class, Argument::Boolean);

argumentCreatorMapper.put(String[].class, (data)-> Argument.Array(data.getId()));
argumentCreatorMapper.put(String[].class, (data) -> Argument.Array(data.getId()));

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ public static final class Builder {
}



public @NotNull FlagInfo build() {
return new FlagInfo(name, information, aliases);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,9 @@ public interface CommandHelpProvider {
/**
* The line style of the help topic
*
* @see Style
*
* @return how the line is displayed in the help topic
* e.g: "[style]========== Help Menu [style]============
*
* @see Style
*/
@NotNull Style lineStyle();

Expand All @@ -30,9 +28,8 @@ public interface CommandHelpProvider {
* The style of the syntax of a command
*
* @param syntax the syntax of a command
*
* @param <S> the sender type param
* @return The style of the syntax of a command
* @param <S> the sender type param
*/
@NotNull <S> Style syntaxStyle(@NotNull CommandSyntax<S> syntax);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,9 @@ public final class TestCommandHelpProvider implements CommandHelpProvider {
/**
* The line style of the help topic
*
* @see Style
*
* @return how the line is displayed in the help topic
* e.g: "[style]========== Help Menu [style]============
*
* @see Style
*/
@Override
public @NotNull Style lineStyle() {
Expand All @@ -41,9 +39,8 @@ public final class TestCommandHelpProvider implements CommandHelpProvider {
* The style of the syntax of a command
*
* @param syntax the syntax of a command
*
* @param <S> the sender type param
* @return The style of the syntax of a command
* @param <S> the sender type param
*/
@Override
public @NotNull <S> Style syntaxStyle(@NotNull CommandSyntax<S> syntax) {
Expand Down

0 comments on commit 2bdc3b4

Please sign in to comment.