Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用中文角色名客户端会跳出 #13

Open
rushfly opened this issue Feb 4, 2022 · 0 comments
Open

使用中文角色名客户端会跳出 #13

rushfly opened this issue Feb 4, 2022 · 0 comments

Comments

@rushfly
Copy link

rushfly commented Feb 4, 2022

我在 client/MapleCharacter.java 中做了如下修改:

public static boolean canCreateChar(String name) {
        String lname = name.toLowerCase();
        for (String nameTest : BLOCKED_NAMES) {
            if (lname.contains(nameTest)) {
                return false;
            }
        }
        return getIdByName(name) < 0 && Pattern.compile("[a-zA-Z0-9\u4E00-\u9FA5]{2,12}").matcher(name).matches();
}

现在可以建立中文名字角色,characters表中正常出现相应记录,但是客户端紧接着崩溃,无法进入游戏,服务端窗口没有错误提示信息。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant