Skip to content

Commit

Permalink
Release1.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
XLittleLeft committed Jan 25, 2025
1 parent 6ce3311 commit 4349c2b
Show file tree
Hide file tree
Showing 11 changed files with 21 additions and 186 deletions.
110 changes: 0 additions & 110 deletions HelpSense/API/Features/TimerView.cs

This file was deleted.

4 changes: 2 additions & 2 deletions HelpSense/Commands/ChatCommand/AcCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ public class AcCommand : ICommand
{
public string Command => "AC";

public string[] Aliases => ["私聊管理"];
public string[] Aliases => [];

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

public bool Execute(ArraySegment<string> arguments, ICommandSender sender, out string response)
{
Expand Down
4 changes: 2 additions & 2 deletions HelpSense/Commands/ChatCommand/BcCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ public class BcCommand : ICommand
{
public string Command => "BC";

public string[] Aliases => ["广播"];
public string[] Aliases => [];

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

public bool Execute(ArraySegment<string> arguments, ICommandSender sender, out string response)
{
Expand Down
4 changes: 2 additions & 2 deletions HelpSense/Commands/ChatCommand/CCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ public class CCommand : ICommand
{
public string Command => "C";

public string[] Aliases => ["CC", "队伍广播"];
public string[] Aliases => ["CC"];

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

public bool Execute(ArraySegment<string> arguments, ICommandSender sender, out string response)
{
Expand Down
2 changes: 1 addition & 1 deletion HelpSense/Commands/RescueCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class RescueCommand : ICommand

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

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

public bool Execute(ArraySegment<string> arguments, ICommandSender sender, out string response)
{
Expand Down
2 changes: 1 addition & 1 deletion HelpSense/Commands/VersionCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public bool Execute(ArraySegment<string> arguments, ICommandSender sender, out s

//Copyright
sb.AppendLine("-Made By X小左(XLittleLeft)-");
sb.AppendLine("Copyright © X小左 2022-2025");
sb.AppendLine("Copyright © X小左(XLittleLeft) 2022-2025");

response = sb.ToString();
StringBuilderPool.Pool.Return(sb);
Expand Down
18 changes: 0 additions & 18 deletions HelpSense/ConfigSystem/Properties.cs

This file was deleted.

6 changes: 3 additions & 3 deletions HelpSense/ConfigSystem/TranslateConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -201,11 +201,11 @@ public class TranslateConfig
[Description("SCP-703刷新广播")]
public string SCP703SpawnBroadcast { get; set; } = "<size=80><color=#00ffffff>你是SCP-703</color></size>";
[Description("SCP-703技能介绍")]
public List<string> SCP703SkillIntroduction { get; set; } = new List<string>()
{
public List<string> SCP703SkillIntroduction { get; set; } =
[
"你是 [SCP-703] 你每过一段时间你会获得随机物品",
"距离下次获得物品<color=red>%Time%</color>"
};
];
[Description("SCP-703获得物品Hint提示")]
public string SCP703ReceivedItemHint { get; set; } = "获得一件物品";
[Description("SCP-029刷新广播")]
Expand Down
2 changes: 0 additions & 2 deletions HelpSense/HelpSense.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
<Compile Include="API\InfoExtension.cs" />
<Compile Include="API\Features\Pool\IPool.cs" />
<Compile Include="API\Features\Pool\StringBuilderPool.cs" />
<Compile Include="API\Features\TimerView.cs" />
<Compile Include="API\Serialization\PlayerLog.cs" />
<Compile Include="Commands\ChatCommand\AcCommand.cs" />
<Compile Include="Commands\ChatCommand\BcCommand.cs" />
Expand Down Expand Up @@ -77,7 +76,6 @@
<Compile Include="Patches\PositionSyncingPatch.cs" />
<Compile Include="Patches\ReloaderModulePatch.cs" />
<Compile Include="Plugin.cs" />
<Compile Include="ConfigSystem\Properties.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
Expand Down
51 changes: 8 additions & 43 deletions HelpSense/Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,11 @@ public class Plugin
public ushort SCP1056Id = 0;
public ItemBase SCP1056Base;

public static System.Version PluginVersion => new(1, 3, 9);
public static DateTime LastUpdateTime => new(2025, 1, 25, 17, 00, 00);
public static System.Version PluginVersion => new(1, 4, 0);
public static DateTime LastUpdateTime => new(2025, 1, 25, 23, 04, 00);
public static System.Version RequiredGameVersion => new(14, 0, 2);

[PluginEntryPoint("HelpSense", "1.3.9", "HelpSense综合服务器插件", "X小左")]
[PluginEntryPoint("HelpSense", "1.4.0", "HelpSense综合服务器插件", "X小左")]
private void LoadPlugin()
{
Instance = this;
Expand All @@ -125,6 +125,7 @@ public void OnWaitingForPlayers(WaitingForPlayersEvent ev)
SeeSpawned = false;
SpawnLeader = false;
SpawnSCP2936 = false;

if (Config.EnableRoundWaitingLobby)
{
try
Expand Down Expand Up @@ -357,12 +358,10 @@ void OnPlayerEscape(PlayerEscapeEvent ev)
public void OnRoundStarted(RoundStartEvent ev)
{
WaveManager.OnWaveSpawned += EventHelper.OnTeamRespawn;
Log.Debug("订阅OnWaveSpawned事件", Config.Debug);

if (Config.SavePlayersInfo)
{
Timing.RunCoroutine(InfoExtension.CollectInfo());
Log.Debug("开始记录玩家信息", Config.Debug);
}

if (Config.EnableSCP703)
Expand Down Expand Up @@ -863,40 +862,6 @@ void OnPlayerSpawn(PlayerSpawnEvent ev)
});
}
}
//TODO:子弹Event
/*[PluginEvent]
bool OnPlayerReloadWeapon(PlayerReloadWeaponEvent ev)
{
Player player = ev.Player;
var firearm = ev.Firearm;
if (Config.InfiniteAmmo)
{
if (firearm.ItemTypeId is ItemType.ParticleDisruptor) return true;
switch (Config.InfiniteAmmoType)
{
case InfiniteAmmoType.Old:
player.SetAmmo(firearm.AmmoType, (ushort)player.GetAmmoLimit(firearm.AmmoType));
Timing.CallDelayed(4f, () =>
{
player.SetAmmo(firearm.AmmoType, (ushort)player.GetAmmoLimit(firearm.AmmoType));
});
break;
case InfiniteAmmoType.Normal:
if (firearm.Status.Ammo != firearm.AmmoManagerModule.MaxAmmo)
{
player.ReloadWeapon();
firearm.Status = new FirearmStatus(firearm.AmmoManagerModule.MaxAmmo, firearm.Status.Flags, firearm.GetCurrentAttachmentsCode());
return false;
}
break;
case InfiniteAmmoType.Moment:
firearm.Status = new FirearmStatus(firearm.AmmoManagerModule.MaxAmmo, firearm.Status.Flags, firearm.GetCurrentAttachmentsCode());
return false;
}
}
return true;
}*/

[PluginEvent]
void OnPlayerShotWeapon(PlayerShotWeaponEvent ev)
Expand Down Expand Up @@ -1171,16 +1136,16 @@ void OnRemoteAdminCommandExecuted(RemoteAdminCommandExecutedEvent ev)
{
if (!File.Exists(Config.AdminLogPath))
{
FileStream fs1 = new FileStream(Config.AdminLogPath, FileMode.Create, FileAccess.Write);
StreamWriter sw = new StreamWriter(fs1);
FileStream fs1 = new(Config.AdminLogPath, FileMode.Create, FileAccess.Write);
StreamWriter sw = new(fs1);
sw.WriteLine(note);
sw.Close();
fs1.Close();
}
else
{
FileStream fs = new FileStream(Config.AdminLogPath, FileMode.Append, FileAccess.Write);
StreamWriter sr = new StreamWriter(fs);
FileStream fs = new(Config.AdminLogPath, FileMode.Append, FileAccess.Write);
StreamWriter sr = new(fs);
sr.WriteLine(note);
sr.Close();
fs.Close();
Expand Down
4 changes: 2 additions & 2 deletions HelpSense/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
//通过使用 "*",如下所示:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.3.9")]
[assembly: AssemblyFileVersion("1.3.9")]
[assembly: AssemblyVersion("1.4.0")]
[assembly: AssemblyFileVersion("1.4.0")]

0 comments on commit 4349c2b

Please sign in to comment.