@@ -102,11 +102,11 @@ public class Plugin
102102 public ushort SCP1056Id = 0 ;
103103 public ItemBase SCP1056Base ;
104104
105- public static System . Version PluginVersion => new ( 1 , 3 , 9 ) ;
106- public static DateTime LastUpdateTime => new ( 2025 , 1 , 25 , 17 , 00 , 00 ) ;
105+ public static System . Version PluginVersion => new ( 1 , 4 , 0 ) ;
106+ public static DateTime LastUpdateTime => new ( 2025 , 1 , 25 , 23 , 04 , 00 ) ;
107107 public static System . Version RequiredGameVersion => new ( 14 , 0 , 2 ) ;
108108
109- [ PluginEntryPoint ( "HelpSense" , "1.3.9 " , "HelpSense综合服务器插件" , "X小左" ) ]
109+ [ PluginEntryPoint ( "HelpSense" , "1.4.0 " , "HelpSense综合服务器插件" , "X小左" ) ]
110110 private void LoadPlugin ( )
111111 {
112112 Instance = this ;
@@ -125,6 +125,7 @@ public void OnWaitingForPlayers(WaitingForPlayersEvent ev)
125125 SeeSpawned = false ;
126126 SpawnLeader = false ;
127127 SpawnSCP2936 = false ;
128+
128129 if ( Config . EnableRoundWaitingLobby )
129130 {
130131 try
@@ -357,12 +358,10 @@ void OnPlayerEscape(PlayerEscapeEvent ev)
357358 public void OnRoundStarted ( RoundStartEvent ev )
358359 {
359360 WaveManager . OnWaveSpawned += EventHelper . OnTeamRespawn ;
360- Log . Debug ( "订阅OnWaveSpawned事件" , Config . Debug ) ;
361361
362362 if ( Config . SavePlayersInfo )
363363 {
364364 Timing . RunCoroutine ( InfoExtension . CollectInfo ( ) ) ;
365- Log . Debug ( "开始记录玩家信息" , Config . Debug ) ;
366365 }
367366
368367 if ( Config . EnableSCP703 )
@@ -863,40 +862,6 @@ void OnPlayerSpawn(PlayerSpawnEvent ev)
863862 } ) ;
864863 }
865864 }
866- //TODO:子弹Event
867- /*[PluginEvent]
868- bool OnPlayerReloadWeapon(PlayerReloadWeaponEvent ev)
869- {
870- Player player = ev.Player;
871- var firearm = ev.Firearm;
872-
873- if (Config.InfiniteAmmo)
874- {
875- if (firearm.ItemTypeId is ItemType.ParticleDisruptor) return true;
876- switch (Config.InfiniteAmmoType)
877- {
878- case InfiniteAmmoType.Old:
879- player.SetAmmo(firearm.AmmoType, (ushort)player.GetAmmoLimit(firearm.AmmoType));
880- Timing.CallDelayed(4f, () =>
881- {
882- player.SetAmmo(firearm.AmmoType, (ushort)player.GetAmmoLimit(firearm.AmmoType));
883- });
884- break;
885- case InfiniteAmmoType.Normal:
886- if (firearm.Status.Ammo != firearm.AmmoManagerModule.MaxAmmo)
887- {
888- player.ReloadWeapon();
889- firearm.Status = new FirearmStatus(firearm.AmmoManagerModule.MaxAmmo, firearm.Status.Flags, firearm.GetCurrentAttachmentsCode());
890- return false;
891- }
892- break;
893- case InfiniteAmmoType.Moment:
894- firearm.Status = new FirearmStatus(firearm.AmmoManagerModule.MaxAmmo, firearm.Status.Flags, firearm.GetCurrentAttachmentsCode());
895- return false;
896- }
897- }
898- return true;
899- }*/
900865
901866 [ PluginEvent ]
902867 void OnPlayerShotWeapon ( PlayerShotWeaponEvent ev )
@@ -1171,16 +1136,16 @@ void OnRemoteAdminCommandExecuted(RemoteAdminCommandExecutedEvent ev)
11711136 {
11721137 if ( ! File . Exists ( Config . AdminLogPath ) )
11731138 {
1174- FileStream fs1 = new FileStream ( Config . AdminLogPath , FileMode . Create , FileAccess . Write ) ;
1175- StreamWriter sw = new StreamWriter ( fs1 ) ;
1139+ FileStream fs1 = new ( Config . AdminLogPath , FileMode . Create , FileAccess . Write ) ;
1140+ StreamWriter sw = new ( fs1 ) ;
11761141 sw . WriteLine ( note ) ;
11771142 sw . Close ( ) ;
11781143 fs1 . Close ( ) ;
11791144 }
11801145 else
11811146 {
1182- FileStream fs = new FileStream ( Config . AdminLogPath , FileMode . Append , FileAccess . Write ) ;
1183- StreamWriter sr = new StreamWriter ( fs ) ;
1147+ FileStream fs = new ( Config . AdminLogPath , FileMode . Append , FileAccess . Write ) ;
1148+ StreamWriter sr = new ( fs ) ;
11841149 sr . WriteLine ( note ) ;
11851150 sr . Close ( ) ;
11861151 fs . Close ( ) ;
0 commit comments