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.

Featured Replies

Posted

Hey, is there a way to remove the prefix (or the suffix) from someone's displayname when using

public void getName(PlayerEvent.NameFormat event) {
        	event.displayname = "§2§l[sP]" + event.displayname;
        }

? Also, can you somehow change the appearance of a player's name in the TAB list?

  • Author

1. When a player on the server is called "[VIP] Ping [GUILD]", it only changes it to "[VIP] Name [GUILD]" while I want it to be only "Name".

2. For some reason it doesn't :(. It only changes the name in chat and the name tag.

  • Author

1. When a player on the server is called "[VIP] Ping [GUILD]", it only changes it to "[VIP] Name [GUILD]" while I want it to be only "Name".
Well... then... don't add those prefixes and postfixes...

 

2. For some reason it doesn't :(. It only changes the name in chat and the name tag.
Are you changing the name on the client? In that case the event does not catch this part, because the list displays even players who you currently cannot see, whereas the event fires only for players you can see (when on the client).

I don't add them, they come directly from the server. How can I fix the Tab list?

  • Author

Then you can use regular expressions to remove them, if you know what they are going to be.

As for the player list, I already told you.

Hmm, maybe I am actually not isntalling the proxy right? That's how it looks:

Main class:

@SidedProxy(clientSide = "Proxy.ClientProxy", serverSide = "Proxy.ServerProxy")
public static ServerProxy proxy;
@EventHandler
public void preInit(FMLPreInitializationEvent event)
{
	proxy.registerClientStuff();
                proxy.registerServerStuff();
}

Proxy Client:

public class ClientProxy extends ServerProxy {

public void registerClientStuff() 
              MinecraftForge.EVENT_BUS.register(new Main());
{

Proxy Server:

public class ServerProxy {

public void registerServerStuff() 
              MinecraftForge.EVENT_BUS.register(new Main());
{

  • Author

I don't know what you are trying to ask. I don't know what this "Main" thing is.

Main is the Main class.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

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.