//////////////// public override void Action(CommandCaller caller, string input, string[] args) { var mymod = HamstarHelpersMod.Instance; ConfigsRefreshCommand.RefreshConfigs(); string mod_names = string.Join(", ", mymod.ModMetaDataManager.ConfigMods.Keys.ToArray()); caller.Reply("Mod configs reloaded for " + mod_names, Color.Yellow); }
//////////////// public override void Action(CommandCaller caller, string input, string[] args) { if (Main.netMode != 0) { throw new UsageException("Not single player.", Color.Red); } var mymod = ModHelpersMod.Instance; ConfigsRefreshCommand.RefreshConfigs(); string modNames = string.Join(", ", mymod.ModFeaturesHelpers.ConfigMods.Keys.ToArray()); caller.Reply("Mod configs reloaded for " + modNames, Color.Lime); }