# onconnect
## Syntax:
/onconnect **{command}**
## Use Case:
Defines a command that will run immediately after a successful connection to the server.
## Arguments:
- **{command}**: The command to execute.
## Examples:
1. **/onconnect {who}**
## See Also:
onconnects