From aff3b2b7768064b8fbd1e1f22d826267cd5987f4 Mon Sep 17 00:00:00 2001 From: ChocoTaco Date: Thu, 30 Sep 2021 17:12:07 -0400 Subject: [PATCH] Fixed Logging --- Classic/scripts/autoexec/VoteMenu.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Classic/scripts/autoexec/VoteMenu.cs b/Classic/scripts/autoexec/VoteMenu.cs index 140760c..e9e44e2 100644 --- a/Classic/scripts/autoexec/VoteMenu.cs +++ b/Classic/scripts/autoexec/VoteMenu.cs @@ -844,6 +844,7 @@ function DefaultGame::voteChangeMission(%game, %admin, %missionDisplayName, %typ messageAll('MsgAdminChangeMission', '\c2The Admin %3 has changed the mission to %1 (%2).', %missionDisplayName, %typeDisplayName, %admin.name ); %game.gameOver(); loadMission( %mission, %missionType, false ); + adminLog(%admin, " has changed the mission to " @ %missionDisplayName @ " (" @ %typeDisplayName @ ")"); } else { @@ -898,6 +899,7 @@ function DefaultGame::voteTournamentMode( %game, %admin, %missionDisplayName, %t if (isObject(%admin)) { messageAll( 'MsgAdminForce', '\c2The Admin %2 has switched the server to Tournament mode (%1).', %missionDisplayName, %admin.name ); + adminLog(%admin, " has switched the server to Tournament mode. " @ %missionDisplayName @ " (" @ %typeDisplayName @ ")"); setModeTournament( %mission, %missionType ); } else @@ -947,6 +949,7 @@ function DefaultGame::voteChangeTimeLimit( %game, %admin, %newLimit ) { messageAll( 'MsgAdminForce', '\c2The Admin %2 changed the mission time limit to %1 minutes.', %display, %admin.name ); $Host::TimeLimit = %newLimit; + adminLog(%admin, " has changed the mission time limit to " @ %display @ " minutes."); } else { @@ -1005,6 +1008,7 @@ function DefaultGame::voteFFAMode( %game, %admin, %client ) if(isObject(%admin)) { messageAll('MsgAdminForce', '\c2The Admin %1 has switched the server to Free For All mode.', %admin.name); + adminLog(%admin, " has switched the server to Free For All mode."); setModeFFA($CurrentMission, $CurrentMissionType); } else @@ -1028,6 +1032,7 @@ function DefaultGame::voteSkipMission(%game, %admin, %arg1, %arg2, %arg3, %arg4) if(isObject(%admin)) { messageAll('MsgAdminForce', '\c2The Admin %1 has skipped to the next mission.',%admin.name ); + adminLog(%admin, " has skipped to the next mission."); %game.gameOver(); //loadMission( findNextCycleMission(), $CurrentMissionType, false ); cycleMissions(); @@ -1117,12 +1122,14 @@ function DefaultGame::voteTeamDamage(%game, %admin) messageAll('MsgAdminForce', '\c2The Admin %1 has disabled team damage.', %admin.name); $Host::TeamDamageOn = $TeamDamage = 0; %setto = "disabled"; + adminLog(%admin, " has disabled team damage."); } else { messageAll('MsgAdminForce', '\c2The Admin %1 has enabled team damage.', %admin.name); $Host::TeamDamageOn = $TeamDamage = 1; %setto = "enabled"; + adminLog(%admin, " has enabled team damage."); } } else