delete commandargumentexception and return usage instead

This commit is contained in:
spacerocket62
2022-02-06 19:53:35 -08:00
parent e328cf29e5
commit 282da7fdbb
9 changed files with 11 additions and 26 deletions

View File

@ -178,10 +178,8 @@ public abstract class PlexCommand extends Command implements PluginIdentifiableC
{
send(sender, component);
}
} catch (CommandArgumentException ex)
{
send(sender, getUsage());
} catch (PlayerNotFoundException | CommandFailException
}
catch (PlayerNotFoundException | CommandFailException
| ConsoleOnlyException | ConsoleMustDefinePlayerException
| PlayerNotBannedException ex)
{