LCon - Local Console Access 图标

LCon - Local Console Access

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 1.19.2-1.0.4-backport
本资源为搬运资源,原资源地址: https://modrinth.com/mod/lcon-local-console-access
资源信息

Minecraft 版本: 1.19.2

平台: forge

标签: game-mechanics management utility

资源介绍

Simple client-only mod that adds WebSocket server to Minecraft, which allows to send commands and receive answers almost like RCon does.

Usage:

By default mod creates a config with the following settings:

  • enable_mod = true
  • port = 8115

So, a WebSocket server will be created listening on port 8115. All you have to do is connect to this server using your preferred WebSocket client.

After successful connection, server will respond back with the following information:

200:Welcome to LCon! Have fun! Don't forget to use prefixes with every message you send to me.
200:Valid prefixes:
200:[chat] - send message to Minecraft chat.
200:[message] - display message for player only.
200:[system] - display system message in chat (for player only).
200:[client] - execute client-side command.
200:[server] - execute server-side command.
201:ready.

Server prepends every message with the status code. They're pretty similar to regular HTTP status codes:

  • 200 - normal message
  • 201 - status message (success)
  • 400 - error

Well, you may send various data to server to perform certain actions and get back messages from server. Every message that is printed in Minecraft chat will be echo'ed to connected WebSocket clients. So, your client should either parse or ignore them.

To send something to server, you must prepend the message itself with one of the valid prefixes as stated above. Sending message without valid prefix will result in error sent back with appropriate status code.

下载太慢?试试 墨喵加速站,支持 Modrinth 和外网直链高速下载! 用的人越多,下载的越快!
下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
Simpel add

价格:0 墨喵币
下载量:0

查看详情
High Charity (from HALO) moon

价格:0 墨喵币
下载量:0

查看详情
Combo Tools

价格:0 墨喵币
下载量:0

查看详情
Forgotten's Food

价格:0 墨喵币
下载量:0

查看详情