Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ProfileDataController中invalidateCache中对BackpackCache的处理疑似没有生效 #977

Open
m1919810 opened this issue Dec 6, 2024 · 2 comments
Labels
🐞 Bug 抓虫子

Comments

@m1919810
Copy link

m1919810 commented Dec 6, 2024

问题描述

image
这是代码

该方法仅在PlayerQuitEvent的handler中调用

但是Bukkit.getOfflinePlayer(UUID.fromString(pUuid)).isOnline() 在我的若干次测试中均为true,进而不会执行backpackCache.invalidate(pUuid);

不过这看起来并没有问题,或许我们可以直接删除这个task(?)

问题复现率

必现

复现步骤

服务端类型

Spigot

Minecraft 版本

1.20.x

Slimefun 版本

Slimefun 2024.09

其他插件信息

No response

补充信息

No response

@m1919810 m1919810 added the 🐞 Bug 抓虫子 label Dec 6, 2024
@m1919810
Copy link
Author

m1919810 commented Dec 6, 2024

我目前正在测试一种基于双开背包的刷物计划,但是该cache不刷新导致玩家根本无法通过退出重新来重新载入背包的内容

@StarWishsama
Copy link
Member

Checks if this player is currently online It should be noted that this will return true if any instance of this player is online! This instance may have disconnected. Paper

孩子们想换 Paper 了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 Bug 抓虫子
Projects
None yet
Development

No branches or pull requests

2 participants