Fixed no specified locale NPE
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user