Carpet

Carpet

2M Downloads

system_info('server_whitelisted') returns whether the whitelist is enforced, not enabled

CommandLeo opened this issue ยท 0 comments

commented

system_info('server_whitelisted') returns server property enforce-whitelist instead of white-list (their difference can be found here: https://minecraft.fandom.com/wiki/Server.properties#Java_Edition_3).
Here is the relevant code: https://github.com/gnembon/fabric-carpet/blob/1.17/src/main/java/carpet/script/utils/SystemInfo.java#L85
Although this has always been in the mod, it's definitely misleading and should be changed. A server can be whitelisted without enforcing the whitelist and a server with enforce-whitelist true is not necessarily whitelisted.