mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-03 06:28:49 +00:00
Rename some Settings getters
This commit is contained in:
1 parent
29cf3f9ffc
commit
34fdb88d5c
22 files changed
+44
-44
No files matched your search
@@ -23,7 +23,7 @@ public class Validator {
|
||||
* @return True if the name is valid as per the plugin settings, false otherwise
|
||||
*/
|
||||
public boolean isValidName(@NotNull String name) {
|
||||
return (isAsciiOnly(name) || plugin.getSettings().isAllowUnicodeNames())
|
||||
return (isAsciiOnly(name) || plugin.getSettings().doAllowUnicodeNames())
|
||||
&& !containsWhitespace(name)
|
||||
&& name.length() <= MAX_NAME_LENGTH && name.length() >= MIN_NAME_LENGTH;
|
||||
}
|
||||
@@ -35,7 +35,7 @@ public class Validator {
|
||||
* @return Whether the meta is valid against the plugin settings
|
||||
*/
|
||||
public boolean isValidDescription(@NotNull String description) {
|
||||
return (isAsciiOnly(description) || plugin.getSettings().isAllowUnicodeDescriptions())
|
||||
return (isAsciiOnly(description) || plugin.getSettings().doAllowUnicodeDescriptions())
|
||||
&& description.length() <= MAX_DESCRIPTION_LENGTH;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user