2 Commits

Author SHA1 Message Date
Yue-bin
f193d8a805 fix(playermanager): 修复加好友按钮显示问题并更新版本号至4.0.5
Some checks failed
Publish Release / build (push) Failing after 3s
- 在readme.md中添加v4.0.5更新日志,记录修复了加好友按钮始终不显示的问题
- 更新stick.plugins.playermanager.csproj中的版本号从4.0.4到4.0.5
2026-05-31 01:59:19 +08:00
Yue-bin
00960eb3f7 fix(Gui): 修复添加好友按钮的本地玩家检查逻辑
- 将 PlayerManager.IsLocalPlayer(PlayerManager.LocalPlayer)
  修改为 PlayerManager.IsLocalPlayer(player)
- 确保正确检查目标玩家是否为本地玩家,而非始终检查本地玩家自己
- 避免好友列表中出现本地玩家的错误情况
2026-05-31 01:58:30 +08:00
3 changed files with 6 additions and 2 deletions

View File

@@ -13,7 +13,7 @@ public static class AddFriendButton
Name = "Add Friend", Name = "Add Friend",
GetText = player => "加好友", GetText = player => "加好友",
Condition = player => Condition = player =>
!PlayerManager.IsLocalPlayer(PlayerManager.LocalPlayer) !PlayerManager.IsLocalPlayer(player)
&& !player.IsFriend, && !player.IsFriend,
OnClick = player => OnClick = player =>
{ {

View File

@@ -19,6 +19,10 @@
## 更新日志 ## 更新日志
### v4.0.5
1. 修复了加好友按钮始终不显示的问题 *难道他真的是猪??*
### v4.0.4 ### v4.0.4
1. 房间列表现在在房间内也显示,但是点击无效 1. 房间列表现在在房间内也显示,但是点击无效

View File

@@ -4,7 +4,7 @@
<TargetFramework>net35</TargetFramework> <TargetFramework>net35</TargetFramework>
<AssemblyName>stick.plugins.playermanager</AssemblyName> <AssemblyName>stick.plugins.playermanager</AssemblyName>
<Product>PlayerManager</Product> <Product>PlayerManager</Product>
<Version>4.0.4</Version> <Version>4.0.5</Version>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<LangVersion>latest</LangVersion> <LangVersion>latest</LangVersion>
<RestoreAdditionalProjectSources> <RestoreAdditionalProjectSources>