mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-04 22:16:22 +00:00
Fix issues with command list, update list formatting
This commit is contained in:
1 parent
7a47868f86
commit
7c79929ebb
3 files changed
+12
-9
No files matched your search
@@ -35,10 +35,13 @@ 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"))) {
|
||||
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()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -79,9 +79,9 @@ edit_warp_update_location: '[Re-located the warp](#00fb9a) [%1%](#00fb9a bold) [
|
||||
edit_warp_update_description: '[Changed the description for the warp](#00fb9a) [%1%](#00fb9a bold) [to "%2%".](#00fb9a)'
|
||||
edit_warp_update_name: '[Successfully changed a warp''s name: %1% →](#00fb9a) [%2%](#00fb9a bold)'
|
||||
list_item_divider: ' [•](gray) '
|
||||
home_list_item: '[[&o%1%&r&f]](show_text=&7%2% run_command=/huskhomes:edithome %1%)'
|
||||
public_home_list_item: '[[&o%1%&r&f]](show_text=�fb9a&%2%: &7%3% run_command=/huskhomes:phome %2%.%1%)'
|
||||
warp_list_item: '[[&o%1%&r&f]](show_text=&7%2% run_command=/huskhomes:warp %1%)'
|
||||
home_list_item: '[[%1%]](show_text=&7%2% run_command=/huskhomes:edithome %1%)'
|
||||
public_home_list_item: '[[%1%]](show_text=�fb9a&%2%: &7%3% run_command=/huskhomes:phome %2%.%1%)'
|
||||
warp_list_item: '[[%1%]](show_text=&7%2% run_command=/huskhomes:warp %1%)'
|
||||
edit_warp_teleport_button: '[Teleport]'
|
||||
edit_warp_teleport_button_tooltip: 'Teleport to this warp'
|
||||
edit_warp_delete_button: '[Delete]'
|
||||
@@ -116,7 +116,7 @@ error_permission_restricted_warp: '[Error:](#ff3300) [You do not have permission
|
||||
teleporting_complete_console: '[Console teleported you to %1%.](gray)'
|
||||
spawn_warp_default_description: 'The /spawn position of the server'
|
||||
error_invalid_page_number: '[Error:](#ff3300) [Please specify a valid page number.](#ff7e5e)'
|
||||
page_options: '[←](gray show_text=&7View previous page run_command=%1%) [Viewing Page %2%/%3%](#00fb9a) [→](gray show_text=&7View next page run_command=%4%)'
|
||||
page_options: '\n[←](gray show_text=&7View previous page run_command=%1%) [Viewing Page %2%/%3%](#00fb9a) [→](gray show_text=&7View next page run_command=%4%)'
|
||||
page_options_min: '\n[Viewing Page %1%/%2%](#00fb9a) [→](gray show_text=&7View next page run_command=%3%)'
|
||||
page_options_min_max: '\n[Viewing Page %1%/%2%](#00fb9a)'
|
||||
page_options_max: '\n[←](gray show_text=&7View previous page run_command=%1%) [Viewing Page %2%/%3%](#00fb9a)'
|
||||
|
||||
@@ -79,9 +79,9 @@ edit_warp_update_location: '[Riposizionato il warp](#00fb9a) [%1%](#00fb9a bold)
|
||||
edit_warp_update_description: '[Cambiata la descrizione del warp](#00fb9a) [%1%](#00fb9a bold) [to "%2%".](#00fb9a)'
|
||||
edit_warp_update_name: '[Cambiato con successo il nome del warp: %1% →](#00fb9a) [%2%](#00fb9a bold)'
|
||||
list_item_divider: ' [•](gray) '
|
||||
home_list_item: '[[&o%1%&r&f]](show_text=%2% run_command=/huskhomes:edithome %1%)'
|
||||
public_home_list_item: '[[&o%1%&r&f]](show_text=�fb9a&%2%: &f%3% run_command=/huskhomes:phome %2%.%1%)'
|
||||
warp_list_item: '[[&o%1%&r&f]](show_text=%2% run_command=/huskhomes:warp %1%)'
|
||||
home_list_item: '[[%1%]](show_text=&7%2% run_command=/huskhomes:edithome %1%)'
|
||||
public_home_list_item: '[[%1%]](show_text=�fb9a&%2%: &7%3% run_command=/huskhomes:phome %2%.%1%)'
|
||||
warp_list_item: '[[%1%]](show_text=&7%2% run_command=/huskhomes:warp %1%)'
|
||||
edit_warp_teleport_button: '[Teletrasporto]'
|
||||
edit_warp_teleport_button_tooltip: 'Teletrasportati al warp'
|
||||
edit_warp_delete_button: '[Cancella]'
|
||||
@@ -116,7 +116,7 @@ error_permission_restricted_warp: '[Errore:](#ff3300) [Non hai i permessi per us
|
||||
teleporting_complete_console: '[La console ti ha teletrasportato a %1%.](gray)'
|
||||
spawn_warp_default_description: 'La posizione di /spawn del server'
|
||||
error_invalid_page_number: '[Errore:](#ff3300) [Specifica un numero di pagina corretto.](#ff7e5e)'
|
||||
page_options: '[←](gray show_text=&7Pagina precedente run_command=%1%) [Pagina %2%/%3%](#00fb9a) [→](gray show_text=&7Pagina successiva run_command=%4%)'
|
||||
page_options: '\n[←](gray show_text=&7Pagina precedente run_command=%1%) [Pagina %2%/%3%](#00fb9a) [→](gray show_text=&7Pagina successiva run_command=%4%)'
|
||||
page_options_min: '\n[Pagina %1%/%2%](#00fb9a) [→](gray show_text=&7Pagina successiva run_command=%3%)'
|
||||
page_options_min_max: '\n[Pagina %1%/%2%](#00fb9a)'
|
||||
page_options_max: '\n[←](gray show_text=&7Pagina precedente run_command=%1%) [Pagina %2%/%3%](#00fb9a)'
|
||||
|
||||
Reference in new issue
Block a user