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.

saist

Members
  • Joined

  • Last visited

Everything posted by saist

  1. I have a client side command interpreter that reads sent chat messages so I have no need for a server side mod. The problem is even when I cancel the event the message is still displayed to other players and they can see what the person with the mod types in chat.
  2. The response message does appear only for the client that the mod is downloaded on, but the command the player types is also sent to the server chat. player with the mod (executing the command with the output "This is a mod") a different player w/out the mod in the same server As you can see the other player can see the commands that are executed. Is there a way I can prevent the command from reaching the server so that it doesn't display in chat?
  3. I want to have custom commands for my client side mod so I have tried hooking the ClientChatEvent event and canceling anything that starts with a specific prefix. The problem is that while the message doesn't appear on the clientside, it is still visible to other players on the same server. I have also tried null-ing the event but that didn't seem to have any effect. Is there something else that I have to do to completely cancel the event? @SubscribeEvent public void onChat(ClientChatReceivedEvent event) { String message = event.getMessage().getUnformattedText(); if(message.equals("<" + Minecraft.getMinecraft().player.getName() + "> $command")) { System.out.println("wow cool"); event.setCanceled(true); //sent message still appears to other players?!?!?!?? } }

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.