skin error message fix
This commit is contained in:
parent
91de1f7f02
commit
fa0b82cde5
2 changed files with 2 additions and 2 deletions
plugin/src/main/java/lol/pyr/znpcsplus
|
@ -51,7 +51,7 @@ public class SkinCommand implements CommandHandler {
|
|||
String name = context.dumpAllArgs();
|
||||
context.send(Component.text("Fetching skin \"" + name + "\"...", NamedTextColor.GREEN));
|
||||
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));
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -61,7 +61,7 @@ public class SkinCache {
|
|||
}
|
||||
} catch (IOException exception) {
|
||||
if (!configManager.getConfig().disableSkinFetcherWarnings()) {
|
||||
logger.warning("Failed to uuid from player name:");
|
||||
logger.warning("Failed to get uuid from player name:");
|
||||
exception.printStackTrace();
|
||||
}
|
||||
} finally {
|
||||
|
|
Loading…
Reference in a new issue