Fixed no specified locale NPE

This commit is contained in:
Auxilor 2021-08-06 23:34:12 +01:00
parent 5c70bd5d0e
commit 2c3e401e07

View File

@ -27,6 +27,7 @@ public class CommandLocaleDownload extends Subcommand {
return (sender, args) -> {
if (args.isEmpty()) {
sender.sendMessage(this.getPlugin().getLangYml().getMessage("invalid-locale"));
return;
}
Paste paste = Paste.getFromHastebin(args.get(0));