mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-04 14:38:53 +00:00
Check against home and warp names containing periods
This commit is contained in:
1 file changed
+1
-1
@@ -24,7 +24,7 @@ public class Validator {
|
|||||||
*/
|
*/
|
||||||
public boolean isValidName(@NotNull String name) {
|
public boolean isValidName(@NotNull String name) {
|
||||||
return (isAsciiOnly(name) || plugin.getSettings().doAllowUnicodeNames())
|
return (isAsciiOnly(name) || plugin.getSettings().doAllowUnicodeNames())
|
||||||
&& !containsWhitespace(name)
|
&& !containsWhitespace(name) && !name.contains(".")
|
||||||
&& name.length() <= MAX_NAME_LENGTH && name.length() >= MIN_NAME_LENGTH;
|
&& name.length() <= MAX_NAME_LENGTH && name.length() >= MIN_NAME_LENGTH;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user