Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Artur_Gamez

Members
  • Joined

  • Last visited

  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.

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.