Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

理解不了ListTags的用法 #52

Closed
LiteQwQ opened this issue Oct 23, 2022 · 8 comments
Closed

理解不了ListTags的用法 #52

LiteQwQ opened this issue Oct 23, 2022 · 8 comments
Labels
good first issue Good for newcomers

Comments

@LiteQwQ
Copy link

LiteQwQ commented Oct 23, 2022

我无法理解Lists中ListTags的用法
可以给一些Config的例子给我吗,谢谢

@layou233
Copy link
Owner

layou233 commented Oct 23, 2022

{
    "Services": [
        {
            "Name": "Hypixel",
            "TargetAddress": "mc.hypixel.net",
            "TargetPort": 25565,
            "Listen": 25565,
            "Flow": "auto",
            "Minecraft": {
                "EnableHostnameRewrite": true,
                "OnlineCount": {
                    "Max": 114514,
                    "Online": -1,
                    "EnableMaxLimit": false
                },
                "IgnoreFMLSuffix": true,
                "NameAccess": {
                    "Mode": "allow", // aka whitelist
                    "ListTags": ["listA", "fruits"] // Allow players whose name are in these lists, matching orderly.
                },
                "MotdFavicon": "{DEFAULT_MOTD}",
                "MotdDescription": "§d{NAME}§e service is working on §a§o{INFO}§r\n§c§lProxy for §6§n{HOST}:{PORT}§r"
            }
        }
    ],
    "Lists": {
        "listA": ["foo", "bar"],
        "fruits": ["apple", "banana", "orange", "peach", "strawberry"],
        "IPs": ["1.1.1.1", "8.8.8.8", "223.5.5.5"]
    }
}

@LiteQwQ
Copy link
Author

LiteQwQ commented Oct 23, 2022

好的,谢谢

@layou233
Copy link
Owner

Reminder: Commented JSON (aka jsonc) is not supported yet in ZBProxy. Please remove these comments before use.

@layou233 layou233 added the good first issue Good for newcomers label Oct 23, 2022
@LiteQwQ
Copy link
Author

LiteQwQ commented Oct 23, 2022

image

Config:

image

@layou233 layou233 reopened this Oct 23, 2022
@layou233
Copy link
Owner

Seems like you have not defined a list named LiteQwQ.

@LiteQwQ
Copy link
Author

LiteQwQ commented Oct 23, 2022

那应该如何定义呢

@layou233
Copy link
Owner

Please post your full config.

@LiteQwQ
Copy link
Author

LiteQwQ commented Oct 23, 2022

image

已解决

@LiteQwQ LiteQwQ closed this as completed Oct 23, 2022
@layou233 layou233 pinned this issue Jan 10, 2023
Repository owner locked as resolved and limited conversation to collaborators Jan 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants