API: Startup: Difference between revisions
Appearance
Created page with "To start the server, fCraft front-ends should call Server.InitLibrary(), Server.InitServer(), and Server.StartServer() in the right order. The following sequence of events takes ..." |
No edit summary |
||
| Line 24: | Line 24: | ||
##Creates Player.Console and Player.AutoRank | ##Creates Player.Console and Player.AutoRank | ||
##Loads world list | ##Loads world list | ||
[[Category:Dev]] | |||
##*''WorldManager.WorldCreating'' | ##*''WorldManager.WorldCreating'' | ||
##*''WorldManager.WorldCreated'' | ##*''WorldManager.WorldCreated'' | ||
Revision as of 02:04, 12 January 2012
To start the server, fCraft front-ends should call Server.InitLibrary(), Server.InitServer(), and Server.StartServer() in the right order. The following sequence of events takes place (raised events are in italics).
- Server.InitLibrary
- Reads command-line switches and sets up path and logging
- Logger.Logged
- Server.InitServer
- Activates plugins
- PluginManager.PluginAdded
- PluginManager.PluginActivated
- Server.Initializing
- Loads config
- Config.KeyChanging
- Config.KeyChanged
- Loads PlayerDB
- Loads IPBanList
- Prepares commands
- CommandManager.CommandRegistering
- CommandManager.CommandRegistered
- Loads AutoRank settings
- Server.Initialized
- Activates plugins
- Server.StartServer
- Sets Server.StartTime
- Server.Starting
- Creates Player.Console and Player.AutoRank
- Loads world list
- WorldManager.WorldCreating
- WorldManager.WorldCreated
- Sets up networking (sets Port, InternalIP, and ExternalIP)
- Starts listening for connections
- Starts IRC
- Starts Heartbeat
- Starts AutoRank
- Starts Scheduler
- Server.Started