skin error message fix
This commit is contained in:
parent
91de1f7f02
commit
fa0b82cde5
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 {
|
||||||
|
|
Loading…
Reference in a new issue