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());
{
Well... then... don't add those prefixes and postfixes...
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?
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.
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?
Ok so I found the Minecraft code for the objective [spoiler=Code]
package net.minecraft.scoreboard;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
public class ScoreObjective
{
private final Scoreboard theScoreboard;
private final String name;
/** The ScoreObjectiveCriteria for this objetive */
private final IScoreObjectiveCriteria objectiveCriteria;
private IScoreObjectiveCriteria.EnumRenderType renderType;
private String displayName;
public ScoreObjective(Scoreboard theScoreboardIn, String nameIn, IScoreObjectiveCriteria objectiveCriteriaIn)
{
this.theScoreboard = theScoreboardIn;
this.name = nameIn;
this.objectiveCriteria = objectiveCriteriaIn;
this.displayName = nameIn;
this.renderType = objectiveCriteriaIn.getRenderType();
}
@SideOnly(Side.CLIENT)
public Scoreboard getScoreboard()
{
return this.theScoreboard;
}
public String getName()
{
return this.name;
}
public IScoreObjectiveCriteria getCriteria()
{
return this.objectiveCriteria;
}
public String getDisplayName()
{
return this.displayName;
}
public void setDisplayName(String nameIn)
{
this.displayName = nameIn;
this.theScoreboard.onObjectiveDisplayNameChanged(this);
}
public IScoreObjectiveCriteria.EnumRenderType getRenderType()
{
return this.renderType;
}
public void setRenderType(IScoreObjectiveCriteria.EnumRenderType type)
{
this.renderType = type;
this.theScoreboard.onObjectiveDisplayNameChanged(this);
}
}
but I still don't really know what to do now. Any help?
Hey, is there a way to grab the title or any text from a scoreboard? What I want is to grab the headline from a scoreboard on my server. Thanks!
Oh, and can I somehow change the font size of a String when I am using
this.drawString(fontRendererObj, "Hi!", 10, 10, 0);
?