Skip to content

Commit

Permalink
settings: fix regex keys using town.
Browse files Browse the repository at this point in the history
  • Loading branch information
WiIIiam278 authored Oct 24, 2023
1 parent 34fefaf commit 6a88b02
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,19 +150,19 @@ public class Settings {

@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 你好).")
@YamlKey("towns.restrict_names")
@YamlKey("general.restrict_names")
private boolean restrictNames = true;

@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-_]*";

@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;

@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";


Expand Down

0 comments on commit 6a88b02

Please sign in to comment.