Skip to content

Commit 4349c2b

Browse files
committed
Release1.4.0
1 parent 6ce3311 commit 4349c2b

File tree

11 files changed

+21
-186
lines changed

11 files changed

+21
-186
lines changed

HelpSense/API/Features/TimerView.cs

Lines changed: 0 additions & 110 deletions
This file was deleted.

HelpSense/Commands/ChatCommand/AcCommand.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ public class AcCommand : ICommand
1111
{
1212
public string Command => "AC";
1313

14-
public string[] Aliases => ["私聊管理"];
14+
public string[] Aliases => [];
1515

16-
public string Description => "私聊管理";
16+
public string Description => "私聊管理-Talk to Admin";
1717

1818
public bool Execute(ArraySegment<string> arguments, ICommandSender sender, out string response)
1919
{

HelpSense/Commands/ChatCommand/BcCommand.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ public class BcCommand : ICommand
1111
{
1212
public string Command => "BC";
1313

14-
public string[] Aliases => ["广播"];
14+
public string[] Aliases => [];
1515

16-
public string Description => "全服聊天";
16+
public string Description => "全服聊天-PublicChat";
1717

1818
public bool Execute(ArraySegment<string> arguments, ICommandSender sender, out string response)
1919
{

HelpSense/Commands/ChatCommand/CCommand.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ public class CCommand : ICommand
1111
{
1212
public string Command => "C";
1313

14-
public string[] Aliases => ["CC", "队伍广播"];
14+
public string[] Aliases => ["CC"];
1515

16-
public string Description => "队伍聊天";
16+
public string Description => "队伍聊天-TeamChat";
1717

1818
public bool Execute(ArraySegment<string> arguments, ICommandSender sender, out string response)
1919
{

HelpSense/Commands/RescueCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public class RescueCommand : ICommand
1515

1616
public string[] Aliases => ["Rescue", "ZJ"];
1717

18-
public string Description => "卡虚空自救";
18+
public string Description => "卡虚空自救-AntiVoid";
1919

2020
public bool Execute(ArraySegment<string> arguments, ICommandSender sender, out string response)
2121
{

HelpSense/Commands/VersionCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public bool Execute(ArraySegment<string> arguments, ICommandSender sender, out s
4545

4646
//Copyright
4747
sb.AppendLine("-Made By X小左(XLittleLeft)-");
48-
sb.AppendLine("Copyright © X小左 2022-2025");
48+
sb.AppendLine("Copyright © X小左(XLittleLeft) 2022-2025");
4949

5050
response = sb.ToString();
5151
StringBuilderPool.Pool.Return(sb);

HelpSense/ConfigSystem/Properties.cs

Lines changed: 0 additions & 18 deletions
This file was deleted.

HelpSense/ConfigSystem/TranslateConfig.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,11 +201,11 @@ public class TranslateConfig
201201
[Description("SCP-703刷新广播")]
202202
public string SCP703SpawnBroadcast { get; set; } = "<size=80><color=#00ffffff>你是SCP-703</color></size>";
203203
[Description("SCP-703技能介绍")]
204-
public List<string> SCP703SkillIntroduction { get; set; } = new List<string>()
205-
{
204+
public List<string> SCP703SkillIntroduction { get; set; } =
205+
[
206206
"你是 [SCP-703] 你每过一段时间你会获得随机物品",
207207
"距离下次获得物品<color=red>%Time%</color>"
208-
};
208+
];
209209
[Description("SCP-703获得物品Hint提示")]
210210
public string SCP703ReceivedItemHint { get; set; } = "获得一件物品";
211211
[Description("SCP-029刷新广播")]

HelpSense/HelpSense.csproj

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@
4646
<Compile Include="API\InfoExtension.cs" />
4747
<Compile Include="API\Features\Pool\IPool.cs" />
4848
<Compile Include="API\Features\Pool\StringBuilderPool.cs" />
49-
<Compile Include="API\Features\TimerView.cs" />
5049
<Compile Include="API\Serialization\PlayerLog.cs" />
5150
<Compile Include="Commands\ChatCommand\AcCommand.cs" />
5251
<Compile Include="Commands\ChatCommand\BcCommand.cs" />
@@ -77,7 +76,6 @@
7776
<Compile Include="Patches\PositionSyncingPatch.cs" />
7877
<Compile Include="Patches\ReloaderModulePatch.cs" />
7978
<Compile Include="Plugin.cs" />
80-
<Compile Include="ConfigSystem\Properties.cs" />
8179
<Compile Include="Properties\AssemblyInfo.cs" />
8280
</ItemGroup>
8381
<ItemGroup>

HelpSense/Plugin.cs

Lines changed: 8 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)