BGHDDevelopment / PlayerBalancer

The repository for the plugin PlayerBalancer
https://www.spigotmc.org/resources/55011/
MIT License
28 stars 25 forks source link

marker-descs "(?i).*maintenance*" How should I go about writing #31

Closed HansOffice closed 1 year ago

HansOffice commented 2 years ago

If I want to write &c game in the state can not let the player into the game, how should I go about writing it? Tried using full word match then it didn't work. Can you give an example? Please!

BGHDDevelopment commented 2 years ago

Can you show the things you have tried? Screenshots of what the MOTD and what you put in the config would be a great help. Feel free to reach out on Discord for faster responses: https://discord.gg/bghddevelopment

HansOffice commented 2 years ago

    marker-descs=[       "(?i).游戏中", # match if contains (regex)       "&c游戏中" # match if exactly equal

The motd written in the bedwarsrel is   motds:     lobby: '&a等待中...'     running: '&c游戏中'     stopped: '&c停止'     full: '&c满人'

------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2022年5月25日(星期三) 凌晨4:21 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [BGHDDevelopment/PlayerBalancer] marker-descs "(?i).maintenance" How should I go about writing (Issue #31)

Can you show the things you have tried? Screenshots of what the MOTD and what you put in the config would be a great help. Feel free to reach out on Discord for faster responses: https://discord.gg/bghddevelopment

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

BGHDDevelopment commented 2 years ago

While it should not matter I am just thinking that it may be the characters causing it to not work. Have you tried just doing "stopped" or "full" rather then the other characters? As these servers would most likely not be public-facing the MOTD should not really mater.