Add allow_unicode_descriptions config option to allow unicode in descriptions (default on), Close #67

Split invalid description locales in two for more specific errors
Add defaults in Settings config reader

Signed-off-by: BuildTools <[email protected]>
This commit is contained in:
BuildTools committed 2021-07-13 00:44:08 +03:00
1 parent 85b51bc5ae
commit 3b5140f794
8 files changed
+118 -95

No files matched your search

+4 -2
View File
@@ -26,13 +26,15 @@ edit_home_privacy_private_success: '[Successfully made your home,](#00fb9a) [%1%
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)'
error_edit_home_invalid_description: '[Error:](#ff3300) [Home descriptions may only contain alphanumeric (A-Z, 0-9) characters, hyphens (-) and underscores (_) and must be less than 255 characters in length.](#ff7e5e)'
error_edit_home_description_length: '[Error:](#ff3300) [Home descriptions must be less than 255 characters in length.](#ff7e5e)'
error_edit_home_description_characters: '[Error:](#ff3300) [Home descriptions may only contain alphanumeric (A-Z, 0-9) characters, hyphens (-) and underscores (_)](#ff7e5e)'
edit_home_update_location: '[Re-located](#00fb9a) [%1%](#00fb9a bold) [to your current position.](#00fb9a)'
edit_home_update_description: '[Changed the description for](#00fb9a) [%1%](#00fb9a bold) [to "%2%"](#00fb9a)'
edit_home_update_name: '[Successfully changed your home''s name: %1% →](#00fb9a) [%2%](#00fb9a bold)'
edit_warp_title: '\n[Edit details for the warp](#00fb9a) [%1%](#00fb9a bold)[:](#00fb9a)'
edit_warp_options: '\n[[Teleport]](green show_text=&7Teleport to this warp run_command=/huskhomes:warp %1%) [[Delete]](red show_text=&7Delete this warp run_command=/huskhomes:delwarp %1%) [[Relocate]](blue show_text=&7Update this warp''s location run_command=/huskhomes:editwarp %1% location)\n[[Rename]](yellow show_text=&7Change the name of this warp run_command=/huskhomes:editwarp %1% rename ) [[Edit Description]](gold show_text=&7Update this warp''s description run_command=/huskhomes:editwarp %1% description )\n'
error_edit_warp_invalid_description: '[Error:](#ff3300) [Warp descriptions may only contain alphanumeric (A-Z, 0-9) characters, hyphens (-) and underscores (_) and must be less than 255 characters in length](#ff7e5e)'
error_edit_warp_description_length: '[Error:](#ff3300) [Warp descriptions must be less than 255 characters in length.](#ff7e5e)'
error_edit_warp_description_characters: '[Error:](#ff3300) [Warp descriptions may only contain alphanumeric (A-Z, 0-9) characters, hyphens (-) and underscores (_)](#ff7e5e)'
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)'
+4 -2
View File
@@ -26,13 +26,15 @@ edit_home_privacy_private_success: '[Hai impostato la privacy della tua home](#0
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)'
error_edit_home_invalid_description: '[Errore:](#ff3300) [La descrizione della home può contenere solo caratteri alfanumerici (A-Z, 0-9), trattini (-_) e deve essere più corta di 255 caratteri.](#ff7e5e)'
error_edit_home_description_length: '[Error:](#ff3300) [Home descriptions must be less than 255 characters in length.](#ff7e5e)'
error_edit_home_description_characters: '[Error:](#ff3300) [Home descriptions may only contain alphanumeric (A-Z, 0-9) characters, hyphens (-) and underscores (_)](#ff7e5e)'
edit_home_update_location: '[Hai riposizionato la home](#00fb9a) [%1%](#00fb9a bold) [nella tua posizione corrente.](#00fb9a)'
edit_home_update_description: '[Hai cambiato la descrizione di](#00fb9a) [%1%](#00fb9a bold) [in "%2%"](#00fb9a)'
edit_home_update_name: '[Hai cambiato il nome della tua home: %1% →](#00fb9a) [%2%](#00fb9a bold)'
edit_warp_title: '[Modifica dettagli del warp](#00fb9a) [%1%](#00fb9a bold)[:](#00fb9a)'
edit_warp_options: '[[Teletrasporto]](green show_text=&7Teletrasportati al warp run_command=/huskhomes:warp %1%) [[Cancella]](red show_text=&7Cancella il warp run_command=/huskhomes:delwarp %1%) [[Riposiziona]](blue show_text=&7Aggiorna le coordinate del warp run_command=/huskhomes:editwarp %1% location)\n[[Rinomina]](yellow show_text=&7Cambia il nome del warp run_command=/huskhomes:editwarp %1% rename ) [[Modifica Descrizione]](gold show_text=&7Aggiorna la descrizione del warp run_command=/huskhomes:editwarp %1% description )'
error_edit_warp_invalid_description: '[Errore:](#ff3300) [La descrizione del warp può contenere solo caratteri alfanumerici (A-Z, 0-9), trattini (-_) e deve contenere meno di 255 caratteri](#ff7e5e)'
error_edit_warp_description_length: '[Error:](#ff3300) [Warp descriptions must be less than 255 characters in length.](#ff7e5e)'
error_edit_warp_description_characters: '[Error:](#ff3300) [Warp descriptions may only contain alphanumeric (A-Z, 0-9) characters, hyphens (-) and underscores (_)](#ff7e5e)'
edit_warp_update_location: '[Riposizionato il warp](#00fb9a) [%1%](#00fb9a bold) [alla tua posizione attuale.](#00fb9a)'
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)'
+3 -2
View File
@@ -11,9 +11,9 @@ data_storage_options:
mysql_credentials:
host: localhost
port: 3306
database: database_name
database: HuskHomes
username: root
password: password
password: pa55w0rd
params: '?autoReconnect=true&useSSL=false'
table_names:
player_data: 'huskhomes_player_data'
@@ -24,6 +24,7 @@ general:
max_sethomes: 10
teleport_warmup_time: 5
teleport_request_expiry_time: 60
allow_unicode_descriptions: true
sounds:
teleportation_complete: 'ENTITY_ENDERMAN_TELEPORT'
teleportation_warmup: 'BLOCK_NOTE_BLOCK_BANJO'
+1 -2
View File
@@ -5,8 +5,7 @@ api-version: 1.16
authors: [William278]
softdepend: [dynmap, Vault, BlueMap]
description: A powerful, intuitive and flexible teleportation suite
libraries:
- mysql:mysql-connector-java:8.0.25
libraries: [mysql:mysql-connector-java:8.0.25]
commands:
home: