SoggyMustache Posted March 25, 2016 Share Posted March 25, 2016 I have made an event handler but I can figure out how to make it so when I log into the world it will display a message in the game chat and not in the eclipse console. Does any one know what to do Quote Link to comment Share on other sites More sharing options...
SoggyMustache Posted March 25, 2016 Author Share Posted March 25, 2016 I have a player login event. and I want it so when someone goes into the world it will say something in the chat almost as if a command block said it. Quote Link to comment Share on other sites More sharing options...
SoggyMustache Posted March 25, 2016 Author Share Posted March 25, 2016 That didnt work what else could I do. Quote Link to comment Share on other sites More sharing options...
SoggyMustache Posted March 25, 2016 Author Share Posted March 25, 2016 Im not the best coder but would it go like this @SubscribeEvent public void playerLog(PlayerEvent.PlayerLoggedInEvent event) { ServerConfigurationManager.sendChatMsg("Hi"); } Quote Link to comment Share on other sites More sharing options...
SoggyMustache Posted March 25, 2016 Author Share Posted March 25, 2016 WHen I put that in i add .sendChat.Msg() and in the () it needs a IChatComponent but I cant figure out how to make one Quote Link to comment Share on other sites More sharing options...
Draco18s Posted March 26, 2016 Share Posted March 26, 2016 I cant figure out how to make one Its an interface, not a class, you can't instantiate it. Quote Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given. 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.