Fixes #424 error with grabskin no name provided
This commit is contained in:
parent
f7f551caa8
commit
7109633a67
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user