Jump to content

Recommended Posts

Posted

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?

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

 

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.