Admin commands for update/reloading data not workingSolved
Hey, i wondered why all new items were missing.
Even when i used the commands:
recyclemanager.updateingredientlist
recyclemanager.reloadingredientlist​

Looks like there is a little error in these both functions:

[ConsoleCommand("recyclemanager.reloadingredientlist")]
        private void reloadDataCONSOLECMD(ConsoleSystem.Arg args)
        {
            if (args.Connection != null)		
                return;
			
            OutputData = Interface.Oxide.DataFileSystem.GetFile("RecycleManager");
            LoadData();
            Puts("Recycler output list has successfully been updated!");
        }

        [ConsoleCommand("recyclemanager.updateingredientlist")]
        private void UpdateIngredientListCMD(ConsoleSystem.Arg arg)
        {
            if (arg.Connection != null)
                return;
            UpdateIngredientList();
            Puts("Recycler ingredients list has been updated!");
        }

You have to simply change the "!=" to "==" in both functions.
Here to copy:
[ConsoleCommand("recyclemanager.reloadingredientlist")]
        private void reloadDataCONSOLECMD(ConsoleSystem.Arg args)
        {
            if (args.Connection == null)		
                return;
			
            OutputData = Interface.Oxide.DataFileSystem.GetFile("RecycleManager");
            LoadData();
            Puts("Recycler output list has successfully been updated!");
        }

        [ConsoleCommand("recyclemanager.updateingredientlist")]
        private void UpdateIngredientListCMD(ConsoleSystem.Arg arg)
        {
            if (arg.Connection == null)
                return;
            UpdateIngredientList();
            Puts("Recycler ingredients list has been updated!");
        }​

After this you can use the update command properly and you will get the message: "Recycler ingredients list has been updated!".

Those commands were that way as they were intended only for use via server console, not players. If you reverse the checks, any player an use those commands as there are no permissons set there.
Oh, i mistook it with this then:
recyclemanager.admin -- Required for any admin commands​

Ok, Thread can be closed in that case, sorry

Locked automatically