I would like to change the colour of Opped players on the player list when Tab is held.
I need to do this all server side.
I have been able to change it in the chat but can't find how to access the list for the Tab menu.
I use this function
public ItemStack getContainerItem(ItemStack itemStack)
{
ItemStack copiedStack = itemStack.copy();
copiedStack.stackSize = 1;
return copiedStack;
}
using debug mode i have seen that the code is only run when the GUI is open but don't know why. I can't do any work with the code until tomorrow evening due to work commitments.
A block in my mod has a texture for on and off but it will only update when the GUI is open.
the block code can be found here: https://github.com/danielm59/Fast-Food/blob/master/src/main/java/danielm59/fastfood/block/BlockChurn.java
the tile entity code can be found here: https://github.com/danielm59/Fast-Food/blob/master/src/main/java/danielm59/fastfood/tileentity/TileEntityChurn.java