Fix some typos, don't use MineSkinAPI name

This commit is contained in:
libraryaddict
2020-01-11 13:37:45 +13:00
parent 7f725d26bd
commit db29352948
6 changed files with 14 additions and 18 deletions

View File

@@ -90,18 +90,13 @@ public class GrabSkinCommand implements CommandExecutor {
String nName = name;
if (nName == null) {
if (profile.getName() != null && profile.getName().length() > 0 &&
!DisguiseUtilities.hasGameProfile(profile.getName())) {
nName = profile.getName();
} else {
int i = 1;
int i = 1;
while (DisguiseUtilities.hasGameProfile("skin" + i)) {
i++;
}
nName = "skin" + i;
while (DisguiseUtilities.hasGameProfile("skin" + i)) {
i++;
}
nName = "skin" + i;
}
if (profile.getName() == null || !profile.getName().equals(nName)) {