Home›Java›Mods›BetterLANBroadcaster
BetterLANBroadcaster
ModsJava

BetterLANBroadcaster

Java mod listed for Minecraft 1.18–26.x. Downloads from the MC Java Mods app on Android.

by myxxr · on Modrinth

A Spigot plugin that broadcasts Minecraft servers over the LAN using the UDP multicast protocol, allowing clients to discover the server without manually…

⬇ Download on Modrinth

BetterLANBroadcaster

A Spigot plugin that broadcasts Minecraft servers over LAN using UDP multicast, allowing clients to discover servers without manually entering addresses.

Features

Commands

Command Description
/blb Show plugin version info
/blb start Start broadcasting
/blb stop Stop broadcasting
/blb status View broadcast status
/blb setmotd <MOTD> Set broadcast MOTD
/blb setdelay <milliseconds> Set broadcast delay
/blb setport <port|auto> Set broadcast port (use auto to auto-detect)
/blb debug <on|off> Enable/disable debug mode
/blb reload Reload configuration files
/blb help Show all subcommand help
/blb version Show plugin version info

Tip: /betterlanbroadcaster is the full command, /blb is its alias; both are equivalent.

All commands require the betterlanbroadcaster.admin permission, available to OPs by default.

Configuration

plugins/BetterLANBroadcaster/config.yml

# Language setting: en or zh
language: en

# Server MOTD displayed on LAN
# Available variables:
#   {online} - Current online player count
#   {max}    - Maximum player count
motd: "A Minecraft Server"

# Broadcast delay (milliseconds)
# Default: 1500 ms = 1.5 seconds
broadcast-delay-ms: 1500

# Debug mode: when true, each broadcast packet is logged to console
debug: false

# Broadcast port: set to 0 to auto-detect server port, or specify a port number
broadcast-port: 0

Multi-language

Language files are located in the plugins/BetterLANBroadcaster/lang/ directory:

Set language to en or zh in config.yml to switch languages.

Color Codes

MOTD supports Minecraft color codes using the & symbol followed by a color character to color the server name.

Common color codes:

Code Color
&0 Black
&1 Dark Blue
&2 Dark Green
&3 Dark Aqua
&4 Dark Red
&5 Purple
&6 Gold
&7 Gray
&8 Dark Gray
&9 Blue
&a Green
&b Aqua
&c Red
&d Light Purple
&e Yellow
&f White

Format codes:

Code Effect
&l Bold
&o Italic
&n Underline
&m Strikethrough
&k Random
&r Reset

For example, setting a colored MOTD in the config:

motd: "&6&l✦ &eBetterLAN &7- &aSurvival Server &6&l✦"

In-game, it will display as gold ✦ BetterLAN - Survival Server ✦.

LAN Discovery Protocol

The plugin implements a protocol fully compatible with Minecraft's vanilla LAN broadcast:

Build

git clone https://github.com/myxxr/BetterLANBroadcaster.git
cd BetterLANBroadcaster
mvn clean package

The build artifact will be at target/BetterLANBroadcaster-1.0.0.jar.

Dependencies

Installation

  1. Place BetterLANBroadcaster-1.0.0.jar into the plugins/ directory
  2. Start the server
  3. Use /blb start to start broadcasting
  4. Minecraft clients on the LAN can discover the server in the Multiplayer menu

Author

Immyxxr

License

This project is licensed under the GNU General Public License v3.0 (GPL v3). For details, see the LICENSE file.

bStats

bStats

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

File checked by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more