mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-01 22:16:08 +00:00
Fix issues with command list, update list formatting
This commit is contained in:
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()) {
|
||||
|
||||
Reference in new issue
Block a user