Syntax: password <password>

Enabled by: DisablePasswords

Files modified: gen.hst

Since: PHost 4.0j

This command changes the player's RST password. It is perfectly identical to the respective client function (e.g. "P" in planets.exe's main menu). A password can be up to 10 characters. It can contain all US-ASCII characters, including spaces. Passwords are case-sensitive. To prevent clients from requiring a password, set the password to "NOPASSWORD".

The main purpose of this command is to allow hosts to reset the password of a player who dropped out. The traditional solution is to use a tool such as crack to find out the password and tell that the replacement player. This is problematic from a security standpoint. Hosts can now reset the password through the auxcmds.txt interface by giving a command such as 3: password NOPASSWORD

If multiple such commands are given by a player, the last one will be effective. A password change through the client function overrides a command message (because it is processed after the messages).

Remember that this password provides only weak security. It does not prevent others from unpacking your result file and looking around with a hex editor or a patched client.

► Note: Unlike the other commands which are enabled by a config option, this one can be disabled by setting a config option. Setting DisablePasswords=Yes will also disable the command for hosts.

Conflict Resolution: Commands are executed in order received, therefore the last one takes effect.

Relevant Configuration Option: DisablePasswords

This is a testing version.
It may be incomplete, and have more bugs (or features) than the public live version at planetscentral.com.