Jump to content

PacketHandler not receiving messages


Recommended Posts



I created a Packet Handler on the Forge client side and a PluginMessageListener on the Bukkit server side.

The server is sending a handshake packet to the client but the client does not receive the packet.

This is the code:


Mod class:

@Mod(modid = "litecraft", name = "Litecraft", version = "0.1")
@NetworkMod(clientSideRequired = true, serverSideRequired = false, channels = {LitePacketHandler.CHANNEL}, packetHandler = LitePacketHandler.class)
public class Litecraft {


PacketHandler class:




PacketHandler: http://paste.minecraftforge.net/view/20e59795

onEnable method of the plugin:

this.packetHandler = new LitePacketHandler();

Bukkit.getMessenger().registerIncomingPluginChannel(this, LitePacketHandler.CHANNEL, packetHandler);
Bukkit.getMessenger().registerOutgoingPluginChannel(this, LitePacketHandler.CHANNEL);


I put souts at the appropriate lines and tested it multiple times without success, I would be very thankful for your help.


Greetings Zelnehlun


Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...

Important Information

By using this site, you agree to our Terms of Use.