| 71 | KeepAwayPlayerDied keepawayplayerdied; |
| 72 | |
| 73 | BZF_PLUGIN_CALL int bz_Load(const char* /*commandLine */) { |
| 74 | bz_debugMessage(4, "keepaway plugin loaded"); |
| 75 | bz_registerCustomMapObject("keepaway", &keepawaymaphandler); |
| 76 | bz_registerEvent(bz_ePlayerUpdateEvent, &keepawayeventhandler); |
| 77 | bz_registerEvent(bz_ePlayerPausedEvent, &keepawayplayerpaused); |
| 78 | bz_registerEvent(bz_ePlayerPartEvent, &keepawayplayerleft); |
| 79 | bz_registerEvent(bz_ePlayerJoinEvent, &keepawayplayerjoined); |
| 80 | bz_registerEvent(bz_ePlayerDieEvent, &keepawayplayerdied); |
| 81 | bz_registerCustomSlashCommand("kastatus", &keepawaycommands); |
| 82 | bz_registerCustomSlashCommand("kaon", &keepawaycommands); |
| 83 | bz_registerCustomSlashCommand("kaoff", &keepawaycommands); |
| 84 | bz_registerCustomSlashCommand("katimemult", &keepawaycommands); |
| 85 | bz_registerCustomSlashCommand("katimemultmin", &keepawaycommands); |
| 86 | bz_registerCustomSlashCommand("katime", &keepawaycommands); |
| 87 | bz_registerCustomSlashCommand("kaautotimeon", &keepawaycommands); |
| 88 | bz_registerCustomSlashCommand("kaautotimeoff", &keepawaycommands); |
| 89 | bz_registerCustomSlashCommand("kas", &keepawaycommands); |
| 90 | bz_registerCustomSlashCommand("kaffon", &keepawaycommands); |
| 91 | bz_registerCustomSlashCommand("kaffoff", &keepawaycommands); |
| 92 | bz_registerCustomSlashCommand("kaf", &keepawaycommands); |
| 93 | bz_registerCustomSlashCommand("kaf+", &keepawaycommands); |
| 94 | bz_registerCustomSlashCommand("kasoundon", &keepawaycommands); |
| 95 | bz_registerCustomSlashCommand("kasoundoff", &keepawaycommands); |
| 96 | bz_registerCustomSlashCommand("kaflagreseton", &keepawaycommands); |
| 97 | bz_registerCustomSlashCommand("kaflagresetoff", &keepawaycommands); |
| 98 | return 0; |
| 99 | } |
| 100 | |
| 101 | BZF_PLUGIN_CALL int bz_Unload(void) { |
| 102 | bz_removeEvent(bz_ePlayerUpdateEvent, &keepawayeventhandler); |
nothing calls this directly
no test coverage detected