Fixes #424 error with grabskin no name provided

This commit is contained in:
libraryaddict 2020-01-22 20:49:01 +13:00
parent f7f551caa8
commit 7109633a67
No known key found for this signature in database
GPG Key ID: 052E4FBCD257AEA4

View File

@ -54,7 +54,7 @@ public class GrabSkinCommand implements CommandExecutor {
}
if (tName == null && args[0].matches("(.*\\/)?[a-zA-Z0-9_-]{3,20}\\.png")) {
tName = tName.substring(args[0].lastIndexOf("/") + 1, args[0].lastIndexOf("."));
tName = args[0].substring(args[0].lastIndexOf("/") + 1, args[0].lastIndexOf("."));
if (DisguiseUtilities.hasGameProfile(tName)) {
tName = null;