Jump to content

Open chat with default string


Lunya

Recommended Posts

I want to open a chat with default string. I had an idea to do it via:

mc.displayGuiScreen(new ChatScreen("test"));

 But for some reason this doesn't work. How can I open a chat with default string?

Link to comment
Share on other sites

@SubscribeEvent
    public void onChatMessageEvent(ClientChatReceivedEvent event){
        if(check(event.getMessage())	//Checked, it returns true
        {
                minecraft.displayGuiScreen(new ChatScreen("/mute "+ nick + " "));
        }
    }

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

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