Toolbox.enableScript('testmod.js'); and ToolBox.disableScript('testmod.js');
Enable or disable a script ×
Toolbox.scriptStatus('testmod.js');
Return true if the mod is enabled, return false if the mod is disabled (using an if statement).
Toolbox.deleteScript('testmod.js');
Deletes a script ×
Toolbox.importScript(par1String);
Imports a script, if possible find the sdcard using a defined variable in the ToolBox and if possible find the Download folder using a defined variable in the ToolBox, like those ChatColor variables, it would be like Toolbox.importScript('sdcard\download\testmod.js');
If this was possible, you could even make a custom ModPE Importer 😃
Or maybe a AutoUpdater 😃
Toolbox.enableScript('testmod.js'); and ToolBox.disableScript('testmod.js'); Enable or disable a script ×
Toolbox.scriptStatus('testmod.js'); Return true if the mod is enabled, return false if the mod is disabled (using an if statement).
Toolbox.deleteScript('testmod.js'); Deletes a script ×
Toolbox.importScript(par1String); Imports a script, if possible find the sdcard using a defined variable in the ToolBox and if possible find the Download folder using a defined variable in the ToolBox, like those ChatColor variables, it would be like Toolbox.importScript('sdcard\download\testmod.js');
If this was possible, you could even make a custom ModPE Importer 😃 Or maybe a AutoUpdater 😃
× by asking the user using a alert popup.