CodedSakura / FabricTPA

ISC License
8 stars 7 forks source link

[Feature Request] Check Score before TPAing #5

Open TheRobified opened 3 years ago

TheRobified commented 3 years ago

Would love to see a config option that checks to see if a score (or multiple scores), meets a requirement.

Would help for servers that use scoreboards for things like a jail, or allowing TPA with votes, etc.

CodedSakura commented 3 years ago

Could you give a sample of the config value? Do you also want it to support math operations?

TheRobified commented 3 years ago

Note: I'm not a developer. I personally wouldn't use math operations, in all likelihood, but others might?. But maybe something like this (I put in json format, since I've noticed most mods use this style in config:

{
    "scorecheck": true,
    "scores": [
        {
            "jailscore": "..0"
        },
        {
            "vote": "1.."
        }
        ]
}

Could also be <=0 or >=1 if the vanilla style command I have above wouldn't work. I just used that since I'm much more familiar with datapacks in MC.