Jump to content

Artur_Gamez

Members
  • Posts

    5
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

Artur_Gamez's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. Ok, so. I think that I got the event part. But the question is, how to get client to send a message in the server chat? Ha ha. Ha. You are a very "funny" person. -.-
  2. Do you mean I registered the event wrong?
  3. I want to make it like Twitch Bot. Its going to do something if a player typed something in the chat. And I dont want to touch the server side.
  4. Thanks you guys for replying to this thread. I read the replies and got some questions. I believe you think this mod is going to be a server side. No. I'm trying to create this mod for a client, so the client is going to be on a vanilla server. The reason I do this, is I do not own this server. If I did, I could have just created a plugin for it. Could you please explain what you mean by that?
  5. Hello, everyone. I'm new to Forge and modding. I decided to try to make a couple of mods. My first mod is to send a message in the public chat when client sees a certain message in the chat. Some sort of a bot. So, here is what I got: @EventHandler public void onChatRecieved(ClientChatReceivedEvent e){ if (e.message.getUnformattedTextForChat().contains("Bot, hi")){ Minecraft.getMinecraft().thePlayer.sendChatMessage("Troll"); } } Full .class For some reason, this code is not working and I don't know why. When I say "Bot, hi" in the chat, it doesn't send "Troll" in the chat. Can anyone help me? Will be much appreciated.
×
×
  • Create New...

Important Information

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