Improve command codestyle (#3337)

Co-authored-by: MD <1917406+md678685@users.noreply.github.com>

Fixes #3579 (async `/skull` command)
Fixes #3336 (improve codestyle of commands)
Partially addresses #3339 (`/spawn` and `/setspawn` are now hidden from tabcomplete)
Closes #3087 (`/paytoggle` is now a loop command)
This commit is contained in:
Josh Roy 2020-08-11 14:09:22 -04:00 committed by GitHub
parent 14c6c2a055
commit f6cb9ff470
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
96 changed files with 1123 additions and 1448 deletions

View file

@ -19,7 +19,7 @@ public class Commandkill extends EssentialsLoopCommand {
@Override
public void run(final Server server, final CommandSource sender, final String commandLabel, final String[] args) throws Exception {
if (args.length < 1) {
if (args.length == 0) {
throw new NotEnoughArgumentsException();
}