-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
[API] Statistics of Player for PLAYER_KILLS and DEATHS still return 0 #11855
Comments
The join event might be too early for that data to be loaded properly. Did you try it in another event too? |
@Malfrador I tried on another ways (like a custom command with CommandExecutor), I have the same problem. It looks like that it don't come from a specific event or whatever what. Maybe a patch from Paper who overrided the Player class ? |
Strange i test that in a fresh server and just get the value for deaths. (need people for test the other stat) |
Yes, I'm sure. I only have this in my plugin. |
I am also not able to reproduce this. Do you by any chance have statistic saving disabled? You can disable that in spigot.yml, |
No, I didn't disabled the saves :
|
Still strange if you test in a fresh server with new map and well adding to the stats (like using kill) that output not change... i still cannot replicate that. |
Expected behavior
It should return the good number of theses stats
Observed/Actual behavior
``Theses stats return 0 when I'm logging then into messages:
The code :
Steps/models to reproduce
Just copy and paste my code, and you will get 0
Plugin and Datapack List
Plugin: PvPBox (my custom plugin which contains the problem, I only have this into my PlayerJoin)
Datapack : N/A, I just generated a simple Paper Server into 1.21.4 with build 63
Paper version
This server is running Paper version 1.21.4-63-main@feb8756 (2024-12-28T21:39:34Z) (Implementing API version 1.21.4-R0.1-SNAPSHOT)
Other
My params to launch my server :
java -Xmx1G -Xms1G -XX:+AlwaysPreTouch -XX:+DisableExplicitGC -XX:+ParallelRefProcEnabled -XX:+PerfDisableSharedMem -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1HeapRegionSize=8M -XX:G1HeapWastePercent=5 -XX:G1MaxNewSizePercent=40 -XX:G1MixedGCCountTarget=4 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1NewSizePercent=30 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:G1ReservePercent=20 -XX:InitiatingHeapOccupancyPercent=15 -XX:MaxGCPauseMillis=200 -XX:MaxTenuringThreshold=1 -XX:SurvivorRatio=32 -Dusing.aikars.flags=https://mcflags.emc.gs -Daikars.new.flags=true -jar spigot.jar --nogui
The text was updated successfully, but these errors were encountered: