Closed WiIIiam278 closed 1 month ago
Should prob just return a sensible string instead of throwing an exception.
14.09.2024 - 16:10:15 - [TAB v5.0.0-SNAPSHOT] Player placeholder %huskclaims_claim_blocks% generated an error when setting for player (snip) 14.09.2024 - 16:10:15 - java.lang.IllegalArgumentException: Could not find claim blocks for UUID: (snip) 14.09.2024 - 16:10:15 - at HuskClaims-Paper-1.4.jar//net.william278.huskclaims.user.ClaimBlocksManager.lambda$getClaimBlocks$0(ClaimBlocksManager.java:51) 14.09.2024 - 16:10:15 - at java.base/java.util.Optional.orElseThrow(Optional.java:403) 14.09.2024 - 16:10:15 - at HuskClaims-Paper-1.4.jar//net.william278.huskclaims.user.ClaimBlocksManager.getClaimBlocks(ClaimBlocksManager.java:51) 14.09.2024 - 16:10:15 - at HuskClaims-Paper-1.4.jar//net.william278.huskclaims.user.ClaimBlocksManager.getClaimBlocks(ClaimBlocksManager.java:55) 14.09.2024 - 16:10:15 - at HuskClaims-Paper-1.4.jar//net.william278.huskclaims.hook.BukkitPlaceholderAPIHook$HuskClaimsExpansion$Placeholder.lambda$static$0(BukkitPlaceholderAPIHook.java:95) 14.09.2024 - 16:10:15 - at HuskClaims-Paper-1.4.jar//net.william278.huskclaims.hook.BukkitPlaceholderAPIHook$HuskClaimsExpansion$Placeholder.resolve(BukkitPlaceholderAPIHook.java:145) 14.09.2024 - 16:10:15 - at HuskClaims-Paper-1.4.jar//net.william278.huskclaims.hook.BukkitPlaceholderAPIHook$HuskClaimsExpansion$Placeholder.lambda$format$15(BukkitPlaceholderAPIHook.java:129) 14.09.2024 - 16:10:15 - at java.base/java.util.Optional.map(Optional.java:260) 14.09.2024 - 16:10:15 - at HuskClaims-Paper-1.4.jar//net.william278.huskclaims.hook.BukkitPlaceholderAPIHook$HuskClaimsExpansion$Placeholder.format(BukkitPlaceholderAPIHook.java:129) 14.09.2024 - 16:10:15 - at HuskClaims-Paper-1.4.jar//net.william278.huskclaims.hook.BukkitPlaceholderAPIHook$HuskClaimsExpansion.onRequest(BukkitPlaceholderAPIHook.java:90) 14.09.2024 - 16:10:15 - at PlaceholderAPI-2.11.6.jar//me.clip.placeholderapi.replacer.CharsReplacer.apply(CharsReplacer.java:119) 14.09.2024 - 16:10:15 - at PlaceholderAPI-2.11.6.jar//me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:71) 14.09.2024 - 16:10:15 - at PlaceholderAPI-2.11.6.jar//me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:99) 14.09.2024 - 16:10:15 - at TAB-Bridge-6.0.0-SNAPSHOT.jar//me.neznamy.tab.bridge.bukkit.platform.BukkitPlatform.parseWithNestedPlaceholders(BukkitPlatform.java:76) 14.09.2024 - 16:10:15 - at TAB-Bridge-6.0.0-SNAPSHOT.jar//me.neznamy.tab.bridge.bukkit.platform.BukkitPlatform.lambda$createPlaceholder$2(BukkitPlatform.java:66) 14.09.2024 - 16:10:15 - at TAB-Bridge-6.0.0-SNAPSHOT.jar//me.neznamy.tab.bridge.shared.placeholder.PlayerPlaceholder.request(PlayerPlaceholder.java:65) 14.09.2024 - 16:10:15 - at java.base/java.util.Map.computeIfAbsent(Map.java:1066) 14.09.2024 - 16:10:15 - at TAB-Bridge-6.0.0-SNAPSHOT.jar//me.neznamy.tab.bridge.shared.placeholder.PlayerPlaceholder.getLastValue(PlayerPlaceholder.java:82) 14.09.2024 - 16:10:15 - at TAB-Bridge-6.0.0-SNAPSHOT.jar//me.neznamy.tab.bridge.shared.DataBridge.parsePlaceholders(DataBridge.java:189) 14.09.2024 - 16:10:15 - at TAB-Bridge-6.0.0-SNAPSHOT.jar//me.neznamy.tab.bridge.shared.DataBridge.processPluginMessage(DataBridge.java:94) 14.09.2024 - 16:10:15 - at TAB-Bridge-6.0.0-SNAPSHOT.jar//me.neznamy.tab.bridge.bukkit.BukkitBridge.lambda$onPluginMessageReceived$2(BukkitBridge.java:79) 14.09.2024 - 16:10:15 - at TAB-Bridge-6.0.0-SNAPSHOT.jar//me.neznamy.tab.bridge.shared.TABBridge.lambda$submitTask$0(TABBridge.java:58) 14.09.2024 - 16:10:15 - at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572) 14.09.2024 - 16:10:15 - at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317) 14.09.2024 - 16:10:15 - at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304) 14.09.2024 - 16:10:15 - at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) 14.09.2024 - 16:10:15 - at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) 14.09.2024 - 16:10:15 - at java.base/java.lang.Thread.run(Thread.java:1583)
Should prob just return a sensible string instead of throwing an exception.