diff --git a/src/Constants.js b/src/Constants.js index 6c788c83b..efec572a2 100644 --- a/src/Constants.js +++ b/src/Constants.js @@ -284,6 +284,9 @@ CONSTANTS = { "be used to run scripts located on the same server. Returns true if the script is successfully started, and false otherwise. Requires a significant amount " + "of RAM to run this command. Does NOT work while offline
Example: run('hack-foodnstuff.script');
The example above will try and launch the 'hack-foodnstuff.script' script on " + "the current server, if it exists.

" + + "scp(script, hostname/ip)
Copies a script to another server. The first argument is a string with the filename of the script " + + "to be copied. The second argument is a string with the hostname or IP of the destination server. Returns true if the script is successfully " + + "copied over and false otherwise.
Example: scp('hack-template.script', 'foodnstuff');

" + "hasRootAccess(hostname/ip)
Returns a boolean (true or false) indicating whether or not the Player has root access to a server. " + "The argument passed in must be a string with either the hostname or IP of the target server. Does NOT work while offline.
" + "Example:
if (hasRootAccess('foodnstuff') == false) {
    nuke('foodnstuff');
}

" +