A server API for the FemCraft client. The server can tell that a player is using FemCraft, which build they run, and whether the client is genuine. It also gets a few features to control the client's display. No client brand tricks are needed. Everything runs over its own plugin channel (femcraft:main).
- Detect FemCraft players and read their build and version
- Verification instead of a plain brand check, so spoofing is hard
- Show server-controlled info on the client HUD: balances (cash, bank and so on), a gamemode label, a watermark and cinescope bars
- Hide coordinates or the server IP in the client HUD on request
- Suggest a server switch, plus game and party status
- Simple developer API, events and commands
Every player goes through an encrypted handshake with fresh keys and an HMAC proof bound to their UUID. The server also asks for random parts of the client jar and compares them against the official release list in builds.json. That gives four trust levels:
- NONE
- CLAIMED
- VERIFIED
- ATTESTED
The check repeats every few minutes. Server packets are signed too, so the client ignores forged ones. This makes spoofing a lot harder, but it is not impossible for someone who owns the real jar.
- Put
FemCraftAPI.jarintoplugins/(Paper 26.3). - Optional: put
builds.jsonintoplugins/FemCraftAPI/to enable ATTESTED. Create it per FemCraft release with the includedtools/BuildRegistry.java. - Adjust
config.ymlif you want.
reattest-minutes: 5
hello-timeout-seconds: 10
kick-on-failed-proof: false
kick-if-not-attested: false
kick-message: "This server requires an unmodified FemCraft client."
log-failures: truePermission femcraftapi.admin
/femcraft list/femcraft info <player>/femcraft reattest <player>/femcraft reload
FemCraftAPI api = FemCraftAPI.get();
api.isFemCraftUser(player);
api.getBuild(player);
api.getTrust(player);
api.setBalance(player, "cash", "Cash", 12.5, 2, true);
api.setGamemodeLabel(player, "SkyPvP");
api.cinescope(player, 12, 1500);Events: FemCraftJoinEvent and FemCraftTrustChangeEvent. If you don't want to use the plugin, the protocol is simple enough to implement yourself.
The plugin only reads what the client sends in its handshake: build number, mod version, Minecraft version, client brand and a hash of its own jar. Nothing is sent to external servers. The plugin has no telemetry.