Changes between Version 2 and Version 3 of Hooks


Ignore:
Timestamp:
May 27, 2014, 11:14:42 AM (11 years ago)
Author:
Christian Illy
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Hooks

    v2 v3  
    77Currently the following hooks are defined:
    88
    9 * playerConnect
    10   * Called after a player has connected
    11   * Passed parameters:
     9
     10{{{#!th align=center
     11Hook name
     12}}}
     13{{{#!th align=center
     14Called on event
     15}}}
     16{{{#!th align=center
     17Passed parameters
     18}}}
     19|--------------------------------
     20{{{#!td align=left
     21playerConnect
     22}}}
     23{{{#!td align=left
     24After a player has connected
     25}}}
     26{{{#!td align=left rowspan=2
    1227    1. Instance name
    1328    1. Player ID
     
    1530    1. Nickname
    1631    1. Steam ID
    17 * playerDisconnect
    18   * Called after player has disconnected
    19   * Passed parameters:
     32}}}
     33|--------------------------------
     34{{{#!td align=left
     35playerDisconnect
     36}}}
     37{{{#!td align=left
     38After a player has disconnected
     39}}}
     40|--------------------------------
     41{{{#!td align=left
     42serverPreStart
     43}}}
     44{{{#!td align=left
     45Before an instance is started
     46}}}
     47{{{#!td align=left rowspan=4
    2048    1. Instance name
    21     1. Player ID
    22     1. Entity ID
    23     1. Nickname
    24     1. Steam ID
    25 * serverPreStart
    26   * Called before an instance is started
    27   * Passed parameters:
    28     1. Instance name
    29 * serverPostStart
    30   * Called after an instance was started
    31   * Passed parameters:
    32     1. Instance name
    33 * serverPreStop
    34   * Called before an instance is stopped
    35   * Passed parameters:
    36     1. Instance name
    37 * serverPostStop
    38   * Called after an instance was stopped
    39   * Passed parameters:
    40     1. Instance name
     49}}}
     50|--------------------------------
     51{{{#!td align=left
     52serverPostStart
     53}}}
     54{{{#!td align=left
     55After an instance was started
     56}}}
     57|--------------------------------
     58{{{#!td align=left
     59serverPreStop
     60}}}
     61{{{#!td align=left
     62Before an instance is stopped
     63}}}
     64|--------------------------------
     65{{{#!td align=left
     66serverPostStop
     67}}}
     68{{{#!td align=left
     69After an instance was stopped
     70}}}
     71|--------------------------------
     72{{{#!td align=left
     73backup
     74}}}
     75{{{#!td align=left
     76After a backup was created
     77}}}
     78{{{#!td align=left
     79    1. Path of new backup folder
     80}}}