mirror of
https://github.com/GeorgH93/Minepacks.git
synced 2025-02-26 03:21:50 +01:00
Show help if no parameter is used from console command (Fixes #50)
This commit is contained in:
parent
519b27713f
commit
16a658e739
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2019 GeorgH93
|
||||
* Copyright (C) 2020 GeorgH93
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@ -106,6 +106,10 @@ public boolean onCommand(@NotNull CommandSender sender, @NotNull Command command
|
||||
return true;
|
||||
}
|
||||
}
|
||||
else if(args.length == 0) // If the command was executed in the console without parameters
|
||||
{
|
||||
args = new String[]{"help"}; // Show help
|
||||
}
|
||||
return super.onCommand(sender, command, alias, args);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user