You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README_en_us.md
+3-46Lines changed: 3 additions & 46 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,53 +3,10 @@
3
3
> To avoid incorrect links after merging into the main branch, all URLs should use the main branch's address. If you are accessing other branches, please make sure to manually adjust the link's target location.
4
4
5
5
# MatrixSync-MCDR
6
-
A MCDR (full name [MCDReforged](https://mcdreforged.com/)) plugin, use to sync messages between Matrix groups and online gaming in Minecraft servers.
6
+
A MCDR (full name [MCDReforged](https://mcdreforged.com/)) plugin, can sync messages between Matrix groups and online gaming in Minecraft servers.
7
7
8
8
About [Matrix](https://matrix.org/): an open decentralized network communication protocol for chat software.
9
9
10
-
The following project is used in the development process: [matrix-nio](https://pypi.org/project/matrix-nio/)。
10
+
The following project is used in the development process: [matrix-nio](https://pypi.org/project/matrix-nio/).
11
11
12
-
Thanks for ChatGPT and Google Translate's help to translate the content from Chinese, if anything wrong, please issue to feedback or PR to `/lang`.
13
-
14
-
## Usage
15
-
Download the latest version from the release, install the necessary Python dependencies in the MCDReforged startup environment, and then throw it into the plugins folder.
16
-
17
-
Before using this plugin, you must know what [Matrix](https://matrix.org/) is, then prepare an account as a matrix bot for message synchronization, and carefully read the following content to configure the plugin.
18
-
19
-
After configuration and enabling the plugin, if the test message is successfully sent to the matrix group, it means that message synchronization has started to work.
20
-
21
-
If there is any issue with message forwarding in any direction during the message synchronization process, please check the configuration according to the following content to ensure it is correct.
22
-
23
-
### Configuration File
24
-
#### config.json
25
-
26
-
| Configuration Item | Content |
27
-
| - | - |
28
-
|**homeserver**| The homeserver address used to log in to the bot account |
29
-
|**user_id**| The bot account ID, formatted as @username:example.com |
30
-
|**password**| The password of the bot account, generally only used for the initial login |
31
-
|**room_id**| The ID of the room to sync game messages |
32
-
|**device_id**| The device name used for login, generally no need to modify, can be customized |
33
-
34
-
Multi-config is not supported, will add API support for developers from v3.
35
-
#### settings.json
36
-
37
-
| Configuration Item | Content |
38
-
| - | - |
39
-
| plugin-enabled | Whether the plugin is enabled, please ensure the configuration file and necessary settings are modified correctly before enabling |
40
-
| allow_all_rooms_msg | Whether to allow messages from all rooms, if enabled, messages from rooms joined by the bot account will be forwarded to the game, with the room display name specified, otherwise only messages from the configured room will be forwarded |
41
-
| sync_old_msg | Whether to sync old messages, enabled on default, disable to see old messages when plugin is just loaded |
42
-
43
-
## Interface (API)
44
-
See the docs in [中文文档](https://github.com/Mooling0602/MatrixSync-MCDR/blob/docs.md) at present.
45
-
46
-
## Hot Reload (reload) & message sync control
47
-
It is advisable not to use hot reload in a stable environment.
48
-
49
-
Execute `!!msync` to see the usage.
50
-
51
-
## Note
52
-
### First-time Use
53
-
When loading the plugin for the first time, the plugin will automatically initialize the configuration and then unload itself. You need to correctly modify the default configuration file and enable the plugin_enabled option in settings.json to activate the plugin. Then, restart the server or reload the plugin for proper use. If you choose the latter, after reloading the plugin, if the server has finished starting, you can use !!msync start to start the room message receiver, enabling Matrix message forwarding to the game. Furthermore, as long as the plugin is successfully loaded without issues, in-game messages will always be automatically forwarded to the Matrix room. This will be synchronized with the room message receiver in versions above 2.4.0.
54
-
55
-
- The plugin does not support encrypted messages (EE2E). If needed, you can modify the plugin for secondary development, and PRs are welcome.
12
+
README v2.5.0+ need new translations, but not prepared yet, you can use translation tools to read "中文" README at present. I would be grateful if you could help translation by commit PRs.
send_command: Message you typed has sent to matrix.
4
-
init_tips:
5
-
config_path: Config path
6
-
need_edit_config: Please edit the default config.json to the correct configuration information, and then restart the plugin after enabling the plugin_enabled item in settings.json!
0 commit comments