mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-07-02 20:11:44 +00:00
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:
parent
14c6c2a055
commit
f6cb9ff470
96 changed files with 1123 additions and 1448 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue