private bool printAdmins(string[] args) { print("Admin ids:"); SyncedList ids = (SyncedList)AccessTools.Field(typeof(ZNet), "m_adminList").GetValue(ZNet.instance); List <string> idList = ids.GetList(); foreach (string id in idList) { print(id); } return(true); }
private bool printPermitted(string[] args) { print("Permited player steam IDs/IPs:"); SyncedList ids = (SyncedList)AccessTools.Field(typeof(ZNet), "m_permittedList").GetValue(ZNet.instance); List <string> idList = ids.GetList(); foreach (string id in idList) { print(id); } return(true); }