skin error message fix

This commit is contained in:
D3v1s0m 2023-05-28 12:11:45 +05:30
parent 91de1f7f02
commit fa0b82cde5
No known key found for this signature in database
GPG Key ID: 3B6EC35367B8D82E
2 changed files with 2 additions and 2 deletions

@ -51,7 +51,7 @@ public class SkinCommand implements CommandHandler {
String name = context.dumpAllArgs(); String name = context.dumpAllArgs();
context.send(Component.text("Fetching skin \"" + name + "\"...", NamedTextColor.GREEN)); context.send(Component.text("Fetching skin \"" + name + "\"...", NamedTextColor.GREEN));
PrefetchedDescriptor.forPlayer(skinCache, name).thenAccept(skin -> { PrefetchedDescriptor.forPlayer(skinCache, name).thenAccept(skin -> {
if (skin == null) { if (skin.getSkin() == null) {
context.send(Component.text("Failed to fetch skin, are you sure the player name is valid?", NamedTextColor.RED)); context.send(Component.text("Failed to fetch skin, are you sure the player name is valid?", NamedTextColor.RED));
return; return;
} }

@ -61,7 +61,7 @@ public class SkinCache {
} }
} catch (IOException exception) { } catch (IOException exception) {
if (!configManager.getConfig().disableSkinFetcherWarnings()) { if (!configManager.getConfig().disableSkinFetcherWarnings()) {
logger.warning("Failed to uuid from player name:"); logger.warning("Failed to get uuid from player name:");
exception.printStackTrace(); exception.printStackTrace();
} }
} finally { } finally {