netmsg
This mod provides a custom event `NetMessageReceivedEvent` that is fired whenever the LocalNetBridge receives a message on port 55000. Other mods can listen to this event to handle incoming messages.
About netmsg
NetMsg
Looking for a fun PVP experience on a stable server?
Join HYDMG.COM IP: hydmg.com
This mod provides a custom event NetMessageReceivedEvent that is fired whenever the LocalNetBridge receives a message on port 55000. Other mods can listen to this event to handle incoming messages.
Listening for Messages
To listen for messages, you need to register a listener for NetMessageReceivedEvent.
Example Listener
import com.hydmg.netmsg.event.NetMessageReceivedEvent; import com.hypixel.hytale.server.core.plugin.JavaPlugin;
public class MyModListener { public void onMessageReceived(NetMessageReceivedEvent event) { String message = event.getMessage(); System.out.println("Received message: " + message); // Process the message... } } Registering the Listener
In your mod's setup method:
@Override protected void setup() { MyModListener listener = new MyModListener(); getEventRegistry().registerGlobal(NetMessageReceivedEvent.class, listener::onMessageReceived); } Event Details
Class: com.hydmg.netmsg.event.NetMessageReceivedEvent
Method: getMessage() returns the String content of the received message.
Sending Messages
To send a message to the bridge from the command line, you can use curl:
curl -X POST -d "Hello, Hytale!" http://localhost:55000
Mods Currently using netmsg
broadcaster
Created By
Use code asonia to support us!
Categories
Frequently Asked Questions
What is netmsg?
This mod provides a custom event `NetMessageReceivedEvent` that is fired whenever the LocalNetBridge receives a message on port 55000. Other mods can listen to this event to handle incoming messages.
How do I download netmsg?
You can download netmsg for free from CurseForge. Click the "Download on CurseForge" button on this page to go directly to the download page.
Who created netmsg?
netmsg was created by asonia. The mod has been downloaded 49 times.
Is netmsg compatible with Hytale servers?
netmsg is designed for Hytale and can be used on both single-player and multiplayer servers. Check the mod page on CurseForge for specific compatibility information.
How do I install netmsg?
To install netmsg: 1) Download the mod from CurseForge, 2) Place the file in your Hytale mods folder, 3) Restart the game. The mod should load automatically.
Related Utility Mods
View all modsBetterMap
Paralaxe
Enhance Hytale World Map
Hybrid
Serilum
🏛️ A Hytale mod library that contains common code for all of Serilum's mods.
VeinMining
EineNT
Instantly mine connected ores and blocks by holding the Walk key (LEFT ALT) while breaking a single block.
Wayback Charm
DarkhaxDev
A charm to help you find your way back home.
Better Modlist
Buuz135
Adds a better modlist to the game, with improved features like searching and logos.
Simple Claims
Buuz135
Adds a chunk claim and protection system.