Jump to content

[1.7.10] Setting up a variable in a message send when pressing a button


AzureZhen

Recommended Posts

Hi I'm trying to set up some code that when a GUI button is clicked it sends a command that takes a variable from what button is pressed and inserts into the command.

 

Minecraft.getMinecraft().thePlayer.sendChatMessage("/" + classe + "");

 

the

classe

is already defined and working in the rest of the mod, however when pressed, I am kicked and it pops up "Illegal characters in chat". What am I doing wrong? Thanks for any help.

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.