TownyAdvanced / Towny

Towny Advanced Minecraft plugin for Bukkit/Spigot.
https://townyadvanced.github.io
Other
527 stars 354 forks source link

/t set board don't let me use cyrillic letters #6318

Closed Tenkotataii closed 2 years ago

Tenkotataii commented 2 years ago

What steps will reproduce the problem?

  1. Use Towny
  2. Create a town
  3. Try using a /t set board with cyrillic letters (russian language uses cyrillic letters)

What is the expected output?

We expect to see a board with cyrillic letters like it happens in usual cases, for example, "Board: Example Town Board"

Towny version

[01:32:04] [Render thread/INFO]: [CHAT] -###---###- [Towny 0.98.4.0] [01:32:04] [Render thread/INFO]: [CHAT] #####-##### Authors: Chris H (Shade), ElgarL, LlmDl [01:32:04] [Render thread/INFO]: [CHAT] ########### And contributors like you. <3 [01:32:04] [Render thread/INFO]: [CHAT] -#########- [01:32:04] [Render thread/INFO]: [CHAT] --#######-- [01:32:04] [Render thread/INFO]: [CHAT] ----###---- [01:32:04] [Render thread/INFO]: [CHAT] -----#----- https://TownyAdvanced.github.io/ [01:32:04] [Render thread/INFO]: [CHAT] [TownyChat 0.98 ]

Server version

[01:31:38] [Render thread/INFO]: [CHAT] This server is running Pufferfish version git-Pufferfish-72 (MC: 1.18.2) (Implementing API version 1.18.2-R0.1-SNAPSHOT) (Git: 8f05a00 on HEAD) You are on the latest version!

Please use Pastebin.com to link the following files

  1. Your full server startup from the logs\latest.log: https://pastebin.com/csbDMrmK
  2. Your Towny config.yml: https://pastebin.com/J85fXhPv
  3. Your townyperms.yml: https://pastebin.com/vCRWbLkL
  4. Your log's error: [01:29:13 INFO]: StillShokeer1911 issued server command: /t set board РусскийЯзык (from console) [01:29:13] [Render thread/INFO]: [CHAT] [Towny] Invalid string, Town Board not set. (from user's logs)
LlmDl commented 2 years ago

Someone changed your string_check_regex: ^[a-zA-Z0-9 \s._\[\]\#\?\!\@\$\%\^\&\*\-\,\*\(\)\{\}]*$ to not allow Cyrillic.

Tenkotataii commented 2 years ago

I think it's not a removed thing It was happening on other servers too, like it was never having cyrillic symbols in its string_check_regex. What should i add in this string for Towny to allow cyrillic?

LlmDl commented 2 years ago

You would want to change it to include \P{M} or some other variation of regex that allows Cyrillic.

I was mistaken earlier, you config is the default.

Tenkotataii commented 2 years ago

I think I should find out about variations as I don't know anything about them. Anyway, thanks for help.