Fix #44; rewrite list indexing & handling.

This commit is contained in:
WiIIiam278 committed 2021-06-06 01:45:38 +01:00
1 parent 796781a8b8
commit 565aeb5b73
14 files changed
+255 -290

No files matched your search

+12 -12
View File
@@ -33,11 +33,9 @@ edit_home_update_name: '[Successfully changed your home''s name: %1% →](#00fb9
error_no_homes_set: '[Error:](#ff3300) [You haven''t set any homes!](#ff7e5e)'
error_no_public_homes_set: '[Error:](#ff3300) [There aren''t any public homes set!](#ff7e5e)'
error_no_warps_set: '[Error:](#ff3300) [There aren''t any warps set!](#ff7e5e)'
private_home_list_page_top: '[%1%''s Homes:](#00fb9a) [(](#00fb9a)[%2%-%3%](#00fb9a bold) [of](#00fb9a) [%4%](#00fb9a bold)[)](#00fb9a)'
public_home_list_page_top: '[Public Homes:](#00fb9a) [(](#00fb9a)[%1%-%2%](#00fb9a bold) [of](#00fb9a) [%3%](#00fb9a bold)[)](#00fb9a)'
home_list_page_empty: '&7(There are no homes to list on this page)'
warp_list_page_top: '[Warps:](#00fb9a) [(](#00fb9a)[%1%-%2%](#00fb9a bold) [of](#00fb9a) [%3%](#00fb9a bold)[)](#00fb9a)'
warp_list_page_empty: '&7(There are no warps to list on this page)'
private_home_list_page_top: '\n[%1%''s Homes:](#00fb9a) [(](#00fb9a)[%2%-%3%](#00fb9a bold) [of](#00fb9a) [%4%](#00fb9a bold)[)](#00fb9a)\n'
public_home_list_page_top: '\n[Public Homes:](#00fb9a) [(](#00fb9a)[%1%-%2%](#00fb9a bold) [of](#00fb9a) [%3%](#00fb9a bold)[)](#00fb9a)\n'
warp_list_page_top: '\n[Warps:](#00fb9a) [(](#00fb9a)[%1%-%2%](#00fb9a bold) [of](#00fb9a) [%3%](#00fb9a bold)[)](#00fb9a)\n'
error_public_home_invalid: '[Error:](#ff3300) [Could not find a public home owned by %1% called %2%.](#ff7e5e)'
error_set_home_invalid_characters: '[Error:](#ff3300) [Home names must be alphanumeric (A-Z, 0-9, -_)](#ff7e5e)'
error_set_home_invalid_length: '[Error:](#ff3300) [Home names can only contain up to 16 characters!](#ff7e5e)'
@@ -80,14 +78,10 @@ error_edit_warp_invalid_description: '[Error:](#ff3300) [Warp descriptions may o
edit_warp_update_location: '[Re-located the warp](#00fb9a) [%1%](#00fb9a bold) [to your current position.](#00fb9a)'
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_button_next_page: '[Next Page >]'
list_button_next_page_tooltip: 'Click to view next %1%'
list_button_previous_page: '[< Last Page]'
list_button_previous_page_tooltip: 'Click to view previous %1%'
list_item_divider: ' [•](gray) '
home_list_item: '&f[&o%1%&r&f]'
public_home_list_item: '&f[&o%1%&r&f]'
warp_list_item: '&f[&o%1%&r&f]'
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=&#00fb9a&%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%)'
edit_warp_teleport_button: '[Teleport]'
edit_warp_teleport_button_tooltip: 'Teleport to this warp'
edit_warp_delete_button: '[Delete]'
@@ -124,3 +118,9 @@ delete_all_warps_success: '[Successfully deleted all](#00fb9a) [%1%](#00fb9a bol
error_permission_restricted_warp: '[Error:](#ff3300) [You do not have permission to warp to %1%!](#ff7e5e)'
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_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)'
page_no_items: '[(No items to display on this page)](gray show_text=&7Try a different page number)'