forked from lishid/OpenInv
-
Notifications
You must be signed in to change notification settings - Fork 51
Open
Description
According to Paper, the use of OfflinePlayer asserts this response, even if you surround the code in a try/catch. Since I would rather not assume what changes you'd prefer or prioritize, I think an alternative should be implemented to minimize or mitigate the need for this verbose exception to be printed since it oftentimes isn't useful, given the user in-game is already notified that it was unable to find an associated user or it does inevitably identify the correct user.
[02:43:45] [Region Scheduler Thread #20/INFO]: Simon70 issued server command: /oe leyeffer
[02:43:45] [Folia Async Scheduler Thread #0/WARN]: Couldn't find profile with name: leyeffer
com.mojang.authlib.exceptions.MinecraftClientHttpException: Couldn't find any profile with name leyeffer
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) ~[canvas-1.21.8.jar:?]
at net.minecraft.server.players.GameProfileCache.lookupGameProfile(GameProfileCache.java:89) ~[canvas-1.21.8.jar:1.21.8-DEV-e040cc5]
at net.minecraft.server.players.GameProfileCache.get(GameProfileCache.java:156) ~[canvas-1.21.8.jar:1.21.8-DEV-e040cc5]
at org.bukkit.craftbukkit.CraftServer.getOfflinePlayer(CraftServer.java:2111) ~[canvas-1.21.8.jar:1.21.8-DEV-e040cc5]
at OpenInv-5.1.15.jar/com.lishid.openinv.util.PlayerLoader.matchExact(PlayerLoader.java:138) ~[OpenInv-5.1.15.jar:?]
at OpenInv-5.1.15.jar/com.lishid.openinv.util.PlayerLoader.match(PlayerLoader.java:149) ~[OpenInv-5.1.15.jar:?]
at OpenInv-5.1.15.jar/com.lishid.openinv.command.OpenInvCommand.getTarget(OpenInvCommand.java:128) ~[OpenInv-5.1.15.jar:?]
at OpenInv-5.1.15.jar/com.lishid.openinv.command.PlayerLookupCommand$1.run(PlayerLookupCommand.java:66) ~[OpenInv-5.1.15.jar:?]
at OpenInv-5.1.15.jar/com.github.jikoo.openinv.lib.nahu.scheduler-wrapper.implementation.folia.FoliaWrappedScheduler.lambda$runTaskAsynchronously$2(FoliaWrappedScheduler.java:101) ~[OpenInv-5.1.15.jar:?]
at io.papermc.paper.threadedregions.scheduler.FoliaAsyncScheduler$AsyncScheduledTask.run(FoliaAsyncScheduler.java:226) ~[canvas-1.21.8.jar:?]
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1090) ~[?:?]
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:614) ~[?:?]
at java.base/java.lang.VirtualThread.run(VirtualThread.java:456) ~[?:?]Metadata
Metadata
Assignees
Labels
No labels