Keep online-mode=true security, allow selected non-premium usernames to join as guests, and route hybrid login at Bukkit or Velocity level.
SideGate is a hybrid login bridge for Bukkit-compatible servers and Velocity proxy networks that want to keeponline-mode=truewhile still allowing selected non-premium players.
Premium players continue normal Mojang authentication, while approved guest players are routed through SideGate guest flow. On proxy networks, Velocity decides Premium/Guest login and Bukkit backends apply the player-facing guest actions.
"Keep premium security for normal players and control guest access explicitly."
premium-usernames.allow-all-guests or allowed-guests./sidegate reload and the public LoginApi service./sidegate status.
SideGate 2.0.0
Hybrid Premium, Guest, and Bedrock login support for online-mode servers.
Keep security posture while supporting approved guest usernames.
Keep premium authentication path for normal players with online-mode=true.
Mojang API lookup with internal cache when auto-detect-premium is enabled.
Control guest admission using allow-all-guests or explicit allowed-guests list.
Apply guest scoreboard tag, guest-only chat prefix, and configurable join title/subtitle/messages.
ProtocolLib is optional. The auto engine prefers it when available and otherwise uses SideGate's built-in Netty engine.
Reload config/listeners at runtime and integrate addons via Bukkit ServicesManager API.
Uses Folia's async and global schedulers when available, with no Folia-specific API required.
Proxy edition chooses online/offline authentication at PreLoginEvent, then lets Bukkit backends apply guest visuals and restrictions.
Java 17+ is required. ProtocolLib 5.x+ is optional: SideGate uses it when available, or its built-in login engine otherwise. For Minecraft 1.21.9-26.x, use a current ProtocolLib development build if selecting the ProtocolLib engine.
Place SideGate-2.0.0.jar into your /plugins directory. Install Floodgate and/or Geyser-Spigot only when Bedrock detection is needed.
Edit server.properties and ensure the following is set:
Restart the server to generate the config.yml file.
# Master Switch
enable-guest-mode: true
# Login engine: auto, protocollib, or builtin
# auto prefers ProtocolLib when available and otherwise uses the built-in engine
login-engine: auto
# Set true only on a Bukkit backend behind SideGate for Velocity
proxy-mode:
enabled: false
# Auto-check Mojang API. Premium usernames keep normal authentication.
auto-detect-premium: true
# true = any non-Premium username may join as Guest
# false = only names in allowed-guests may join
allow-all-guests: true
# Usernames that always stay on the Premium path
premium-usernames:
- "TamKungZ"
# Premium-name conflict policy (standalone Bukkit only)
# KICK_WITH_MESSAGE or FALLBACK_TO_GUEST
# Requires auto-detect-premium: true. Restart after changing this setting.
premium-session-failure:
action: "KICK_WITH_MESSAGE"
message: "&cThis username belongs to a Premium account.\n&eChange your username and try again."
# Used only when allow-all-guests is false
allowed-guests:
- "PlayerName1"
- "PlayerName2"
guest-settings:
default-gamemode: "SURVIVAL"
chat-prefix: "&7[Guest] &r"
messages:
join-title: "&cACCESS RESTRICTED"
join-subtitle: "&7Guest Mode"
join-message:
- "&c=================================="
- "&6 Welcome to SideGate Protocol"
- "&7 Account Status: &cGuest (Non-License)"
- "&7 You have restricted gameplay access."
- "&c=================================="The Velocity edition decides whether each connection should use Mojang online authentication or Guest offline authentication at the proxy. Install SideGate Bukkit on every backend so Guest tags, gamemode, title, messages, and chat prefix are applied after forwarding.
forceOnlineMode().forceOfflineMode().UNAVAILABLE and stays on online authentication.Place SideGate-Velocity-2.0.0.jar in velocity/plugins.
Start Velocity once to create plugins/sidegate/config.yml.
Keep proxy-mode.enabled: true in the Velocity SideGate config.
Install SideGate Bukkit on each backend and set its proxy-mode.enabled: true.
Keep Velocity online-mode=true, use player-info-forwarding-mode="modern", and set Bukkit backend online-mode=false.
Do not expose Bukkit backend ports publicly. Use firewall rules or private networking.
forwarding.secret protects player data sent from Velocity to Paper backends. It does not authenticate Minecraft clients and does not replace firewall/private network protection.
player-info-forwarding-mode = "modern" in velocity.toml.forwarding-secret-file to a non-empty UTF-8 file with a long random secret.# SideGate Velocity owns Premium/Guest login decisions
enable-guest-mode: true
proxy-mode:
enabled: true
# Query Mojang before deciding Premium vs Guest
auto-detect-premium: true
allow-all-guests: true
premium-usernames:
- "TamKungZ"
# Used only when allow-all-guests is false
allowed-guests:
- "FriendName1"
- "FriendName2"
logging:
login-decisions: true
bedrock:
enabled: true
force-floodgate-offline-mode: true
compatibility:
require-minecraft-1-20-or-newer: true
messages:
guest-denied: "You are not allowed to join as Guest on this proxy."
premium-session-failure: "This username belongs to a Premium account.\nChange your username and try again."
unsupported-version: "SideGate requires Minecraft Java 1.20 or newer."Yes, backend examples are useful because Velocity and Bukkit use different responsibilities. Velocity decides authentication; every backend keeps SideGate installed so it can apply Guest tags, gamemode, title, messages, and chat prefix after the player is forwarded.
# Backend is only reachable through Velocity
online-mode= false
enforce-secure-profile= false# Velocity handles Premium/Guest login decisions
enable-guest-mode: true
proxy-mode:
enabled: true
guest-settings:
default-gamemode: "SURVIVAL"
chat-prefix: "&7[Guest] &r"
messages:
join-title: "&cACCESS RESTRICTED"
join-subtitle: "&7Guest Mode"/sidegate reload reloads config and reports parse errors while keeping the previous config active. Requires sidegate.admin./sidegate status checks proxy routing, Netty bridge, Bedrock integration, and minimum Java client version; it also requires sidegate.admin./sg.online-mode=true and modern forwarding.messages.premium-session-failure.FALLBACK_TO_GUEST is available only in standalone Bukkit mode.evaluateLogin(String username)
Returns PREMIUM, GUEST, DENIED, or UNAVAILABLE.
evaluateLoginAsync(String username)
Async version for proxy login checks.
isProxyModeEnabled()
Returns current proxy routing toggle.
isGuest(Player player)
Checks whether a Velocity player was marked as Guest.
isBedrock(Player player)
Checks whether a player is detected as Bedrock.
checkPremium(String username)
Performs Mojang premium lookup.
Release date: 2026-11-07
SideGateApi / SideGateApiProvider to LoginApi / LoginApiProvider. Addons must be recompiled.login-engine: auto prefers ProtocolLib when installed and otherwise uses the built-in engine./sidegate status now requires sidegate.admin, and failed config reloads keep the previous config active.Release date: 2026-08-25
PlayerLoginEvent, so permission data preloads correctly.Release date: 2026-06-10
PreLoginEvent.proxy-mode.enabled so backends apply Guest tags, gamemode, titles, messages, and chat prefix after Velocity routing.LoginDecision, evaluateLogin(String), and isProxyModeEnabled()./sidegate reload, /sidegate status, login-decision logging, and configurable proxy messages.online-mode=false or modern forwarding is not configured.allow-all-guests now defaults to true in both editions.Velocity can show the configured Premium-name conflict message, but encrypted-session FALLBACK_TO_GUEST remains available only in standalone Bukkit mode.
Release date: 2026-06-10
premium-session-failure.action with KICK_WITH_MESSAGE and FALLBACK_TO_GUEST.[SideGate] text from logger messages.Release date: 2026-05-18
SideGateApi) via Bukkit ServicesManager./sidegate reload.compileOnly to avoid shading and classloader conflicts.READY_TO_ACCEPT, with ACCEPTED as fallback.ProtocolLibrary.getProtocolManager() returned null.Submit issues with server version, Java version, ProtocolLib version, SideGate version, and login/startup logs.
https://github.com/TamKungZ/SideGate/issuesClosed Source. Modification/redistribution/repackaging is not allowed without permission.
Commercial use or monetization requires prior permission: dev@tamkungz.me
Public reference snapshot: sidegate-1.0.0-rc.1
Query SideGate state from your own plugin through Bukkit's ServicesManager. The LoginApi interface is also available on Velocity. Version 2.0.0 renamed the previous SideGateApi; addons using the old API must be recompiled.
isGuestModeEnabled()
Returns current guest-mode master toggle.
isProxyModeEnabled()
Returns current proxy-mode toggle.
isAutoDetectPremiumEnabled()
Returns current Mojang auto-detect setting.
isAllowAllGuestsEnabled()
Returns whether all non-premium usernames are allowed.
isConfiguredPremium(String username)
Checks if username is forced to premium path from config.
isKnownPremiumCached(String username)
Checks premium status from SideGate cache only.
checkPremium(String username)
Performs Mojang API premium check at runtime.
evaluateLogin(String username)
Returns PREMIUM, GUEST, DENIED, or UNAVAILABLE.
isGuest(Player player)
Checks guest state via scoreboard tag SideGate_Guest.
The Velocity edition adds evaluateLoginAsync(String) and isBedrock(Player).
import me.tamkungz.sidegate.api.LoginApi;
import me.tamkungz.sidegate.api.LoginApiProvider;
LoginApi api = LoginApiProvider.get();
if (api != null) {
boolean guest = api.isGuest(player);
boolean premium = api.checkPremium(player.getName());
}repositories {
maven { url 'https://repo.tamkungz.me' }
}
dependencies {
compileOnly 'me.tamkungz:sidegate:2.0.0'
}A: Java 17+. Bukkit supports Spigot, Paper, Folia, and Purpur; ProtocolLib 5.x+ is optional because SideGate includes a built-in login engine. Proxy installs need Velocity 3.4+, modern forwarding, and SideGate Bukkit 2.0.0 on every backend.
A: For standalone Bukkit, no: keep online-mode=true. For Velocity networks, keep Velocity online-mode=true, use modern forwarding, and set backend Bukkit servers to online-mode=false behind private ports.
A: Guest/offline access has impersonation risk. Use an auth plugin plus strict permissions, and restrict guest usernames carefully.
FALLBACK_TO_GUEST allows a cracked client to use a Premium-registered username with a Guest/offline UUID. Prefer UUID-based permissions and an authentication plugin.
A client that spoofs the exact official UUID still remains on normal online-mode authentication and must pass Mojang session verification.
For hybrid guest mode operation, set enforce-secure-profile=false in server.properties.