Fix issues with command list, update list formatting

This commit is contained in:
WiIIiam278 committed 2021-06-07 01:55:15 +01:00
1 parent 7a47868f86
commit 7c79929ebb
3 files changed
+19 -16

No files matched your search

@@ -35,8 +35,11 @@ public class HuskHomesCommand extends CommandBase implements TabCompleter {
ArrayList<String> commandDisplay = new ArrayList<>();
for (String command : plugin.getDescription().getCommands().keySet()) {
if (HuskHomes.getSettings().hideCommandsFromHelpMenuWithoutPermission()) {
if (!player.hasPermission((String) plugin.getDescription().getCommands().get(command).get("permission"))) {
continue;
String permission = (String) plugin.getDescription().getCommands().get(command).get("permission");
if (permission != null) {
if (!player.hasPermission(permission)) {
continue;
}
}
}
if (command.equals("huskhomes") && HuskHomes.getSettings().hideHuskHomesCommandFromHelpMenu()) {