ChatManagePlugin(v2)
中文
插件概述
本插件由 1510ty 制作,可将罗马字聊天文本转换为平假名,并实现多个服务器之间的聊天同步。
跨服务器的聊天同步功能需要单独配置 Redis 服务器。
如果您不需要跨服务器同步功能,请参阅下方的配置文件说明。
新增功能
・将罗马字转换为平假名
・跨服务器聊天同步
这两个功能均可在配置文件中启用或禁用。
测试环境
Folia 26.1.2 8
安装说明
- 请提前设置好 Redis 服务器(如果不使用跨服务器聊天同步功能,则无需此步骤)
- 下载插件文件 (.jar)
- 将下载的插件文件复制移动到服务器的 “plugins” 文件夹中
- (重新)启动 Folia 服务器
- 完成!
关于配置文件
当您 (重新)启动服务器时,“plugins” 文件夹中会生成一个 “ChatManagePluginv2” 文件夹。
在 ChatManagePluginv2 文件夹内,有一个 “config.yml” 文件。
打开 config.yml 文件。
默认内容如下:
romazitohiragana:
enable: true
redis:
enable: true
host: localhost
port: 6379
channel: chat_relay
默认情况下,
・将罗马字母转换为平假名的功能已启用
・Redis 已启用
・Redis 服务器主机为 localhost
・Redis 服务器端口为 6379
・频道为 chat_relay
。
例如,如果您想禁用将罗马字母转换为平假名的功能(在非日语环境中通常应禁用此项;由于作者是日本人且该插件用于日语服务器,因此默认启用该转换功能),
romazitohiragana:
enable: false //Changed
redis:
enable: true
host: localhost
port: 6379
channel: chat_relay
此外,如果您想将 Redis 服务器的 IP 地址更改为 “192.168.1.50”,并将端口更改为 7000,
romazitohiragana:
enable: true
redis:
enable: true
host: 192.168.1.50 //Changed
port: 7000 //Changed
channel: chat_relay
另外,如果您不需要使用 Redis 进行跨服务器聊天同步功能,
romazitohiragana:
enable: true
redis:
enable: false //Changed
host: localhost
port: 6379
channel: chat_relay
在这种情况下,
host: localhost
port: 6379
channel: chat_relay
这部分将被忽略。
其他
源代码已在 GitHub 上公开。
开发环境:IntelliJ Idea
日本語
このプラグインの概要
1510tyが作った、ローマ字のチャットをひらがなに変換したり、複数のサーバー間でチャットを同期したりするプラグインです。
複数サーバー間でのチャット同期機能には、Redisサーバーが別途必要です。
複数サーバー間での同期機能が不要な場合は、下のconfigについての説明を見てください。
何が追加されるか
・ローマ字のひらがなへの変換
・複数サーバー間でのチャット同期
テスト環境
Folia 26.1.2 8
インストール方法
- Redisサーバーを事前に準備しておいてください(サーバー間チャット同期機能を使用しない場合は不要)
- プラグイン ファイル (.jar) をダウンロード
- ダウンロードしたプラグインファイルをサーバーの「plugins」フォルダーにコピーまたは移動
- Foliaサーバーを(再)起動
- 完了!
configについて
サーバーを(再)起動すると、「plugins」フォルダーに「ChatManagePluginv2」フォルダーが生成されます。
ChatManagePluginv2フォルダー内に、"config.yml"ファイルがあります。
config.ymlファイルを開きます。
初期状態では、内容は次のようになっています。
romazitohiragana:
enable: true
redis:
enable: true
host: localhost
port: 6379
channel: chat_relay
デフォルトで、
・ローマ字をひらがなに変換する機能は有効
・Redisの使用は有効
・Redisサーバーのホストはlocalhost
・Reidsサーバーのポートは6379
・チャンネルはchat_relay
となっています。
例えば、ローマ字をひらがなに変換する機能を無効にする場合(日本語の環境以外では基本的に無効にするべきです。自分は日本人で、さらに日本のサーバーで使われているプラグインなので、デフォルトでローマ字をひらがなに変換する機能は有効となっています)は、
romazitohiragana:
enable: false //Changed
redis:
enable: true
host: localhost
port: 6379
channel: chat_relay
のようにします。
また、RedisサーバーのIPを「192.168.1.50」、ポートを7000に変更したい場合は、
romazitohiragana:
enable: true
redis:
enable: true
host: 192.168.1.50 //Changed
port: 7000 //Changed
channel: chat_relay
のように変更します。
また、Redisをつかった複数サーバー間でのチャット同期機能が不要な場合は、
romazitohiragana:
enable: true
redis:
enable: false //Changed
host: localhost
port: 6379
channel: chat_relay
のように変更します。この場合、
host: localhost
port: 6379
channel: chat_relay
の部分は無視されます。
みたいな感じです。
その他
ソースコードはGithubで公開してあります。
開発環境: IntelliJ Idea
ChatManagePlugin(v2)
English
Overview of This Plugin
This plugin, created by 1510ty, converts Romanized chat text to Hiragana and synchronizes chat across multiple servers.
The chat synchronization feature across multiple servers requires a separate Redis server.
If you do not need the synchronization feature across multiple servers, please refer to the explanation of the config below.
What Will Be Added?
・Converting Romanized text to Hiragana
・Chat synchronization across multiple servers
Both features can be enabled or disabled in the config.
Test Environment
Folia 26.1.2 8
Installation Instructions
- Please set up a Redis server in advance (not required if you are not using the cross-server chat synchronization feature)
- Download the plugin file (.jar)
- Copy or move the downloaded plugin file to the server’s “plugins” folder
- (Re)start the Folia server
- Done!
About config
When you (re)start the server, a “ChatManagePluginv2” folder will be created in the “plugins” folder.
Inside the ChatManagePluginv2 folder, there is a “config.yml” file.
Open the config.yml file.
By default, the content is as follows:
romazitohiragana:
enable: true
redis:
enable: true
host: localhost
port: 6379
channel: chat_relay
By default,
・The feature that converts Roman letters to hiragana is enabled
・Redis is enabled
・The Redis server host is localhost
・The Redis server port is 6379
・The channel is chat_relay
.
For example, if you want to disable the feature that converts Roman letters to hiragana (you should generally disable this outside of a Japanese environment; since I am Japanese and this is a plugin used on a Japanese server, the feature that converts Roman letters to hiragana is enabled by default),
romazitohiragana:
enable: false //Changed
redis:
enable: true
host: localhost
port: 6379
channel: chat_relay
Also, if you want to change the Redis server's IP address to “192.168.1.50” and the port to 7000,
romazitohiragana:
enable: true
redis:
enable: true
host: 192.168.1.50 //Changed
port: 7000 //Changed
channel: chat_relay
Also, if you don't need the chat synchronization feature across multiple servers using Redis,
romazitohiragana:
enable: true
redis:
enable: false //Changed
host: localhost
port: 6379
channel: chat_relay
In this case,
host: localhost
port: 6379
channel: chat_relay
This section will be ignored.
Other
The source code is available on GitHub.
Development environment: IntelliJ Idea
日本語
このプラグインの概要
1510tyが作った、ローマ字のチャットをひらがなに変換したり、複数のサーバー間でチャットを同期したりするプラグインです。
複数サーバー間でのチャット同期機能には、Redisサーバーが別途必要です。
複数サーバー間での同期機能が不要な場合は、下のconfigについての説明を見てください。
何が追加されるか
・ローマ字のひらがなへの変換
・複数サーバー間でのチャット同期
テスト環境
Folia 26.1.2 8
インストール方法
- Redisサーバーを事前に準備しておいてください(サーバー間チャット同期機能を使用しない場合は不要)
- プラグイン ファイル (.jar) をダウンロード
- ダウンロードしたプラグインファイルをサーバーの「plugins」フォルダーにコピーまたは移動
- Foliaサーバーを(再)起動
- 完了!
configについて
サーバーを(再)起動すると、「plugins」フォルダーに「ChatManagePluginv2」フォルダーが生成されます。
ChatManagePluginv2フォルダー内に、"config.yml"ファイルがあります。
config.ymlファイルを開きます。
初期状態では、内容は次のようになっています。
romazitohiragana:
enable: true
redis:
enable: true
host: localhost
port: 6379
channel: chat_relay
デフォルトで、
・ローマ字をひらがなに変換する機能は有効
・Redisの使用は有効
・Redisサーバーのホストはlocalhost
・Reidsサーバーのポートは6379
・チャンネルはchat_relay
となっています。
例えば、ローマ字をひらがなに変換する機能を無効にする場合(日本語の環境以外では基本的に無効にするべきです。自分は日本人で、さらに日本のサーバーで使われているプラグインなので、デフォルトでローマ字をひらがなに変換する機能は有効となっています)は、
romazitohiragana:
enable: false //Changed
redis:
enable: true
host: localhost
port: 6379
channel: chat_relay
のようにします。
また、RedisサーバーのIPを「192.168.1.50」、ポートを7000に変更したい場合は、
romazitohiragana:
enable: true
redis:
enable: true
host: 192.168.1.50 //Changed
port: 7000 //Changed
channel: chat_relay
のように変更します。
また、Redisをつかった複数サーバー間でのチャット同期機能が不要な場合は、
romazitohiragana:
enable: true
redis:
enable: false //Changed
host: localhost
port: 6379
channel: chat_relay
のように変更します。この場合、
host: localhost
port: 6379
channel: chat_relay
の部分は無視されます。
みたいな感じです。
その他
ソースコードはGithubで公開してあります。
開発環境: IntelliJ Idea
评论 0
登录后参与评分
还没有评论,来抢沙发吧