I'll give the Forge mod a go if that works out sweet if not I always have the server side anti-hack in place. I have created a IMessage Handler based off this tutorial http://www.minecraftforge.net/forum/index.php/topic,28953.0.html and I'm now trying to send the server a message from the client but it seems that the server is not recieving anything. I know the server side stuff works since it was before, Here is the FMLInitializationEvent code that should be registering the channel
@EventHandler
public void init(FMLInitializationEvent event) {
network = NetworkRegistry.INSTANCE.newSimpleChannel("MBAH");
network.registerMessage(Messenger.Handler.class, Messenger.class, 0, Side.SERVER);
FMLCommonHandler.instance().bus().register(new ConnectionHandler());
}
This should send a message to the server when a client joins a server, I tried different variations of the message encase the plugin wasn't picking it up and still nothing, so I'm assuming I'm sending it wrong or something.
@SubscribeEvent
public void onConenctionEvent(ClientConnectedToServerEvent event) {
FairFight.network.sendToServer(new Messenger("Send"));
FairFight.network.sendToServer(new Messenger("MBAH Send MD5"));
}