A Fabric mod for Geyser servers that detects players joining from one platform or another and adds tags and executes players based on one's platforms. modrinth.com/mod/bedrock-detector
Shell 54.3%
Java 28.1%
Batchfile 17.7%
6 1 0

Clone this repository

https://tangled.org/lighty.pillow.gay/bedrock-detector
git@knot.pillow.gay:lighty.pillow.gay/bedrock-detector

For self-hosted knots, clone URLs may differ based on your setup.

README.md

Bedrock Detector#

A server-side mod for the Fabric mod loader that detects whether people are on Bedrock or not by using the Floodgate API. Based on their platform, the mod will attribute command tags to the player and execute custom commands as a player.

Configuration#

After having installed the mod, launch the server and a config in the config folder by the name of bedrockdetector.json should appear. Here's an example of the config file:

{
  "java": {
    "tags": [
      "java"
    ],
    "commands": [
      "combatedit profile set combatedit:vanilla"
    ]
  },
  "bedrock": {
    "tags": [
      "bedrock"
    ],
    "commands": [
      "combatedit profile set combatedit:1_8_combat"
    ]
  }
}

Note: this was used in conjuction with the CombatEdit mod as an example to show off how you can change the combat method by swapping editions of the game.