コード例 #1
0
ファイル: chathistory.cpp プロジェクト: DWang5090/462Shootout
void ChatEvents::Cleanup( void )
{
  bz_removeCustomSlashCommand("last");
  bz_removeCustomSlashCommand("flushchat");

  Flush();
}
コード例 #2
0
ファイル: teamflagreset.cpp プロジェクト: PianoRoKR/bzflag
void TeamFlagResetHandler::Cleanup ( void )
{
  Flush();
  bz_removeCustomSlashCommand("tfrtime");
  bz_removeCustomSlashCommand("tfroff");
  bz_removeCustomSlashCommand("tfron");
  bz_removeCustomSlashCommand("tfrstatus");
}
コード例 #3
0
ファイル: mapchange.cpp プロジェクト: allejo/mapchange
void MapChanger::Cleanup ( void )
{
  Flush();
  bz_removeCustomSlashCommand ( "maprandom" );
  bz_removeCustomSlashCommand ( "maplist" );
  bz_removeCustomSlashCommand ( "mapchange" );
  bz_debugMessage(4,"mapchange plugin unloaded");
}
コード例 #4
0
void flagResetTimerHandler::Cleanup(void)
{
    Flush();
    
    bz_removeCustomSlashCommand("flagresetunused");
    bz_removeCustomSlashCommand("frsetttime");
    bz_removeCustomSlashCommand("frcurrenttime");
    bz_debugMessage(4,"flagResetTimer plugin unloaded");
}
コード例 #5
0
ファイル: fairCTF.cpp プロジェクト: adamsdadakaeti/bzflag
void fairCTF::Cleanup()
{

  Flush();
  bz_removeCustomSlashCommand ("ctf");

  bz_debugMessage(4,"fairCTF plugin unloaded");
}
コード例 #6
0
ファイル: timedctf.cpp プロジェクト: DWang5090/462Shootout
void TCTFHandler::Cleanup ( void )
{
	Flush();
  bz_removeCustomSlashCommand("tctfstatus");
  bz_removeCustomSlashCommand("tctftime");
  bz_removeCustomSlashCommand("tctfon");
  bz_removeCustomSlashCommand("tctfoff");
  bz_removeCustomSlashCommand("fairctfon");
  bz_removeCustomSlashCommand("fairctfoff");
  bz_removeCustomSlashCommand("tctfsoundon");
  bz_removeCustomSlashCommand("tctfsoundoff");
}
コード例 #7
0
ファイル: TimeLimit.cpp プロジェクト: DWang5090/462Shootout
void TimeLimit::Cleanup ( void )
{

  // set default timelimit back before unloading
  //bz_setTimeLimit(saveTimeLimit);

  bz_removeCustomSlashCommand ("timelimit");
  Flush();


  // set default timelimit back before unloading
  bz_setTimeLimit(saveTimeLimit);
}
コード例 #8
0
ファイル: timedctf.cpp プロジェクト: szakats/bzflag_mirror
BZF_PLUGIN_CALL int bz_Unload(void)
{
  bz_debugMessage(4, "timedctf plugin unloaded");
  bz_removeEvent(bz_eCaptureEvent, &tctfflagcapped);
  bz_removeEvent(bz_ePlayerJoinEvent, &tctfplayerjoined);
  bz_removeEvent(bz_ePlayerUpdateEvent, &tctfplayerupdates);
  bz_removeEvent(bz_eTickEvent, &tctftickevents);
  bz_removeCustomSlashCommand("tctfstatus");
  bz_removeCustomSlashCommand("tctftime");
  bz_removeCustomSlashCommand("tctfon");
  bz_removeCustomSlashCommand("tctfoff");
  bz_removeCustomSlashCommand("fairctfon");
  bz_removeCustomSlashCommand("fairctfoff");
  bz_removeCustomSlashCommand("tctfsoundon");
  bz_removeCustomSlashCommand("tctfsoundoff");
  return 0;
}
コード例 #9
0
void leagueOverSeer::Cleanup (void)
{
    bz_debugMessagef(0, "League Over Seer %i.%i.%i (%i) unloaded.", MAJOR, MINOR, REV, BUILD);

    Flush(); // Clean up all the events

    // Remove the prepared SQLite statement from memory
    sqlite3_finalize(getPlayerMotto);

    // Remove all the slash commands
    bz_removeCustomSlashCommand("official");
    bz_removeCustomSlashCommand("fm");
    bz_removeCustomSlashCommand("finish");
    bz_removeCustomSlashCommand("cancel");
    bz_removeCustomSlashCommand("spawn");
    bz_removeCustomSlashCommand("resume");
    bz_removeCustomSlashCommand("pause");
}
コード例 #10
0
ファイル: mapchange.cpp プロジェクト: szakats/bzflag_mirror
BZF_PLUGIN_CALL int bz_Unload ( void )
{
  bz_removeEvent ( bz_ePlayerJoinEvent, &handler );
  bz_removeEvent ( bz_ePlayerDieEvent, &handler );
  bz_removeEvent ( bz_ePlayerPartEvent, &handler );
  bz_removeEvent ( bz_eCaptureEvent, &handler );
  bz_removeEvent ( bz_eGetWorldEvent, &handler );
  bz_removeEvent ( bz_eTickEvent, &handler );
  bz_removeEvent ( bz_eListServerUpdateEvent, &handler );

  bz_removeCustomSlashCommand ( "mapnext" );
  bz_removeCustomSlashCommand ( "mapreset" );
  bz_removeCustomSlashCommand ( "mapcyclemode" );
  bz_removeCustomSlashCommand ( "mapendmode" );
  bz_removeCustomSlashCommand ( "maplist" );
  bz_removeCustomSlashCommand ( "maplimit" );

  bz_debugMessage(4,"mapchange plugin unloaded");
  return 0;
}
コード例 #11
0
ファイル: koth.cpp プロジェクト: szakats/bzflag_mirror
BZF_PLUGIN_CALL int bz_Unload(void)
{
  bz_removeEvent(bz_ePlayerUpdateEvent, &kotheventhandler);
  bz_removeEvent(bz_ePlayerPausedEvent, &kothplayerpaused);
  bz_removeEvent(bz_ePlayerPartEvent, &kothplayerleft);
  bz_removeEvent(bz_ePlayerJoinEvent, &kothplayerjoined);
  bz_removeEvent(bz_ePlayerDieEvent, &kothplayerdied);
  bz_debugMessage(4, "koth plugin unloaded");
  bz_removeCustomMapObject("KOTH");
  bz_removeCustomSlashCommand("kothstatus");
  bz_removeCustomSlashCommand("kothon");
  bz_removeCustomSlashCommand("kothoff");
  bz_removeCustomSlashCommand("kothsoundon");
  bz_removeCustomSlashCommand("kothsoundoff");
  bz_removeCustomSlashCommand("kothtimemult");
  bz_removeCustomSlashCommand("kothtimemultmin");
  bz_removeCustomSlashCommand("kothtime");
  bz_removeCustomSlashCommand("kothautotimeon");
  bz_removeCustomSlashCommand("kothautotimeoff");
  bz_removeCustomSlashCommand("kingsay");
  bz_clearMaxWaitTime("KOTH");
  return 0;
}
コード例 #12
0
ファイル: keepaway.cpp プロジェクト: Rudlandh/bzflag
void KeepAwayEventHandler::Cleanup(void)
{
	Flush();
	bz_removeCustomMapObject("keepaway");
	bz_removeCustomSlashCommand("kastatus");
	bz_removeCustomSlashCommand("kaon");
	bz_removeCustomSlashCommand("kaoff");
	bz_removeCustomSlashCommand("katimemult");
	bz_removeCustomSlashCommand("katimemultmin");
	bz_removeCustomSlashCommand("katime");
	bz_removeCustomSlashCommand("kaautotimeon");
	bz_removeCustomSlashCommand("kaautotimeoff");
	bz_removeCustomSlashCommand("kas");
	bz_removeCustomSlashCommand("kaffon");
	bz_removeCustomSlashCommand("kaffoff");
	bz_removeCustomSlashCommand("kaf");
	bz_removeCustomSlashCommand("kaf+");
	bz_removeCustomSlashCommand("kasoundon");
	bz_removeCustomSlashCommand("kasoundoff");
	bz_removeCustomSlashCommand("kaflagreseton");
	bz_removeCustomSlashCommand("kaflagresetoff");
}
コード例 #13
0
ファイル: Defusal.cpp プロジェクト: allejo/Defusal
void Defusal::Cleanup(void)
{
	Flush();
	bz_removeCustomSlashCommand("bomb");
}
コード例 #14
0
ファイル: koth.cpp プロジェクト: PianoRoKR/bzflag
void KOTHHandler::Cleanup(void){

	Flush();
	bz_removeCustomMapObject("KOTH");
	bz_removeCustomSlashCommand("kothstatus");
	bz_removeCustomSlashCommand("kothon");
	bz_removeCustomSlashCommand("kothoff");
	bz_removeCustomSlashCommand("kothsoundon");
	bz_removeCustomSlashCommand("kothsoundoff");
	bz_removeCustomSlashCommand("kothtimemult");
	bz_removeCustomSlashCommand("kothtimemultmin");
	bz_removeCustomSlashCommand("kothtime");
	bz_removeCustomSlashCommand("kothautotimeon");
	bz_removeCustomSlashCommand("kothautotimeoff");
	bz_removeCustomSlashCommand("kingsay");
}
コード例 #15
0
ファイル: killall.cpp プロジェクト: Rudlandh/bzflag
	virtual void Cleanup ( void )
	{
		bz_removeCustomSlashCommand ( "killall" );
	}