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.

iimyst

Members
  • Joined

  • Last visited

Everything posted by iimyst

  1. public String test = thePlayer.getDisplayName().getUnformattedText().toString(); public void drawScreen(int mouseX, int mouseY, float partialTicks) { super.drawDefaultBackground(); if (Options.enabled == true) { this.mc.fontRendererObj.drawStringWithShadow(test, Options.minX + 4, Options.minY + Options.killspos + 2, textDec); //other stuff
  2. I want it to display the unformatted text. But whenever I test the string in my GUI it's only showing the formatted one from the server. For example, "B Lawsonwage" in blue formatting rather than just normal white.
  3. Is it possible to turn getDisplayName() into a string? I've tried using getDisplayName() .getUnformattedText().toString and nothing ends up happening. I want to use the displayname because it has more information than the name itself.
  4. Thanks. That worked in a test where I printed it. I do have one more question. How would I compare that to the rest of the players in the game? I made a Collection with NetworkPlayerInfo where I'm able to find the names and turn them into a string. Am I able to turn the display names into a string? Because instead of just the returning the name (like getName does), the displayname gives a "B" for the team letter that im trying to find. I haven't had any luck with it. Every time I try the chat just shows up blank. Any suggestions? @SubscribeEvent public void matchJoin(ClientChatReceivedEvent event) { if (event.message.getUnformattedText().contains("test")) { Collection<NetworkPlayerInfo> players = Minecraft.getMinecraft().getNetHandler().getPlayerInfoMap(); for (final NetworkPlayerInfo networkplayerinfo : players) { //turning displayname into a string
  5. Hi, I'm trying to get the names of my teammates on Hypixel. Although for some reason on Hypixel getTeam doesn't work. It just results in random numbers Minecraft.getMinecraft().thePlayer.getTeam() The only way I've been able to tell which team the player is in is by the tab list. They're separated into different colors, like this. Is there a way I can use the colors to find who's on my team?

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.