onServerStart

From Liberty Unleashed Wiki
Jump to: navigation, search
Home   |   Squirrel Scripting   |   Server Functions   |   Server Events   |   Client Functions   |   Client Events

This is called when the server is started after loading all the settings and scripts.

Syntax

  1. function onServerStart()

Arguments

  • none

Returns

This event does not handle return values.

Example

This example will print a small (and familiar :P) message to the server console on server startup.

  1.  
  2. function onServerStart()
  3. {
  4. print( "Hello, World!" );
  5. return 1;
  6. }
  7.  

Notes

The function print was used in this example. More info about this in the corresponding page.

Related Events

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox