Code Monkey home page Code Monkey logo

chatbridge-fabric's Introduction

Caution

本项目已经过时,不再进行任何更新与维护工作。请转移至最新的ChatBridge 2项目,使用Kotlin重构,兼容Fabric与Bukkit双端,新项目传送门

ChatBridge-Fabric

适用于Minecraft Fabric端的一个兼容SLS-Bot的跨服聊天Mod,通过Websocket与SLS-Bot主插件通讯,以MIT协议开源

配置文件

{
  "host": "127.0.0.1",  // SLS-Bot监听的地址,可在SLS-Bot的配置文件中设置
  "port": 16123,  // SLS-Bot监听的端口,可在SLS-Bot的配置文件中设置
  "serverName": "unknown-server"  // 服务器名,会显示给其他服务器
}

给开发者的一些说明

事实上,你可以无需安装SLS-Bot而同样实现跨服聊天功能,只需要部署一个Websocket服务器,将收到的包直接转发给其他客户端即可。当然,若您有将客户端部署到其他地方的需求,您可以依照以下包规范实现API

所有跨服聊天的包均为一个纯JSON文本,其格式如下:

{
  "type": "chatBridge",
  "args": {
    "identity": "server-name",  // 服务器名称
    "sender": "player-name",  // 消息发送人名称
    "text": "message"  // 消息本体内容
  }
}

chatbridge-fabric's People

Contributors

disymayufei avatar

Stargazers

 avatar  avatar

Watchers

 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.