Skip to content

[BUG] Error log text could use handling if player no exist #87

@DereC4

Description

@DereC4

Bug Report Template

Thank you for helping us improve PlayTimes by reporting a bug! Please fill out the form below to help us diagnose and fix the issue.


Basic Information

Minecraft Version:

  • Purpur 1.21.8

PlayTimes Version:

  • Please run /pt version .
Image

Describe the Bug

Description:
When attempting to fetch the player information for a player that isnt real, the plugin is unable to find the player's profile, resulting in the error Couldn't find profile with name: x_sf1a (correct user would be x_sxf1a). The exception traceback points to a MinecraftClientHttpException caused by a failure to retrieve the profile data from Mojang's servers.


Additional Context

[03:41:57 WARN]: Couldn't find profile with name: x_sxf1a
com.mojang.authlib.exceptions.MinecraftClientHttpException: Couldn't find any profile with name x_sf1a
        at com.mojang.authlib.minecraft.client.MinecraftClient.readInputStream(MinecraftClient.java:103) ~[authlib-6.0.58.jar:?]
        at com.mojang.authlib.minecraft.client.MinecraftClient.get(MinecraftClient.java:56) ~[authlib-6.0.58.jar:?]
        at com.mojang.authlib.yggdrasil.YggdrasilGameProfileRepository.findProfileByName(YggdrasilGameProfileRepository.java:116) ~[purpur-1.21.8.jar:?]
        at net.minecraft.server.players.GameProfileCache.lookupGameProfile(GameProfileCache.java:83) ~[purpur-1.21.8.jar:1.21.8-2486-254407d]
        at net.minecraft.server.players.GameProfileCache.get(GameProfileCache.java:147) ~[purpur-1.21.8.jar:1.21.8-2486-254407d]
        at org.bukkit.craftbukkit.CraftServer.getOfflinePlayer(CraftServer.java:2140) ~[purpur-1.21.8.jar:1.21.8-2486-254407d]
        at PlayTimes-1.6.2b.jar/me.codedred.playtimes.server.ServerOnline.getUUID(ServerOnline.java:19) ~[PlayTimes-1.6.2b.jar:?]
        at PlayTimes-1.6.2b.jar/me.codedred.playtimes.server.ServerManager.getUUID(ServerManager.java:39) ~[PlayTimes-1.6.2b.jar:?]
        at PlayTimes-1.6.2b.jar/me.codedred.playtimes.commands.Time$2.run(Time.java:292) ~[PlayTimes-1.6.2b.jar:?]
        at org.bukkit.craftbukkit.scheduler.CraftTask.run(CraftTask.java:78) ~[purpur-1.21.8.jar:1.21.8-2486-254407d]
        at org.bukkit.craftbukkit.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57) ~[purpur-1.21.8.jar:1.21.8-2486-254407d]
        at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) ~[purpur-1.21.8.jar:?]
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) ~[?:?]
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) ~[?:?]
        at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]
[03:41:57 INFO]: [PlayTime] Player not found.

For more information and updates, visit PlayTimes on Spigot.

Disclaimer

Please note that responses to bug reports may take up to 72 hours or longer. PlayTimes is a FREE and OPEN-SOURCE plugin, and we greatly appreciate community involvement in its development. As PlayTimes is a side project and hobby for CodedRed, updates may occasionally take longer than anticipated. We sincerely thank you for using PlayTimes and for your understanding and patience.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions