mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 06:28:49 +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()) {
|
||||
|
||||
@@ -20,9 +20,9 @@ edit_world: '• World: &7%1%'
|
||||
edit_server: '• Server: &7%1%'
|
||||
edit_home_privacy_private: '• Access: &#ff7e5e&Private &7(Only you can use it)'
|
||||
edit_home_privacy_public: '• Access: &aPublic &7(Anyone can use it)'
|
||||
edit_home_privacy_public_success: '[Successfully made your home, ](#00fb9a) [%1%](#00fb9a bold)[, open to the public.](#00fb9a)'
|
||||
edit_home_privacy_public_success_economy: '[Successfully made your home, ](#00fb9a) [%1%](#00fb9a bold)[, open to the public for %2%.](#00fb9a)'
|
||||
edit_home_privacy_private_success: '[Successfully made your home, ](#00fb9a) [%1%](#00fb9a bold)[, private.](#00fb9a)'
|
||||
edit_home_privacy_public_success: '[Successfully made your home,](#00fb9a) [%1%](#00fb9a bold)[, open to the public.](#00fb9a)'
|
||||
edit_home_privacy_public_success_economy: '[Successfully made your home,](#00fb9a) [%1%](#00fb9a bold)[, open to the public for %2%.](#00fb9a)'
|
||||
edit_home_privacy_private_success: '[Successfully made your home,](#00fb9a) [%1%](#00fb9a bold)[, private.](#00fb9a)'
|
||||
error_edit_home_privacy_already_public: '[Error:](#ff3300) [Your home is already set to public.](#ff7e5e)'
|
||||
error_edit_home_privacy_already_private: '[Error:](#ff3300) [Your home is already set to private.](#ff7e5e)'
|
||||
error_edit_home_privacy_no_permission: '[Error:](#ff3300) [You do not have permission to make homes public.](#ff7e5e)'
|
||||
@@ -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)'
|
||||
|
||||
@@ -20,9 +20,9 @@ edit_world: '• Mondo: &7%1%'
|
||||
edit_server: '• Server: &7%1%'
|
||||
edit_home_privacy_private: '• Accesso: &#ff7e5e&Privata &7(Solo tu puoi usarla)'
|
||||
edit_home_privacy_public: '• Accesso: &aPubblica &7(Tutti possono usarla)'
|
||||
edit_home_privacy_public_success: '[Hai impostato la privacy della tua home ](#00fb9a) [%1%](#00fb9a bold)[ come pubblica.](#00fb9a)'
|
||||
edit_home_privacy_public_success_economy: '[Hai impostato la privacy della tua home ](#00fb9a) [%1%](#00fb9a bold)[ come pubblica. Il costo di accesso sarà: %2%.](#00fb9a)'
|
||||
edit_home_privacy_private_success: '[Hai impostato la privacy della tua home ](#00fb9a) [%1%](#00fb9a bold)[ come privata.](#00fb9a)'
|
||||
edit_home_privacy_public_success: '[Hai impostato la privacy della tua home](#00fb9a) [%1%](#00fb9a bold) [come pubblica.](#00fb9a)'
|
||||
edit_home_privacy_public_success_economy: '[Hai impostato la privacy della tua home](#00fb9a) [%1%](#00fb9a bold) [come pubblica. Il costo di accesso sarà: %2%.](#00fb9a)'
|
||||
edit_home_privacy_private_success: '[Hai impostato la privacy della tua home](#00fb9a) [%1%](#00fb9a bold) [come privata.](#00fb9a)'
|
||||
error_edit_home_privacy_already_public: '[Errore:](#ff3300) [La tua home è già pubblica.](#ff7e5e)'
|
||||
error_edit_home_privacy_already_private: '[Errore:](#ff3300) [La tua home è già privata.](#ff7e5e)'
|
||||
error_edit_home_privacy_no_permission: '[Errore:](#ff3300) [Non hai il permesso di impostare la privacy della tua home.](#ff7e5e)'
|
||||
@@ -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