Skip to content
New issue

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

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

Already on GitHub? # to your account

SkullOwner isn't logged #473

Closed
NedHuman opened this issue Dec 1, 2023 · 2 comments
Closed

SkullOwner isn't logged #473

NedHuman opened this issue Dec 1, 2023 · 2 comments

Comments

@NedHuman
Copy link

NedHuman commented Dec 1, 2023

Issue 2# states that skullOwner isnt logged, seems it is closed now. But when I tried it appears SkullOwner still isn't logged

@Intelli
Copy link
Contributor

Intelli commented Dec 1, 2023

It's logged, but in testing, it sometimes appears to be throwing an error during rollbacks.

Tested placing a player head with the following command: /give @p minecraft:player_head{SkullOwner:Notch}

Upon placing, rolling back, and restoring, it initially came back fine. However, upon attempting to repeat the test multiple times, it started throwing the following error:

[14:46:30 WARN]: java.lang.NullPointerException: Profile name must not be null [14:46:30 WARN]: at java.base/java.util.Objects.requireNonNull(Objects.java:233) [14:46:30 WARN]: at com.mojang.authlib.GameProfile.<init>(GameProfile.java:31) [14:46:30 WARN]: at org.bukkit.craftbukkit.v1_20_R2.block.CraftSkull.setOwningPlayer(CraftSkull.java:106) [14:46:30 WARN]: at CoreProtect.jar//net.coreprotect.database.statement.SkullStatement.getData(SkullStatement.java:50) [14:46:30 WARN]: at CoreProtect.jar//net.coreprotect.consumer.process.SkullUpdateProcess.process(SkullUpdateProcess.java:22) [14:46:30 WARN]: at CoreProtect.jar//net.coreprotect.consumer.process.Process.processConsumer(Process.java:182) [14:46:30 WARN]: at CoreProtect.jar//net.coreprotect.consumer.Consumer.run(Consumer.java:133) [14:46:30 WARN]: at java.base/java.lang.Thread.run(Thread.java:833)

@NedHuman
Copy link
Author

NedHuman commented Dec 2, 2023

It's logged, but in testing, it sometimes appears to be throwing an error during rollbacks.

Tested placing a player head with the following command: /give @p minecraft:player_head{SkullOwner:Notch}

Upon placing, rolling back, and restoring, it initially came back fine. However, upon attempting to repeat the test multiple times, it started throwing the following error:

[14:46:30 WARN]: java.lang.NullPointerException: Profile name must not be null [14:46:30 WARN]: at java.base/java.util.Objects.requireNonNull(Objects.java:233) [14:46:30 WARN]: at com.mojang.authlib.GameProfile.<init>(GameProfile.java:31) [14:46:30 WARN]: at org.bukkit.craftbukkit.v1_20_R2.block.CraftSkull.setOwningPlayer(CraftSkull.java:106) [14:46:30 WARN]: at CoreProtect.jar//net.coreprotect.database.statement.SkullStatement.getData(SkullStatement.java:50) [14:46:30 WARN]: at CoreProtect.jar//net.coreprotect.consumer.process.SkullUpdateProcess.process(SkullUpdateProcess.java:22) [14:46:30 WARN]: at CoreProtect.jar//net.coreprotect.consumer.process.Process.processConsumer(Process.java:182) [14:46:30 WARN]: at CoreProtect.jar//net.coreprotect.consumer.Consumer.run(Consumer.java:133) [14:46:30 WARN]: at java.base/java.lang.Thread.run(Thread.java:833)

any way for me to view the skullowner in /co i? hovering above it doesn't show

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

2 participants