Recommend using item short namesSolved
List<string> defaultList = new List<string>();
void OnServerInitialized() => defaultList = ItemManager.GetItemDefinitions().Where(itemDef => itemDef.category == ItemCategory.Food).Select(itemDef => itemDef.shortname).ToList();

and use shortnames as they're easier for server owners to understand what is what
Thanks for the feedback, i added the ability to use shortname in addition of itemid in the list from config file, now you can insert item using shortname like "apple", "chicken.burned", etc.
Locked automatically