Posted January 25, 20178 yr 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?
January 25, 20178 yr 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.
January 25, 20178 yr 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?
January 27, 20178 yr 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()); {
January 28, 20178 yr 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.