@SubscribeEvent
public static void hasConnected(PlayerEvent.PlayerLoggedInEvent event) {
INewtypeCapability nt = CapabilityUtils.getCapability(event.player,MAX_NEWTYPE_CAPABILITY,DEFAULT_FACING);
if(!nt.hasShownHumantypeMenu()) {
event.player.openGui(GundamMod.instance,HumantypeGUI.GUI_ID,event.player.getEntityWorld(),event.player.getPosition().getX(),event.player.getPosition().getY(),event.player.getPosition().getZ());
}
}
This snippet is the code that should open the ui but it doesn't work. Loggin works so that means the function is being called.