A Grasscutter plugin that allows players to chat within the server.
Go to file
2023-01-11 23:44:17 +08:00
.idea Initial commit 2023-01-11 22:19:26 +08:00
gradle/wrapper Initial commit 2023-01-11 22:19:26 +08:00
src/main Fix data.json decode issue 2023-01-11 23:44:17 +08:00
.gitignore Initial commit 2023-01-11 22:21:05 +08:00
build.gradle Fix data.json decode issue 2023-01-11 23:44:17 +08:00
gradlew Initial commit 2023-01-11 22:19:26 +08:00
gradlew.bat Initial commit 2023-01-11 22:19:26 +08:00
LICENSE Initial commit 2023-01-11 22:19:26 +08:00
README-en-US.md Initial commit 2023-01-11 22:21:05 +08:00
README.md Initial commit 2023-01-11 22:21:05 +08:00
settings.gradle Initial commit 2023-01-11 22:19:26 +08:00

gc-openchat-plugin

中文 | English

让玩家在服务器内聊天

在游戏内与服务器账号对话,相当于发送到世界频道,服务器内所有玩家均可收到消息。

TODO List

  • 玩家间聊天
  • 聊天管理命令
  • 发言间隔限制
  • 聊天内容审查
  • 控制台发言(运维用)
  • 聊天api (OneBot api)
  • ...

安装

  1. 在 Release 下载jar
  2. 放入 plugins 文件夹即可

命令

玩家用:

  • /chat on 接受聊天消息(默认)
  • /chat off 屏蔽聊天消息

管理用(需要 server.chat.others 权限):

  • /serverchat on 启用服务器聊天(默认)(不保存)
  • /serverchat off 关闭服务器聊天(不保存)
  • /serverchat ban @uid [time(Minutes)] 禁言指定玩家指定时间(分钟)(可选)
  • /serverchat unban @uid 解除指定玩家禁言

/serverchat 可用别名 /sc

配置

{
  // 服务器聊天开关
  serverChatEnabled: true,
  
  // 服务器聊天消息格式
  // {nickName}   为玩家昵称
  // {uid}        为玩家UID
  // {message}    为消息内容
  serverChatFormat: "<color=#99CC99>{nickName}({uid})</color>: {message}",
  
  // 每分钟发言消息数限制
  messageFreLimitPerMinute: 20,
  
  // 是否在玩家加入时发送消息
  sendJoinMessage: true,
  
  // 玩家加入时发送消息
  joinMessage: "本服已启用聊天,/chat on 开启(默认),/chat off 屏蔽"
}