Hello,
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:
http://paste.minecraftforge.net/view/a91fc7ec
SERVER SIDE (Bukkit)
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