2.0 (obsolete) Name Validator 1.2.3

Validates player names on join based on a config file.

  1. Enerdy
    API Version:
    2.0
    TShock Version:
    4.3.22
    Source URL:
    https://github.com/Enerdy/NameValidator
    Validates player names on join based on a configuration file (NameValidator.json in your /tshock folder) and if a name is invalid, either kicks, bans or displays a warning message to the player.

    Run the plugin so that it creates the config file, and then edit it as you wish. Use /nvreload (permission: namevalidator.reload) to reload the config file at any time.

    Credits to Hopstarter for making the awesome icon I'm using for this plugin.

    Config Options:

    Name: Action (string)
    Values: kick, ban, any message
    Sets the action to take when a player's name is deemed as invalid. The default action is kick. If neither kick nor ban are used, it will send the player a message with those contents instead.

    Name: Reason (string)
    Values: the reason for a kick/ban
    Sets the reason to be given when a player is kicked/banned for having an invalid name. The default is "Invalid character name.".

    Name: Action (string)
    Values: kick, ban, any message
    Sets the action to take when a player's name is deemed as invalid. The default action is kick. If neither kick nor ban are used, it will send the player a message with those contents instead.

    Name: InvalidChars (string)
    Values: Any combination of invalid letters to be in a player's name
    Sets a list of letters which a player's character name cannot have. Each letter is evaluated individually -- don't use this for words, such as "dog".

    Name: InvalidNameRegexes (List<string>)
    Values: a list of regex strings to be matched with character names
    In contrast with the above, this actually matches a full word if given; therefore, if you add in "dog", any user name containing dog will be deemed invalid. Use google to learn about Regular Expressions and utilize them here for more specific name matches.

    Name: TerrariaFontOnly (boolean)
    Values: true/false
    If set to true, this will take action against any player whose name contains a letter that cannot be rendered by the default Terraria font (Andy). You must have Terraria installed for this to work (as installing Terraria will automatically get you the font). This will stop players from joining with names that display the asterisk character (*) as a replacement for invalid letters.
    Kojiro_S and bippity like this.

Recent Updates

  1. API 2.0 Compatibility
  2. API 1.25 Compatibility
  3. API 1.24 Compatibility