MatterLink/README.md

99 lines
2.6 KiB
Markdown
Raw Normal View History

# MatterLink
2018-01-24 14:40:38 +00:00
2018-02-15 22:56:54 +00:00
A MatterBridge endpoint for MC servers!
2018-02-15 22:56:54 +00:00
THIS MOD REQUIRES YOU TO ALSO RUN A MATTERBRIDGE RELAY
https://github.com/42wim/matterbridge
2018-02-21 21:34:11 +00:00
Chat with us on IRC: [#matterbridge @ irc.esper.net](irc://irc.esper.net/matterbridge)
Requires the matterbridge config api section to be setup along these lines:
```
[api]
[api.local]
2018-02-12 16:41:07 +00:00
BindAddress="0.0.0.0:4242" # or listen only to localhost: 127.0.0.1:4242
#OPTIONAL (no authorization if token is empty)
2018-02-12 16:41:07 +00:00
Token="mytoken"
Buffer=1000
RemoteNickFormat="{NICK}"
ShowJoinPart = true
```
2018-02-15 22:56:54 +00:00
## Features
2018-02-21 21:34:11 +00:00
* Custom bridge commands, including passthrough to MC!
Default commands: `help, tps, list, seed, uptime`
Commands are specified in JSON format as follows:
Passthrough command (executes the configured command as if from the MC server console)
```json
{
"alias": "tps",
"type": "PASSTHROUGH",
"execute": "forge tps",
"permLevel": 0,
"help": "Print server tps",
"allowArgs": false
}
```
Response command
```json
{
"alias": "uptime",
"type": "RESPONSE",
"response": "{uptime}",
"permLevel": 1,
"help": "Print server uptime",
"allowArgs": false
}
2018-02-15 22:56:54 +00:00
```
2018-02-21 21:34:11 +00:00
* Command permissions!
Higher numbers mean more permissions. Configured on a network-by-network basis.
For IRC, this is your hostmask.
For Discord, this is your userid (NOT the four-digit number.)
```json
{
"irc.esper": {
"~DaMachina@hostname.com":1000
}
}
2018-02-15 22:56:54 +00:00
```
2018-02-15 23:00:56 +00:00
* Edit and reload the config file without restarting the server!
2018-02-15 22:56:54 +00:00
```
/config <connect|disconnect|reload>
2018-02-21 21:34:11 +00:00
connect: Connects the MC chat to the MatterBridge server
disconnect: Disconnects the chat from the MatterBridge server
reload: Disconnects, reloads the config and custom command files,
then reconnects.
2018-02-15 22:56:54 +00:00
```
## Downloads
2018-02-12 16:41:07 +00:00
https://github.com/elytra/MatterLink/releases
2018-02-15 22:56:54 +00:00
https://ci.elytradev.com/job/elytra/job/MatterLink/job/master/lastSuccessfulBuild/ - may be unstable
2018-02-12 16:41:07 +00:00
2018-02-21 21:34:11 +00:00
https://minecraft.curseforge.com/projects/matterlink
2018-02-12 16:41:07 +00:00
## Dependencies
- forgelin: https://minecraft.curseforge.com/projects/shadowfacts-forgelin
## Setup
2018-02-21 21:34:11 +00:00
Now you just need to run MatterBridge on the server, the default configuration works with the provided sample.
2018-02-12 16:41:07 +00:00
2018-02-15 22:56:54 +00:00
Install matterbridge and try out the basic sample:
2018-02-12 16:41:07 +00:00
```
go get github.com/42wim/matterbridge
2018-02-21 21:34:11 +00:00
mv matterbridge-sample.toml matterbridge.toml
2018-02-12 16:41:07 +00:00
matterbridge
```
2018-02-21 21:34:11 +00:00
now start the server with matterlink (and forgelin )in the mods folder
2018-02-12 16:41:07 +00:00
2018-02-21 21:34:11 +00:00
and then [RTFM!!!](https://github.com/42wim/matterbridge#configuration) and configure all your needed gateways, endpoints etc
powered by wishful thinking