Add checks for unicode in home/description names if enabled

This commit is contained in:
William committed 2022-08-24 18:19:13 +01:00
1 parent e90fc481a9
commit 1c6902fc9e
8 files changed
+36 -19

No files matched your search

@@ -102,7 +102,7 @@ public class SetHomeCommand extends CommandBase {
case FAILED_DUPLICATE -> plugin.getLocales().getLocale("error_home_name_taken");
case FAILED_NAME_LENGTH -> plugin.getLocales().getLocale("error_home_name_length");
case FAILED_NAME_CHARACTERS -> plugin.getLocales().getLocale("error_home_name_characters");
default -> Optional.of(new MineDown(""));
default -> plugin.getLocales().getLocale("error_home_description_characters");
}).ifPresent(onlineUser::sendMessage);
}