Changes between Version 2 and Version 3 of Hooks
- Timestamp:
- May 27, 2014, 11:14:42 AM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Hooks
v2 v3 7 7 Currently the following hooks are defined: 8 8 9 * playerConnect 10 * Called after a player has connected 11 * Passed parameters: 9 10 {{{#!th align=center 11 Hook name 12 }}} 13 {{{#!th align=center 14 Called on event 15 }}} 16 {{{#!th align=center 17 Passed parameters 18 }}} 19 |-------------------------------- 20 {{{#!td align=left 21 playerConnect 22 }}} 23 {{{#!td align=left 24 After a player has connected 25 }}} 26 {{{#!td align=left rowspan=2 12 27 1. Instance name 13 28 1. Player ID … … 15 30 1. Nickname 16 31 1. Steam ID 17 * playerDisconnect 18 * Called after player has disconnected 19 * Passed parameters: 32 }}} 33 |-------------------------------- 34 {{{#!td align=left 35 playerDisconnect 36 }}} 37 {{{#!td align=left 38 After a player has disconnected 39 }}} 40 |-------------------------------- 41 {{{#!td align=left 42 serverPreStart 43 }}} 44 {{{#!td align=left 45 Before an instance is started 46 }}} 47 {{{#!td align=left rowspan=4 20 48 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 52 serverPostStart 53 }}} 54 {{{#!td align=left 55 After an instance was started 56 }}} 57 |-------------------------------- 58 {{{#!td align=left 59 serverPreStop 60 }}} 61 {{{#!td align=left 62 Before an instance is stopped 63 }}} 64 |-------------------------------- 65 {{{#!td align=left 66 serverPostStop 67 }}} 68 {{{#!td align=left 69 After an instance was stopped 70 }}} 71 |-------------------------------- 72 {{{#!td align=left 73 backup 74 }}} 75 {{{#!td align=left 76 After a backup was created 77 }}} 78 {{{#!td align=left 79 1. Path of new backup folder 80 }}}