Hi , I would like to confirm if this works for 1.12.2 too as I'm porting a 1.7.10 mod to 1.12.2.
and is the full correct syntax is??
FMLCommonHandler.instance().getMinecraftServerInstance().?????????????????????(player.canCommandSenderUseCommand(2, ""))
My Try (IDK if this is correct)
public static boolean isPlayerOpped( EntityPlayer player )
{
return FMLCommonHandler.instance().getMinecraftServerInstance().player.canCommandSenderUseCommand(2, "");
}
: