roperson Posted December 13, 2014 Share Posted December 13, 2014 Hello, As the title says, I'm trying to make my mod load on a multiplayer server, however I can't find any switch/option/modding thingy to make this happen. My mod currently just sends a message to the player with the "ServerChat" event, to see if I'm doing it right. It works in a singleplayer world, but no on a multiplayer world. Quote Link to comment Share on other sites More sharing options...
roperson Posted December 13, 2014 Author Share Posted December 13, 2014 Ok. What I have is a mod listening on the "ServerChatEvent." When I prefix a message with a ~, it should just repeat the message back to me. On singleplayer, this works fine. However, on multiplayer, it does absolutely nothing. EDIT: By "on multiplayer," I mean when connecting to a multiplayer server. Quote Link to comment Share on other sites More sharing options...
Ernio Posted December 13, 2014 Share Posted December 13, 2014 Following diesieben: When on singleplayer you are really connected to integrated server running along with your client. It's the server that is responsible for sending messages so if you connect to dedicated one (you don't have integrated with your client) then mod that is only on your client and not on server will not send anything because it is only handled on server side. Clear enough? Following that - if you want to make a Client-Side mod you can ONLY (and only) use client-side methods and events. anything else will not work when connected to dedicated server. Quote 1.7.10 is no longer supported by forge, you are on your own. Link to comment Share on other sites More sharing options...
roperson Posted December 14, 2014 Author Share Posted December 14, 2014 I understand that, but my question is how is JourneyMap able to overcome this? Since it runs on multiplayer on despite being on the client-side only. Quote Link to comment Share on other sites More sharing options...
roperson Posted December 14, 2014 Author Share Posted December 14, 2014 I'm using chat because I'm attempting to relay the chat message to all other people who have it installed. Quote Link to comment Share on other sites More sharing options...
Ernio Posted December 14, 2014 Share Posted December 14, 2014 You can't without outside listenears. Simple as that. Server will not pass any data that it can't read (receive in packet). JourneyMap is probably using its own local host engine of some kind, you would have to code it yourself - google how to use LAN connection and http access. Quote 1.7.10 is no longer supported by forge, you are on your own. Link to comment Share on other sites More sharing options...
roperson Posted December 14, 2014 Author Share Posted December 14, 2014 I'm not trying to make the server pass the data. I need to capture all chat messages sent that start with a ~ and pass it on to my own servers. I know how to do that, except for capturing the message. Quote Link to comment Share on other sites More sharing options...
roperson Posted December 14, 2014 Author Share Posted December 14, 2014 I need to capture outgoing messages. Quote Link to comment Share on other sites More sharing options...
roperson Posted December 14, 2014 Author Share Posted December 14, 2014 nope im just an idiot thanks that worked Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.