Skip to content
This repository has been archived by the owner on Dec 6, 2024. It is now read-only.

Commit

Permalink
Update README and version for release
Browse files Browse the repository at this point in the history
  • Loading branch information
einrobin committed Jun 4, 2020
1 parent a287cbe commit fa343eb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Maven:
<dependency>
<groupId>com.github.derrop</groupId>
<artifactId>simplecommand</artifactId>
<version>1.0-SNAPSHOT</version>
<version>1.0-RELEASE</version>
</dependency>
```

Expand All @@ -27,7 +27,7 @@ maven {
url 'https://jitpack.io'
}
compile group: 'com.github.derrop', name: 'simplecommand', version: '1.0-SNAPSHOT'
compile group: 'com.github.derrop', name: 'simplecommand', version: '1.0-RELEASE'
```
<br>

Expand All @@ -36,3 +36,9 @@ With that being done, you can now create your [DefaultCommandMap](src/main/java/
Your first command could like [this](src/test/java/com/github/derrop/simplecommand/ExampleCommand.java), register it in your [CommandMap](src/main/java/com/github/derrop/simplecommand/map/CommandMap.java) by using the `registerSubCommands` method.

When you have created your commands, you can dispatch them by using the `dispatchCommand` or `dispatchConsoleCommand` methods in your [CommandMap](src/main/java/com/github/derrop/simplecommand/map/CommandMap.java).


## Use custom messages

If you want to use your own messages, you can just call the static method CommandTranslator.useCustomMessages, this function will map the message key to a message. Every message can be found in the [DefaultMessages](src/main/java/com/github/derrop/simplecommand/defaults/DefaultMessages.java
) class.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.github.derrop</groupId>
<artifactId>simplecommand</artifactId>
<version>1.0-SNAPSHOT</version>
<version>1.0-RELEASE</version>

<build>
<plugins>
Expand Down

0 comments on commit fa343eb

Please sign in to comment.