onLoginAttempt
Description
This is called when a player attempts to join the server.
| Name | Description |
|---|---|
| playerName | The name of the new player |
| password | The password that the player used to login |
| ipAddress | The IP address of the new player |
Example
function onLoginAttempt(playerName, password, ipAddress) { if(playerName == "Example_blocked_name") { return false; // reject } return true; // default allow}