Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zml2008/landiscovery
Allow making a Sponge server discoverable over LAN
https://github.com/zml2008/landiscovery
Last synced: 2 months ago
JSON representation
Allow making a Sponge server discoverable over LAN
- Host: GitHub
- URL: https://github.com/zml2008/landiscovery
- Owner: zml2008
- License: lgpl-3.0
- Created: 2015-07-22T21:28:50.000Z (over 9 years ago)
- Default Branch: trunk
- Last Pushed: 2024-09-23T22:30:00.000Z (3 months ago)
- Last Synced: 2024-10-03T11:21:53.098Z (3 months ago)
- Language: Java
- Size: 320 KB
- Stars: 5
- Watchers: 3
- Forks: 2
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: COPYING
Awesome Lists containing this project
README
# LanDiscovery
LanDiscovery is a plugin for SpongeAPI 8+ that broadcasts a dedicated server's presence for discovery in the LAN server list on clients.
The text used for the broadcast is the MOTD set in the server's `server.properties`. This is currently not configurable.
![A Sponge server displayed as a LAN world in the Minecraft client](./etc/lan-client.png)
## Commands
- `/lanmute`
**Permission**: `landiscovery.mute`
This command will toggle whether lan broadcasts are enabled, to temporarily hide the server from local clients.## License
LanDiscovery is released under the terms of the [GNU Lesser General Public License version 3 or later](COPYING.LESSER).
## Developer resources
- https://github.com/SpoutDev/Vanilla/blob/master/src/main/java/org/spout/vanilla/protocol/LANThread.java Implementation of server broadcastThe is `[MOTD]server mothd[/MOTD][AD]port#[/AD]` -- server ip is the same as the broadcasting host.
### Building
LanDiscovery is built with Gradle, and targets Java 8. Run `./gradlew build` to compile and test the plugin. The built jar will be in `build/libs`.