mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-24 11:54:35 +08:00
Allow 1 char name (#3264)
This commit is contained in:
parent
a58ba406eb
commit
8f88a8dcb3
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user