Skip to content

CapeCraft/MineGate

Repository files navigation

MineGate

MineGate is a plugin which hosts a simple local HTTP server to handle authentication requests.

The config can point to different Minecraft auth services eg; Mojang and MineHut.

This allows you to accept different authorised connections onto your server.

Setup

Put the plugin in your Velocity plugins folder and edit the config to your liking (See config section)

Add the following arguments to your launch script after the word java

-Dmojang.sessionserver=http://localhost:3000

Config

Default Config

{
  "debug": false, // Should debug mode be enabled
  "logConnections": false, // Should we log all auth attempts
  "port": 3000, // Port for the local web server
  "timeout": 5000, // Timeout for each auth service
  "auth_urls": [ // Auth services, 0 = First, 100 = Last etc
    {
      "name": "mojang", //Any unique name
      "priority": 0, // Priority to run (0 is first)
      "url": "https://sessionserver.mojang.com/session/minecraft/hasJoined"
    },
    {
      "name": "minehut",
      "priority": 1,
      "url": "https://api.minehut.com/mitm/proxy/session/minecraft/hasJoined"
    }
  ]
}

About

A custom Minecraft authentication plugin

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages