Compare commits

...

10 commits
v3.0.0 ... main

4 changed files with 36 additions and 1 deletions

23
README.md Normal file
View file

@ -0,0 +1,23 @@
# [e4mc_minecraft](https://e4mc.link)
[![Modrinth Downloads](https://img.shields.io/modrinth/dt/qANg5Jrr?color=%2300af5c&logo=modrinth&style=for-the-badge)](https://modrinth.com/project/qANg5Jrr)
[![Modrinth Followers](https://img.shields.io/modrinth/followers/qANg5Jrr?color=00af5c&logo=modrinth&style=for-the-badge)](https://modrinth.com/project/qANg5Jrr)
[![CurseForge Sucks](https://img.shields.io/badge/cuseforge-sucks-f16436?style=for-the-badge)](https://curseforge.com/minecraft/mc-mods/e4mc)
Open a LAN server to anyone, anywhere, anytime.
## Install
[Modrinth](https://modrinth.com/project/qANg5Jrr)
## Usage
Open to LAN as normal
## Contributing
Please contribute
## License
[MIT](LICENSE)

View file

@ -42,7 +42,7 @@ data class DomainAssignedMessage(val DomainAssigned: String)
data class ChannelOpenMessage(val ChannelOpen: List<Any>) data class ChannelOpenMessage(val ChannelOpen: List<Any>)
data class ChannelClosedMessage(val ChannelClosed: Number) data class ChannelClosedMessage(val ChannelClosed: Number)
class E4mcRelayHandler: WebSocketClient(URI("wss://ingress.e4mc.link")) { class E4mcRelayHandler: WebSocketClient(URI(System.getProperty("vg.skye.e4mc_minecraft.ingress_uri", "wss://ingress.e4mc.link"))) {
private val gson = Gson() private val gson = Gson()
private val childChannels = mutableMapOf<Int, LocalChannel>() private val childChannels = mutableMapOf<Int, LocalChannel>()
private val messageQueue = mutableMapOf<Int, ArrayBlockingQueue<ByteBuffer>>() private val messageQueue = mutableMapOf<Int, ArrayBlockingQueue<ByteBuffer>>()

View file

@ -0,0 +1,6 @@
{
"text.e4mc_minecraft.domainAssigned": "将本地游戏托管在域名[%s]上",
"text.e4mc_minecraft.closeServer": "不再公开托管本地游戏",
"text.e4mc_minecraft.serverAlreadyClosed": "本地游戏没有被公开托管",
"text.e4mc_minecraft.clickToStop": "(点击这里以停止)"
}

View file

@ -0,0 +1,6 @@
{
"text.e4mc_minecraft.domainAssigned": "本地遊戲已託管在網域 [%s]",
"text.e4mc_minecraft.closeServer": "本地遊戲不再公開託管",
"text.e4mc_minecraft.serverAlreadyClosed": "本地遊戲未公開託管",
"text.e4mc_minecraft.clickToStop": "(點擊此處停止)"
}