mirror of
https://github.com/plexusorg/Plex.git
synced 2025-07-04 16:56:40 +00:00
delete commandargumentexception and return usage instead
This commit is contained in:
@ -5,7 +5,6 @@ import com.google.common.collect.Lists;
|
||||
import dev.plex.command.PlexCommand;
|
||||
import dev.plex.command.annotation.CommandParameters;
|
||||
import dev.plex.command.annotation.CommandPermissions;
|
||||
import dev.plex.command.exception.CommandArgumentException;
|
||||
import dev.plex.rank.enums.Rank;
|
||||
import dev.plex.util.MojangUtils;
|
||||
import dev.plex.util.PlexLog;
|
||||
@ -36,7 +35,7 @@ public class NameHistoryCMD extends PlexCommand
|
||||
{
|
||||
if (args.length != 1)
|
||||
{
|
||||
throw new CommandArgumentException();
|
||||
return usage(getUsage());
|
||||
}
|
||||
String username = args[0];
|
||||
|
||||
|
Reference in New Issue
Block a user