Skip to content

Unhandled exception, value too small/large for Int16  #4

@bippity

Description

@bippity

Noticed that the plugin threw out an error that allowed a player to join with non-English characters.

[Server API] Warning: Plugin "Name Validator" has had an unhandled exception thrown by one of its NetGreetPlayer handlers: System.OverflowException: Value was either too large or too small for an Int16. at System.Convert.ToInt16(Char value) at NameValidator.NameValidator.ValidateString(String s) at NameValidator.NameValidator.OnJoin(GreetPlayerEventArgs e) at TerrariaApi.Server.HandlerCollection1.Invoke(ArgsType args)`

Player's name was: 老八

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions