Velocity cross servers chat plugin.
2022-12-16.19-56-27.mp4
Command prefix: /chathub
.
Example: /chathub list
.
Show player list for all servers.
Example:/chathub msg Steven hi
Send private message to a player, even you are not in a same server.
Example:/chathub reloadKook
Reload Kook connection, only can execute in console.
Servers' name, key should corresponding to Velocity's server names. Note that discord
, kook
, and qq
are special names, not MC server.
Minecraft config.
Default: false
Complete takeover mode, when enabled, the server which the sender player in will display formatted message.Please note that when this function enabled, mc server will not receive chat messages, but commands can still use. For example, when you using bukkit QuickShop or MCDReforged, you have to disable it.
MC format messages, placeholders are defined as following:
Placeholder | Meaning | Extended |
---|---|---|
server | Server name | serverFrom, serverTo |
plainServer | Server name with no color code | plainServerFrom, plainServerTo |
name | Player name | sender, target |
message | Message | |
count | Player count | |
playerList | Player list |
Default: §7[{server}§7]§e{name}§r: {message}
Chat.
Default: §8[§a+§8] §7[{server}§7] §e{name}
Message when player joined the server.
Default: §8[§c-§8] §e{name}
Message when player left the server.
Default: §8[§b❖§8] §e{name}§r: §7«{serverFrom}§7» §6➟ §7«{serverTo}§7»
Message when player switched server.
Default: §7§o你悄悄地对{target}说: {message}
Message for msg
command displayed to sender.
Default: §7§o{sender}悄悄地对你说: {message}
Message for msg
command displayed to target.
Default: §8§l» §7[{server}§7] 当前共有§6{count}§7名玩家在线: §e{playerList}
Message for list
command.
Default: 当前没有玩家在线
Message for list
command when player list is empty.
This function is double way forwarding, which is Minecraft chat will send to Discord channel, and channel message will send to Minecraft. Use /list
command can show online player list.
Discord bot requires the following permissions:
- Read Messages/View Channels
- Send Messages
- Use Slash Commands
Default: false
Enable Discord forwarding.
Discord bot token.
Channel ID.
Discord message format sages. Placeholders are defined same as Miencraft, all server name will auto translate to plain format, you do not have to use plain placeholders.
Default: [{server}] <{name}>: {message}
Chat.
Default: [+] [{server}] {name}
Message when player joined the server.
Default: [-] {name}
Message when player left the server.
Default: <{name}>: [{serverFrom}] ➟ [{serverTo}]
Message when player switched server.
Default: - [{server}] 当前共有{count}名玩家在线: {playerList}
Message for /list
command.
Default: 当前没有玩家在线
Message for /list
command when player list is empty.
This function is double way forwarding, which is Minecraft chat will send to Kook channel, and channel message will send to Minecraft. Use /list
in Kook channel can show online player list.
Default: false
Enable Kook forwarding.
Kook bot token.
Channel ID.
Daemon thread configuration for kook bot, to make sure bot is online by requeseting Kook API intervally.
Default: false
Enable Kook daemon thread.
Default: 60
Interval for Kook daemon thread to request Kook API, in seconds.
Default: 3
Maximum retry times, if failure count exceeds this value, try to restart the bot.
Kook message format sages. Placeholders are defined same as Miencraft, all server name will auto translate to plain format, you do not have to use plain placeholders.
Default: [{server}] <{name}>: {message}
Chat.
Default: [+] [{server}] {name}
Message when player joined the server.
Default: [-] {name}
Message when player left the server.
Default: <{name}>: [{serverFrom}] ➟ [{serverTo}]
Message when player switched server.
Default: - [{server}] 当前共有{count}名玩家在线: {playerList}
Message for /list
command.
Default: 当前没有玩家在线
Message for /list
command when player list is empty.
The messages from the group will be synchronized to ChatHub and chatHub will forward all public messages to the group.
Note that only reverse WebSocket is supported, and message format only supports array.
Default: false
Enable QQ forwaring.
Group ID.
Default: 0.0.0.0
OneBot server’s reverse webSocket host
Default: 9001
OneBot server’s reverse webSocket port
Default: /ws/
Websocket resource location.
Here is a demo for one bot ws reverse path configuration:
ws://127.0.0.1:9001/ws/
QQ message format sages. Placeholders are defined same as Miencraft, all server name will auto translate to plain format, you do not have to use plain placeholders.
Default: [{server}] <{name}>: {message}
Chat.
Default: [+] [{server}] {name}
Message when player joined the server.
Default: [-] {name}
Message when player left the server.
Default: <{name}>: [{serverFrom}] ➟ [{serverTo}]
Message when player switched server.
Default: - [{server}] 当前共有{count}名玩家在线: {playerList}
Message for /list
command.
Default: 当前没有玩家在线
Message for /list
command when player list is empty.