跳到正文

FairPlay

作者:penguinmc

Validates the client mod list to keep gameplay fair

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

FairPlay

Validates the client mod list to keep gameplay fair. FairPlay is designed for server administrators and players who want to ensure clients are running a legitimate, unmodified game environment.

Features

  • Client Mod List: Lists active client mods if the client has the mod installed
  • Mod Blacklist: Configurable blacklist of prohibited mods
  • Auto-kick: Optionally automatically kick players using blacklisted mods or does not have FairPlay installed
  • Time Flexibility: Adjustable timeframe for mod validation during server join

Commands

  • /fairplay: Check if the mod is installed on the server
  • /fairplay reload: Reloads the mod configuration from JSON file
  • /fairplay modlist <player_username>: View the active client mods of a player (requires the player to have the mod installed)

Configuration

FairPlay is configured via fairplay.json in the server config directory. The file is regular JSON, so list values are saved as arrays and the current schema looks like this:

{
  "configVersion": 2,
  "enabled": true,
  "requiredEnforcementMode": "OFF",
  "whitelistPlayers": ["never_a_cheater"],
  "blacklistPlayers": ["history_of_cheating"],
  "handshakeWindowMS": 3000,
  "modEnforcementMode": "BLACKLIST",
  "modWhitelist": [],
  "modBlacklist": ["meteor-client"]
}

Config Options

  • configVersion: Internal schema version used for migration
  • enabled: Master enable/disable switch for FairPlay
  • requiredEnforcementMode: Controls whether the FairPlay mod itself is required on clients
  • OFF: never require the mod
  • ALL: require the mod from everyone
  • WHITELIST: require the mod from everyone except whitelisted players
  • BLACKLIST: require the mod from only blacklisted players
  • whitelistPlayers: Players exempted from requiredEnforcementMode = WHITELIST
  • blacklistPlayers: Players forced into requiredEnforcementMode = BLACKLIST
  • handshakeWindowMS: Time window, in milliseconds, for the client/server mod handshake
  • modEnforcementMode: Controls which client mods are allowed
  • OFF: do not check client mods
  • WHITELIST: only allow mods listed in modWhitelist
  • BLACKLIST: block mods listed in modBlacklist
  • modWhitelist: Allowed client mod IDs when modEnforcementMode = WHITELIST
  • modBlacklist: Blocked client mod IDs when modEnforcementMode = BLACKLIST

Dependencies

Requires Fabric API

Credits

P3nguinMinecraft

常见问题

FairPlay 支持哪些 Minecraft 版本?

FairPlay 支持 Minecraft Java 版 26.1–26.2,共 4 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

FairPlay 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端和服务端都要装。

评论

登录后评论和评分

penguinmc 的其他作品

查看全部 →