MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / bz_Load

Function bz_Load

plugins/keepaway/keepaway.cpp:73–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71KeepAwayPlayerDied keepawayplayerdied;
72
73BZF_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
101BZF_PLUGIN_CALL int bz_Unload(void) {
102 bz_removeEvent(bz_ePlayerUpdateEvent, &keepawayeventhandler);

Callers

nothing calls this directly

Calls 4

bz_debugMessageFunction · 0.85
bz_registerEventFunction · 0.85

Tested by

no test coverage detected