mirror of
https://github.com/jie65535/gc-openchat-plugin.git
synced 2025-12-15 18:31:33 +08:00
1.5 KiB
1.5 KiB
gc-openchat-plugin
中文 | English
Chat with players in the server
Talking to the server account in the game is equivalent to sending to the world channel, and all players in the server can receive the message.
TODO List
- Chat between players
- Chat management commands
- Speaking Frequency Limit
- Chat Moderation
- Chat api (
OneBot api) - ...
Install
- Download the
jarin Release. - Put it in the
pluginsfolder.
Commands
Player command:
/chat onAccept chat messages (default)/chat offblock chat messages
Server command (requires server.chat.others permissions) :
/serverchat onEnable server chat (default) (do not save)/serverchat offDisable server chat (without saving)/serverchat ban|mute @uid [time(Minutes)]Mute the specified player for the specified time (minutes) (optional)/serverchat unban|unmute @uidUnmute a specified player
/serverchat can be aliased as /sc
Config
{
serverChatEnabled: true,
serverChatFormat: "<color=#99CC99>{nickName}({uid})</color>: {message}",
// The limit on the number of speaking messages per minute
messageFreLimitPerMinute: 20,
// Whether to send a message when a player joins
sendJoinMessage: true,
// The content of the message sent when the player joins
// Can be used to prompt the player how to switch the chat function
joinMessage: "本服已启用聊天,/chat on 开启(默认),/chat off 屏蔽"
}