Commando is a text converter / parser for player messages and signs.
###Examples:
Sending a message:
Make it (rain!)[c:weather rain]
If a player sends the message above it will appear to others as: Make it rain!
The text, “rain!”, is a clickable link to the command: /weather rain
.
Sign text:
Who turned out
the lights?
[c:time set day]
If the text of a sign is set this way, when right clicked, it will run the command: /time set day
.
Multi-Command signs
If a player right-clicks a sign that contains multiple commands on it, the following will appear in their console:
//////////////////////////\\\\\\\\\\\\\\\\\\\\\\\\\\
warp
weather
time
\\\\\\\\\\\\\\\\\\\\\\\\\\//////////////////////////
Each one of the commands will be clickable links.
###Extending
Commando fires an event called CommandoConvertTextEvent
, any plugin can add filters to this event to create more types of parsing tags. At the moment there is only Maven support.
Maven
Add the repo:
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
Add the dependency:
<dependency>
<groupId>com.github.mmonkey</groupId>
<artifactId>Commando</artifactId>
<version>v0.0.2-2.1</version>
</dependency>
Use Destinations plugin as an example to create your own filters and add them to the service.
###Built-in Filters:
[c:<command>]
[command:<command>]
Also, Commando will automatically look for titles for you filters automatically!
###Check it out:
teaser video
source code
download
As always I love your feedback, let me know what you think below!