Warning: file_put_contents(/www/wwwroot/nmbt.106988770/cache/modrinth_versions_ISe7pM3P.json): Failed to open stream: Permission denied in /www/wwwroot/nmbt.106988770/resource_detail.php on line 53
authmebia - 墨喵 Minecraft 资源
authmebia 图标

authmebia

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 0.0.7
本资源为搬运资源,原资源地址: https://modrinth.com/mod/authmebia
资源信息

Minecraft 版本: 1.21.6 1.21.7 1.21.8 1.21.9 1.21.10 1.21.11 26.1 26.1.1 26.1.2 26.2

平台: bukkit folia paper purpur

标签: game-mechanics management social

资源介绍
authmebia # authmebia A addon for AuthMe Reloaded that replaces dialog-based login and register prompts with dialog customizable. [GitHub](https://github.com/Mytai20100/authmebia)

Login ![Login dialog](https://cdn.modrinth.com/data/cached_images/92b27e8eea748f6890ad04b2b1d8fc5089c03c87_0.webp) Register ![Register dialog](https://cdn.modrinth.com/data/cached_images/0743ba279f837bb16e05a4d28b89ce341e4bebf1_0.webp) Rules ![Rules dialog](https://cdn.modrinth.com/data/cached_images/e230aa5498712bfe9a8ce5e4fdef85f125260620_0.webp) Custom buttons link ![custom link](https://cdn.modrinth.com/data/cached_images/6c9f73d2a0bcd5f67612e970e620766a1de23906_0.webp) Captcha ![captcha](https://cdn.modrinth.com/data/cached_images/ffcb7bf5ebd6d214edfef4d3959e7f61b58de333_0.webp) 2FA ![2FA](https://cdn.modrinth.com/data/cached_images/6ae253424f125170265388cc66286695e02741a8_0.webp) Add Email ![Add email dialog](https://cdn.modrinth.com/data/cached_images/48e1866b127ba7434922f483d9268b2bfd77d1da_0.webp) Email verify ![Email verify](https://cdn.modrinth.com/data/cached_images/e5b39e68c1cc8e3fd770c355e3422e600e95426d_0.webp) Recovery password ![Recovery password](https://cdn.modrinth.com/data/cached_images/3c0b3d3c53b5feadf70431b4eeee284f67fae1de_0.webp) Forgot Password but email not found dialog ![Forgot Password but email not found dialog](https://cdn.modrinth.com/data/cached_images/63333e06d7a34b50a6564f5467f5b31039cea889_0.webp)
Requirement Version Reason
Minecraft client 1.21.6+ Client Can render dialogs
Paper ✔
Folia ✔
Java 21-25
AuthMe Reloaded 6.0.0+ Can load full features of authmebia
ViaVersion Optional Detect old-client , fallback to command login /register

Optional, only needed for specific features:

  • Floodgate/geyser — required for auto.bedrock_autologin and the Bedrock dialog (dialog.bedrock)
  • ItemsAdder / NexoMC / Oraxen — only needed if the corresponding integrations.* entry is enabled
  • PlaceholderAPI — only needed if you want %placeholder% expansions inside config.yml/lang text; without it, {player} substitution and MiniMessage formatting still work normally

Features

Dialog modes

  • Pre-spawn dialog mode: the login or register window blocks the connection phase, so the player spawns already authenticated
  • Post-spawn dialog mode: the window appears after the player joins the world
  • Three auth input modes: password text field, numeric PIN grid, or per-digit slider
  • Old-client numpad/slider fallback: clients whose protocol version can't render dialogs at all (pre-1.21.6) get an inventory-GUI numpad/slider instead when auth_mode.mode is pin or slider, since there's otherwise no way to type a code through AuthMe's plain chat commands. Works post-spawn only; uses the exact same wrong-code/attempt-limit/2FA logic as the normal PIN/slider dialog
  • Button layout switch (dialog.button_layout): arrange the main action buttons vertically (stacked) or horizontally (side by side) in both the register and login dialogs

Authentication

  • Premium bypass: players whose UUID matches a premium account stored in AuthMe are detected automatically and skip all dialogs of authmebia.
  • Premium auto-login (auto.premium_autologin, off by default): goes a step further than the premium bypass above — a matching premium UUID is automatically forceRegister'd (if needed) and forceLogin'd with no dialog at all, then shown a one-time mandatory password-set dialog so the account still has a real AuthMe password on file
  • Bedrock auto-login (auto.bedrock_autologin, off by default): the same automatic login, but for Bedrock players connecting through Geyser/Floodgate. auto.bedrock_mode controls how much this trusts: link (default, safe) only applies if Floodgate reports the player's account as linked to a verified Java premium account; geyser (opt-in, unsafe unless Geyser's own online auth-type is enabled) trusts any Bedrock/Geyser connection with no linked-account check at all
  • Bedrock dialog support: Bedrock players see the same register/login/recover/rule/captcha/custom_screen dialogs as Java players, reusing all the same logic. dialog.bedrock lets you optionally override button width, input width, and the auth input mode (password/PIN/slider) just for Bedrock clients, since some Bedrock devices have a smaller usable dialog area
  • Session auto-login (auto.session_autologin, on by default): skips the dialog for a returning player that AuthMe's own session feature (settings.sessions.enabled/timeout in AuthMe's own config.yml) would already authenticate by matching IP and timeout. This reproduces AuthMe's own session comparison rather than asking AuthMe whether it already decided, since AuthMe does not evaluate its session feature until later in the join than this plugin's dialog decision is made. Has no effect at all unless AuthMe's own session feature is also enabled
  • TOTP / 2FA dialog for players who have an authenticator app set up in AuthMe
  • Captcha dialog synced with AuthMe's captcha setting
  • Email verification dialog on registration (reuses AuthMe's SMTP config)
  • "Forgot Password?": a button on the login dialog lets players reset their own password without an admin. It looks up the email already on authme (set during email-verified registration), sends a reset code to it through AuthMe's SMTP config, and | once the code is verified — shows the same reset dialog used for admin-forced recovery. Accounts with no email on file are told to contact an admin instead
  • Admin-forced password recovery: use /bia recover <player> to flag an account; the player is shown a reset dialog on their next login or immediately if they are already online. The reset dialog now follows auth_mode.mode (password/PIN/slider), matching the register and login dialogs instead of always showing a text field
  • Server rules agreement checkbox shown to new players before their account is created
  • Login attempt limit with kick after too many wrong passwords
  • Login timeout with optional kick or re-show of the dialog
  • IP ban with escalating ban durations after repeated failed logins across sessions

Notifications

  • Custom notifications (notifications.toasts): show the small achievement popup in the corner of the screen on first_register, first_login, first_message, or first_advancement, with a configurable title, description, item icon, sound, and advancement frame (task/goal/challenge).
  • /bia notifier <toast> <player> show [seconds] lets an admin preview any configured toast on an online player without touching its persisted "already shown" state, so testing never affects whether it fires for real later

Third-party item plugin integrations

  • Optional, self-checking integrations with ItemsAdder, NexoMC, and Oraxen (integrations.*, all off by default). Each one only activates if the corresponding plugin is actually installed and its API is loadable; if it isn't, the integration quietly disables itself without affecting login/registration in any way

Admin tools

  • Bypass list: players added with /bia add skip all dialogs and fall back to AuthMe's own commands
  • Custom screens: define any number of dialog windows in config.yml and push them to any online player with /bia screen <id> [player], or auto-show them on join with trigger: postjoin/trigger: prejoin instead of only on command. Screens can include an optional agreement checkbox (checkbox_label/checkbox_action) that permanently suppresses the screen for a player once ticked and dismissed; reset it with /bia screen reset <player> [id]
  • Debug commands: preview individual dialogs in-game without going through the full login flow
  • Startup check that warns in the console if AuthMe's own built-in dialog (settings.registration.dialog.preJoin/postJoin.enable) is also enabled, to prevent two dialogs from appearing at once

Extras

  • Custom inline icons (custom_icons + <icons:name>): define named icons (atlas sprites, player heads, or full item icons) once in config.yml, then drop <icons:name> anywhere inside any dialog title, content, or button label to show it inline. Item-type icons can also be shown above a custom screen's content via that screen's icon: field
  • Link buttons inside dialogs (open URL, copy to clipboard)
  • Per-button click sounds: nearly every dialog button (submit, logout, agree, verify, resend, forgot password, custom screen buttons, etc.) can play its own Minecraft sound on click
  • Welcome sent to the player after first login(like image canva in someone server discord) use wedhook of discord.
  • ViaVersion support: players on older protocol versions fall back to AuthMe's normal flow automatically

Commands

Command Permission Description
/bia reload OP Reload config and lang
/bia info - Show plugin version and status
/bia add <player> authmebia.bypass Add player to bypass dialog list
/bia rm <player> authmebia.bypass Remove player from bypass dialog list
/bia recover <player> bia.admin.recover Force password reset on next login
/bia screen <id> [player] OP Show a custom screen to a player
/bia screen reset <player> [id] OP Reset a player's "closed forever" checkbox for a custom screen (omit id to reset all screens)
/bia debug <feature> <true\|false\|show> OP Test features in-game
/bia notifier <toast> <player> show [seconds] OP Preview a configured toast on an online player without affecting its once-per-player state

Debug features: captcha, email, register, login, recover, rule.
Use show with captcha or email to preview those dialogs directly without going through the login flow.


AuthMe API used

AuthMeBia hooks into AuthMe Reloaded through reflection rather than a compile-time API dependency.So it can run on any old-authme version.

Class Usage
fr.xephi.authme.api.v3.AuthMeApi Core operations: isRegistered, forceLogin, forceRegister, forceLogout, checkPassword, changePassword, isAuthenticated, registerPlayer, getLastIp, getLastLoginTime
fr.xephi.authme.data.auth.PlayerAuth Read player data: isPremium, getPremiumUuid, getEmail, getTotpKey, setEmail
fr.xephi.authme.data.auth.PlayerCache isAuthenticated(name) — used for in-memory authentication checks
fr.xephi.authme.datasource.DataSource Fetch PlayerAuth records (getAuth), check auto.session_autologin state (hasSession), persist email changes (updateEmail)
fr.xephi.authme.mail.EmailService Check SMTP availability, send verification codes
fr.xephi.authme.security.totp.TotpAuthenticator Verify TOTP codes for 2FA dialog (checkCode(PlayerAuth, String))
fr.xephi.authme.events.LoginEvent Detect successful login to complete async futures
fr.xephi.authme.events.RegisterEvent Detect successful registration
fr.xephi.authme.events.FailedLoginEvent Detect failed login

AuthMeBia also optionally bridges to Floodgate's API the same way used in the AuthMe Reloaded API, only when auto.bedrock_autologin or a Bedrock dialog override is in use:

Class Usage
org.geysermc.floodgate.api.FloodgateApi Detect Floodgate/Bedrock connections
org.geysermc.floodgate.api.player.FloodgatePlayer Look up a Bedrock player's linked account
org.geysermc.floodgate.util.LinkedPlayer Read the verified linked Java UUID, if any

Building from source

Clone

git clone https://github.com/Mytai20100/authmebia.git
cd authmebia

IntelliJ IDEA (recommended)

  1. Open IntelliJ IDEA and choose Open, then select the authmebia folder.
  2. IntelliJ will detect the Gradle project automatically and import it.
  3. Wait for the Gradle sync to finish and dependencies to download.
  4. Open the Gradle panel (right side) and run Tasks > shadow > shadowJar.
  5. The output jar is in out/artifacts/.

Command line

./gradlew shadowJar

The built jar is placed in out/artifacts/. Copy it to your server's plugins/ folder alongside AuthMe Reloaded.


Configuration

config.yml ```yaml # AuthMeBia configuration. # Text fields support MiniMessage color/decoration tags, e.g. , , . # Use {player} as a placeholder for the player's name where supported. # Use \n inside a string to insert a line break. # Language code for messages (disconnect/kick, errors, chat). # Built-in options: en (English), vi (Vietnamese). # To add your own, copy plugins/AuthMeBia/lang/en.yml to lang/.yml and edit it. # Reload with /bia reload. lang: en # Automatic authentication skip for already-verified identities. # Both flags default to false. With both false, behavior is identical to not # having this section at all. auto: premium_autologin: false bedrock_autologin: false # link (default, safe) or geyser (unsafe unless Geyser's own online # auth-type is enabled -- see the full comment in config.yml) bedrock_mode: link # Skips the dialog for a player already authenticated by AuthMe's own # session feature. No effect unless AuthMe's settings.sessions.enabled # is also true. Default: true. session_autologin: true dialog: enabled: true menu: true min_protocol_version: 771 button_width: 200 # vertical (stacked) or horizontal (side by side) button_layout: vertical input_width: 200 register: title: " Create Account#4287f5>" content: "" password_label: "Password" confirm_password_label: "Confirm Password" submit_sound: "" login: title: " Login" content: "Welcome back, {player}!" password_label: "Password" submit_sound: "" forgot_password: # Self-service password reset via the email already on file. # Requires email.enabled so an email is stored on the account. enabled: false button: "Forgot Password?" button_sound: "" email_title: "Forgot Password" email_content: "Enter the email address registered to this account." email_label: "Email" submit_button: "Send Code" submit_sound: "" invalid_email_error: "Incorrect email" no_email_message: "No email is linked to this account. Please contact an admin." logout_button: "Logout" logout_sound: "" submit_register_button: "Register" submit_login_button: "Login" allow_close: true # Only used when allow_close is false; delay in ticks before re-checking # and re-showing an in-game dialog the player closed without a click. reopen_delay_ticks: 10 # Optional overrides applied only to Bedrock (Geyser/Floodgate) players. # Leave enabled: false to keep Bedrock identical to Java. bedrock: enabled: false button_width: 300 input_width: 300 # "" = inherit auth_mode.mode. Options: "", password, pin, slider auth_mode_override: "" auth_mode: # password | pin | slider mode: password pin: length: 4 title: "Enter your PIN" confirm_button: "Confirm" delete_button: "⌫ Delete" button_width: 100 button_sound: "" slider: length: 4 title: "Enter your code" confirm_button: "Confirm" button_width: 100 button_sound: "" rule: enabled: false title: "Server Rules" content: "" checkbox_label: "I have read and agree to the rules" agree_button: "Agree" agree_sound: "" discord: enabled: false webhook_url: "" welcome_image: enabled: false links: enabled: false position: grouped button_width: 200 buttons: - enabled: true label: "Discord#5865F2>" action: open_url value: "https://discord.gg/abc" width: 200 - enabled: true label: "{player}, copy IP" action: copy value: "play.example.com" width: 200 captcha: enabled: false length: 5 title: "Verification" content: "Type the code below to continue:\n{code}" input_label: "Enter code" submit_button: "Verify" submit_sound: "" trust_duration_seconds: 18000 login_attempts: enabled: true max_tries: 5 otp_attempts: enabled: true max_tries: 5 login_timeout: enabled: true seconds: 60 kick_message: "Authentication timed out. Please reconnect." recover: title: "Reset Password" content: "An admin has requested you set a new password." new_password_label: "New password" confirm_password_label: "Confirm password" submit_button: "Set Password" submit_sound: "" success_message: "Password updated successfully." mismatch_message: "Passwords do not match. Try again." # Password-set dialog shown once, the first time a player joins via # auto.premium_autologin or auto.bedrock_autologin. Has no effect if both # of those are false. premium: title: "Set Your Password" content: "You were signed in automatically. Please set a password for your account (used if you ever join from a non-verified client)." new_password_label: "New password" confirm_password_label: "Confirm password" submit_button: "Set Password" submit_sound: "" success_message: "Password set successfully." mismatch_message: "Passwords do not match. Try again." email: enabled: false code_length: 6 resend_cooldown: 60 field_label: "Email" verify_title: "Verify your email" verify_content: "A code was sent to {email}.\nResend available in {cooldown}s." code_label: "Code" verify_button: "Verify" verify_sound: "" resend_button: "Resend code" resend_sound: "" resend_button_cooldown: "Resend ({cooldown}s)" invalid_email_message: "Please enter a valid email address." send_failed_message: "Could not send the email. Please contact an admin." wrong_code_error: "Incorrect code" totp_2fa: # Shows a 2FA dialog after login if the player has TOTP enabled in AuthMe. # Requires AuthMe 5.6+. enabled: false title: "Two-Factor Authentication" content: "Enter your 6-digit authenticator app code:" input_label: "Authenticator code" submit_button: "Verify" submit_sound: "" wrong_code_error: "Invalid code" # Custom dialog screens. Show with: /bia screen [player] # Reset a player's "closed forever" checkbox: /bia screen reset [id] # Button actions: close, open_url, copy, command, console custom_screens: - id: example enabled: true title: " Server Notice" content: "Welcome to the server, {player}!\nHave fun playing." allow_close: true button_width: 200 # command (default), postjoin, or prejoin -- see doc/README.md trigger: command sound_on_show: "" # Optional agreement checkbox -- see doc/README.md for checkbox_action checkbox_label: "Don't show this again" checkbox_action: close buttons: - label: "OK" action: close sound: "" - label: "Discord#5865F2>" action: open_url value: "https://discord.gg/linux" width: 200 ip_ban: enabled: false threshold: 10 ban_durations_seconds: [600, 1800, 3600, 86400] # Named icons usable inline anywhere via (titles, content, # button labels, custom screen text, etc.) -- see doc/README.md for the # full sprite/player_head/item field reference. custom_icons: trial_key: type: sprite atlas: items sprite: item/trial_key config_version: 2 ``` notifications.toasts and integrations ```yaml # Custom notifications shown once per player per check. notifications: toasts: - name: welcome_toast check: first_register title: "Welcome!" content: "Thanks for joining the server." icon: "minecraft:player_head" sound: "minecraft:entity.player.levelup 0.6 1.0" delay: 5 frame: task # Optional integrations with third-party item/resource-pack plugins. # Each self-checks whether the target plugin is installed; if not, it does # nothing and never affects login/registration. integrations: itemsadder: enabled: false nexomc: enabled: false oraxen: enabled: false ```
下载与版本
评论(0)
请 登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

赞助作者

请 登录 后赞助作者。

🔥 相关推荐
Hollowed Fishing Bobber

价格:0 墨喵币
下载量:0

查看详情
TPS MONITOR

价格:0 墨喵币
下载量:0

查看详情
StartInTheNether

价格:0 墨喵币
下载量:0

查看详情
Tryzub

价格:0 墨喵币
下载量:0

查看详情