Skip to content

Program Flow

Kolatat Thangkasemvathana edited this page May 27, 2016 · 1 revision

#Entry Points

  • onLoad() - Called after this plugin is loaded buy before it is enabled.
  • onEnable() - Called when this plugin is enabled.
    1. loadConfigurations() - Reads and apply all the configuration from the config.yml file.
    2. loadDependencies() - Constructs instances of objects needed by the plugin.
    3. loadPlaces() - Reads the database and loads all the Places saved into memory.
    4. registerCommands() - Registers specific CommandExecutors as the handler for each command.

#Command Entry Points

  • onTabComplete()
  • onCommand()

#Exit Points

  • onDisable() - Called when this plugin is disabled.
  • Random server crashes - these do happen, and quite often on VAC's servers. ** Since a requirement of this plugin is accountability, we want everything to be committed and flushed right away. Ideally there should not be clean-ups or anything else required in the exit points.

Clone this wiki locally