Code Monkey home page Code Monkey logo

ircbase's Introduction

IRC Base

IRCBase 是一个基于Java和SmartSocket的我的世界Mod IRC框架,项目包括客户端(client)、服务器(server)和通用(common)三个部分,支持多种消息类型和自定义包处理。

TODO

  • 实现指令系统
  • 实现权限系统

特性

  • 支持同步游戏中用户名(你可以在游戏中看到其他用户)
  • 使用SmartSocket进行通信
  • 支持List, Map, Set等合集序列化发送

构建

  • clone本项目
  • 导入IntelliJ IDEA,打开Maven菜单,点击IRCBase(root) -> Lifecycle -> package
  • 复制client/target/client-1.0-SNAPSHOT.jar到你的客户端依赖
  • 在你的客户端中初始化IRC

使用(客户端)

初始化IRCTransport(参数为你的服务器ip,端口,事件处理器)

你可以查看IRCTest.java,包含基本用例

一些其他示例:

判断是否为客户端用户

ircTransport.isUser(entity.getName())

获取客户端用户名

ircTransport.getName(entity.getName())

使用(服务端)

你可以在IRCServer.java 源代码中修改端口(默认为8888

构建之后查看server/target/server-1.0-SNAPSHOT.jar,使用命令java -jar server-1.0-SNAPSHOT.jar在你的服务器上启动服务端即可

ircbase's People

Contributors

cubk1 avatar

Stargazers

c9 avatar  avatar iIlIIIiiiiIlIiIl 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.