Jump to content

Recommended Posts

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?

Posted

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.

Posted

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?

Posted

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());
{

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

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