Allow 1 char name (#3264)

This commit is contained in:
pop4959 2020-05-12 21:27:33 -07:00 committed by GitHub
parent a58ba406eb
commit 8f88a8dcb3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,7 +20,7 @@ public class Commandmsg extends EssentialsLoopCommand {
@Override
public void run(Server server, CommandSource sender, String commandLabel, String[] args) throws Exception {
if (args.length < 2 || args[0].trim().length() < 2 || args[1].trim().isEmpty()) {
if (args.length < 2 || args[0].trim().isEmpty() || args[1].trim().isEmpty()) {
throw new NotEnoughArgumentsException();
}