Skip to content

About

Our new Server API allows you to communicate between the FemCraft client and the server.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

FemCraftAPI

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).

Features

  • 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

How verification works

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.

Installation

  1. Put FemCraftAPI.jar into plugins/ (Paper 26.3).
  2. Optional: put builds.json into plugins/FemCraftAPI/ to enable ATTESTED. Create it per FemCraft release with the included tools/BuildRegistry.java.
  3. Adjust config.yml if you want.

config.yml

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: true

Commands

Permission femcraftapi.admin

  • /femcraft list
  • /femcraft info <player>
  • /femcraft reattest <player>
  • /femcraft reload

For developers

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.

Privacy and data

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.

Links

Client: https://modrinth.com/modpack/femcraftclient

About

Our new Server API allows you to communicate between the FemCraft client and the server.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages