mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-03 22:16:34 +00:00
settings: fix regex keys using town.
This commit is contained in:
1 parent
34fefaf216
commit
6a88b02bbd
1 file changed
+4
-4
@@ -150,19 +150,19 @@ public class Settings {
|
|||||||
|
|
||||||
@YamlComment("Whether home and warp names should be restricted by a regex."
|
@YamlComment("Whether home and warp names should be restricted by a regex."
|
||||||
+ "Set this to false to allow full UTF-8 names (i.e. allow /home 你好).")
|
+ "Set this to false to allow full UTF-8 names (i.e. allow /home 你好).")
|
||||||
@YamlKey("towns.restrict_names")
|
@YamlKey("general.restrict_names")
|
||||||
private boolean restrictNames = true;
|
private boolean restrictNames = true;
|
||||||
|
|
||||||
@YamlComment("Regex which home and warp names must match. Names have a max length of 16 characters")
|
@YamlComment("Regex which home and warp names must match. Names have a max length of 16 characters")
|
||||||
@YamlKey("towns.name_regex")
|
@YamlKey("general.name_regex")
|
||||||
private String nameRegex = "[a-zA-Z0-9-_]*";
|
private String nameRegex = "[a-zA-Z0-9-_]*";
|
||||||
|
|
||||||
@YamlComment("Whether home/warp descriptions should be restricted. Set this to true to restrict UTF-8 usage.")
|
@YamlComment("Whether home/warp descriptions should be restricted. Set this to true to restrict UTF-8 usage.")
|
||||||
@YamlKey("towns.restrict_descriptions")
|
@YamlKey("general.restrict_descriptions")
|
||||||
private boolean restrictDescriptions = false;
|
private boolean restrictDescriptions = false;
|
||||||
|
|
||||||
@YamlComment("Regex which home and warp descriptions must match. A hard max length of 256 characters is enforced")
|
@YamlComment("Regex which home and warp descriptions must match. A hard max length of 256 characters is enforced")
|
||||||
@YamlKey("towns.description_regex")
|
@YamlKey("general.description_regex")
|
||||||
private String descriptionRegex = "\\A\\p{ASCII}*\\z";
|
private String descriptionRegex = "\\A\\p{ASCII}*\\z";
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user