Plugin Help Towny - Town Names with colors

Discussion in 'Plugin Help/Development/Requests' started by DrkMatr1984, Oct 13, 2015.

Thread Status:
Not open for further replies.
  1. Offline

    DrkMatr1984

    I don't use Towny chat, and I am having trouble getting Towny to allow my players to name their towns in color. I tried stuff like &6New&3Town but it doesn't translate the colors codes. There's a place for regex-ing colors in the Towny Config, but I know next to nothing about regex codes and even when I google them for an hour as I just have, I still don't understand them. Too many random characters that mean nothing to me all strung together and jumbled up... Could anyone just tell me what I have to put in these sections of code here:
    Code:
    regex:
    
    
        name_filter_regex: '[ /]'
    
    
        name_check_regex: ^[a-zA-Z0-9&\\\u00a7._\[\]-]*$
    
    
        string_check_regex: ^[a-zA-Z0-9\\\u00a7\s._\[\]-]*$
    
    
        name_remove_regex: '[^a-zA-Z0-9._\[\]-]'
    To allow Towny players to name their towns in colored characters? I've googled this about 30 times tonight and it seems as if this question has never been asked or answered, or it has been and is just buried back 10 pages of results.

    Any help is appreciated here, and please, if you're just going to say "Here's a site that teaches you regex codes, learn then you dumb-tard", please don't comment. I only need to know them for this one thing; if this was java I'd have no problems doing this in code. But for some reason regex crap just goes up and over my head. Thanks in advance.
     
  2. Offline

    LlmDl

    Towny doesn't support colour codes in the town or nation names.
     
    DrkMatr1984 likes this.
  3. Offline

    DrkMatr1984

Thread Status:
Not open for further replies.

Share This Page