GithubHelp home page GithubHelp logo

chathub's Introduction

Chat Bridge

Bungeecord 跨服聊天插件

在 Bungeecord 服务器中跨服聊天

screenshot1

功能

  • 纯 Bungeecord 插件,各子服聊天互通
  • 可配置消息事件格式、服务器名、直达服务器格式
  • 多服或多 BC 间互通消息、私聊
  • 彩色聊天
  • QQ互通
  • 敏感词屏蔽

指令

游戏内指令

指令 功能
/chat list 查看所有服务器的玩家列表
/chat msg 向玩家发送私聊消息
/chat qq 向 QQ 发送消息

QQ 指令

指令 功能
/mc 向游戏内发送消息

配置文件

配置文件为 plugins/ChatBridge/config.yml

message

消息格式

默认值:

join: '§8[§a+§8] §e{player}'
leave: '§8[§c-§8] §e{player}'
switch: '§8[§b❖§8] §e{player}§r: §7«{serverFrom}§7» §6➟ §7«{serverTo}§7»'
chat: '§7[{serverOn}§7]§e{player}§r: {message}'
msg_sender: '§7§o你悄悄地对{target}说: {message}'
msg_target: '§7§o{sender}悄悄地对你说: {message}'
block_word: '§8§l» §c你的消息 "{message}" 被禁止发送, 因为包含敏感词 "{blockWord}"'
list: '§8§l» §7[{serverOn}§7]当前共有§6{playerCount}§7名玩家在线: §e{playerList}'

server_name

服务器 ID 和服务器名对照表

默认值:

qq: '§5§l群聊天'

port

接收广播和QQ上报的服务器端口

默认值:51800

broadcast

多 BC 间广播消息配置

token

秘钥

默认值:token

cancel_timeout

取消消息事件时间限制

默认值:50

servers

广播的目标服务器

默认值:

- 'host:port'

ignore_rules

忽略处理的聊天消息格式

默认值:

  - '!!.*'

block_words

敏感词列表

默认值:

  - 'Hello'

qq

QQ 互通设置

enable

是否启用

默认值:false

path

接收上报消息 URL 路径

默认值:/qq

api_url

QQ 机器人 API URL

默认值:http://localhost:5700

message

是否互相转发消息

默认值:false

group_id

允许的群列表

默认值:

  - 123123123

提示

  • 在 Bukkit 中加载此插件,使 Bukkit 插件可以接收消息事件

开发

你可以接收广播消息来处理一些自定义操作,广播消息的格式和路径请自行翻代码

chathub's People

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.