File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
src/main/java/com/datasiqn/commandcore Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -87,7 +87,10 @@ public void sendHelpMenu(@NotNull CommandSender sender) {
87
87
sender .sendMessage (ChatColor .GOLD + (options .hasCustomPluginName () ? options .getPluginName () : plugin .getName ()) + " Commands" );
88
88
commandManager .getCommandNames (false ).stream ().sorted ().forEach (name -> {
89
89
Command command = commandManager .getCommand (name , false );
90
- if (!command .hasPermission () || sender .hasPermission (command .getPermissionString ())) sender .sendMessage (ChatColor .YELLOW + " " + name , ChatColor .GRAY + " ↳ " + command .getDescription ());
90
+ if (!command .hasPermission () || sender .hasPermission (command .getPermissionString ())) {
91
+ String description = command .hasDescription () ? command .getDescription () : "No description provided" ;
92
+ sender .sendMessage (ChatColor .YELLOW + " " + name , ChatColor .GRAY + " ↳ " + description );
93
+ }
91
94
});
92
95
}
93
96
You can’t perform that action at this time.
0 commit comments