mirror of
https://github.com/filoghost/ChestCommands.git
synced 2024-11-22 18:16:14 +01:00
Correct tip for unknown sub-commands
This commit is contained in:
parent
10482e6e10
commit
8858198c70
@ -50,6 +50,12 @@ public class CommandHandler extends MultiCommandManager {
|
||||
sender.sendMessage(ChatColor.GREEN + "Commands: " + ChatColor.GRAY + "/" + rootCommandLabel + " help");
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void sendUnknownSubCommandMessage(SubCommandSession session) {
|
||||
session.getSender().sendMessage(ChatColor.RED + "Unknown sub-command \"" + session.getSubLabelUsed() + "\". "
|
||||
+ "Use \"/" + session.getRootLabelUsed() + " help\" to see available commands.");
|
||||
}
|
||||
|
||||
@Name("help")
|
||||
@Permission(Permissions.COMMAND_PREFIX + "help")
|
||||
public void help(CommandSender sender, SubCommandSession session) {
|
||||
|
Loading…
Reference in New Issue
Block a user