Changes between Version 6 and Version 7 of Hooks
- Timestamp:
- Jul 7, 2014, 8:03:02 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Hooks
v6 v7 3 3 All hooks have to executable files in ''SDTD_BASE/hooks/<name of hook>/<any name>.sh''. The folder ''<name of hook>'' has to be in exactly the same case as the hook name column in the table below shows it. 4 4 5 If you want to use the functions of the management scripts in your hook you can add this to the start of your script: 6 {{{ 7 #!/bin/bash 8 . /usr/local/lib/7dtd/common.sh 9 }}} 10 An example can be found in the greet.sh hook for playerConnect. 11 Note that you have to use Bash as interpreter for your script if you want to use the script functions! 12 5 13 If you think a hook for another event could be interesting please [/newticket create a ticket] or [[Author|contact me]]. 6 14 7 15 Currently the following hooks are defined: 8 9 16 10 17 {{{#!th align=center … … 16 23 {{{#!th align=center 17 24 Passed parameters 25 }}} 26 {{{#!th align=center 27 Examples 18 28 }}} 19 29 |-------------------------------- … … 30 40 1. Nickname 31 41 1. Steam ID 42 }}} 43 {{{#!td align=left 32 44 }}} 33 45 |--------------------------------