DayzHUBMods

Service · version 1.0.3

DayzHUB Authentication

Keep your server for the players who belong to your community.

Needs DayzHUB Core DayZ 1.30
Authentication

Keep your server for the players who belong to your community. A joining player is held until he accepts your server rules and is verified through the DayzHUB Discord bot: he is a member of your Discord and has linked his Steam account. The menu opens by itself, the player follows four short steps, and the moment Discord confirms him the menu closes and he plays. You write and change the rules in game, from the admin bar. Ten languages, Thai included.

What you need: the DayzHUB Discord bot in your Discord with an active paid DayzHUB Discord bot plan (Plan 1 or higher, monthly or annual; the free bot trial does not include it). DayzHUB Authentication is included with the bot plan and is not sold separately. Two things are checked: your Discord Server ID (the server key) and the public IP and game port of each game server. Game servers appear by themselves on dayzhub.net under Dashboard > your Discord server > Authentication > Game servers card, in the order they first connected. It includes 5 game servers per Discord server with the same server key; extra game servers can be added. There is no licence file. If the bot plan has ended, the authentication pauses (nobody is held any more) and the server keeps running. If dayzhub.net cannot be reached, Authentication keeps working for a 3 hour grace period after the last confirmation (on a first start with no confirmation yet it waits 10 minutes), then it pauses and nobody is held. The server is never stopped and nobody is locked out. Nothing is deleted.

Updating to this release (2026-11-27): install DayzHUB Core 1.0.11 and the new version of every DayzHUB mod you own together, client and server parts, before you start your server. Your data and settings are kept.

Start from zero, step by step#

  1. Add the DayzHUB bot to your Discord server from dayzhub.net and log in to the dashboard with the Discord account that owns the server. Keep an active bot plan.
  2. Bind your Discord to your game server in the dashboard and create the Authentication key. It starts with dhau_.
  3. Optional - verify role: pick a Discord role your members already have (see below).
  4. Install the mod on the game server as below and paste the key into server_key.txt.
  5. Start the server, join, press Insert, open Authentication and write your rules in the rules editor.
  6. Test it with a second account: it is held on join, accepts the rules, links Steam in Discord with /link-steam and unlocks by itself. Staff of the admin bar are not held by default (bypassStaff is on): to test with your own admin account, switch Staff skip verification off on the Settings page first.

Install (server owners)#

  1. DayzHUB Core 1.0.11 or newer is required (free with any DayzHUB mod): install or update @DayzHUB_Core first.
  2. Copy @DayzHUB_Authentication (client + server: the player menu and the admin page) and @DayzHUB_AuthenticationServer (server only - never give it to players) into your server folder.
  3. Copy keys\DayzHUB.bikey (from the mod folder you downloaded) into your server's keys folder. The client mod is already signed by DayzHUB. The server mod needs no signing.
  4. Start parameters: -mod=@CF;...;@DayzHUB_Core;@DayzHUB_Authentication and -servermod=@DayzHUB_AuthenticationServer
  5. Start the game server once: it writes <profiles>\DayzHUB\DHUB_Authentication\Config\server_key.txt (empty). Paste the key on the first line and save, then admin bar (Insert) > Authentication > Reload, or restart. While the key is missing, the server reads the file again every 10 minutes.
  6. On dayzhub.net, Dashboard > your Discord server > Authentication > Game servers card: once the server connects with the key it appears there by itself, in the order the servers first connected (5 are included). Its IP and game port are checked together with the server key. Players see nothing of this. The state is in Licenses\STATUS_Authentication.txt.
  7. Put your Steam64 ID in <profiles>\DayzHUB\DHUB_Core\Config\admins.json (written by DayzHUB Core on the first start) so the admin bar opens with Insert.

What players see#

The menu a joining player sees: LOCKED, and four steps. Open Discord and Copy invite are the two buttons.
  1. Read and accept the rules (only when you wrote rules): the second tab Rules lists them.
  2. Join our Discord and stay a member.
  3. Link your Steam account: in Discord type /link-steam and sign in with Steam. Nothing is typed in the game.
  4. Unlocks by itself: the game checks every few seconds. The moment Discord confirms the player, the menu closes with a short welcome note.
The Rules tab: tick the box and press Accept. A rule you add or change later asks every player to accept again.
  • A held player cannot move, shoot, use items, open the inventory, take damage or hurt anyone. The server enforces it, so removing the mod on the client does not help.
  • Join delay: with a join delay set, a new player can look around for a few seconds before the menu opens. A player who links in that time is never held.
  • Players who were verified recently (default 72 hours) are not held at join; the check still runs in the background.
  • A player who leaves your Discord is held at his next join, not in the middle of a session.
With the kick switched on, a countdown "Time left to verify" shows at the bottom of the menu.

Verify role (optional)#

In your dashboard you can pick a Discord role your members already have. A player then counts as verified only when he has linked his Steam AND holds that role.
  • Every player links his Steam once with /link-steam, even if he already holds the role. The game knows Steam IDs; a Discord role only knows Discord accounts. There is no import list to keep.
  • A linked player without the role is not let in. A player with the role who never linked sees the normal steps, links once, and then passes with nothing else to do.
  • Without a role set, a linked member of your Discord is verified.

Admin bar#

Press Insert and open the Authentication page of the DayzHUB admin bar. It has four sections.

Status: licence, bot plan, site, bot in your Discord, key, players held now, rules version and the reason when paused.

Settings#

Every value is saved at once. They are the same values as in Settings.json below.

Settings: on/off, kick and minutes, check interval, wait for the site, memory of verified players, staff bypass and the join delay.

Rules and the rules editor#

Rules: the number of rules, the rules version, the accept-again switch and the button Open rules editor.

Open rules editor opens a full screen editor: your rules as cards on the left, the Title and Text boxes on the right. Up to 30 rules; a title up to 60 characters and a text up to 400, with live counters.

  • Add as new adds the rule at the end. Save changes saves a rule you picked and changed. Move up and Move down change the order.
  • Remove asks for a second click within a few seconds. Close asks for confirmation when something is unsaved.
  • A new or changed rule raises the rules version: with Players must accept again on, every player accepts the new version at his next join.
  • The rules are shown exactly as you write them; they are never translated.
The rules editor after adding a rule: the status line confirms that players will accept the rules again.

Players#

Players: who is held and for how long, Let in, Kick, the bypass list (add a player who joined this server) and the last events.
  • Let in lets a held player in at once; Kick removes him.
  • The bypass list holds Steam IDs that skip Discord and the rules. Only players who joined this server can be picked.
  • Staff of the admin bar are never held while bypassStaff is on.

Your files#

Everything is in <profiles>\DayzHUB\DHUB_Authentication\. The settings and rules are written once and never overwritten by an update; new settings are added once, with a dated copy of the old file.

Updating from an older version: at the first start the files move to this folder by themselves and every setting is kept. A copy of each original file stays in Backups\<date>\pre-migration\. If the move cannot finish, the old files stay in use and the move is tried again at the next restart.

FileWhat it holds
Config\Settings.jsonthe settings below
Config\Rules.jsonyour rules and the rules version: up to 30 rules, each with id, title (up to 60 characters, no |) and text (up to 400 characters). A rule with an empty title or over a limit is dropped on load. rulesVersion goes up when rules are added or changed; updatedUtc is set by the mod
Config\Bypass.jsonSteam IDs that skip Discord and the rules (steamIds: up to 500 Steam64 IDs of 17 digits; duplicates and wrong entries are dropped)
Config\server_key.txtthe Authentication key from the dashboard, on the first line (never written to a log). Changed only by hand
Config\Console.jsonDayzHUB Console link, only written when the DayzHUB Console agent is installed: {"configVersion":1,"enabled":true}. Set "enabled": false to switch the link off. Read once at server start: a change needs a restart
Data\Cache.jsonverified players and saved answers about the Discord server, invites and commands
Data\Recent.jsonrecent events shown in the admin bar
Data\Players\<steam64>.txtone line per player: the rules version they accepted, when they accepted, when they were verified
Data\layout.txtmarker that the new folder layout is in use
Backups\<date>\a daily copy of Settings.json, Rules.json, Bypass.json, Console.json, Cache.json and Recent.json; the newest 7 days are kept. The old .bak1 / .bak2 copies are no longer written
Logs\auth-<date>.logone log per day, written through DayzHUB Core. Log level and days kept are set in DHUB_Core\Config\Logger.json (logLevel, keepLogsDays)

Never edit the Data\ files by hand.

Apply a change: edit the file, then admin bar (Insert) > Authentication > Reload, or Overview > "Reload every DayzHUB mod", or restart. Overview > "Reload settings files" does not cover Authentication. Console.json needs a restart.

A damaged file: every config file is backed up before each save. If a file cannot be read, the mod uses the newest good copy from Backups\ (up to 7 day folders) and logs BACKUP-USED with the file and folder. With no good copy it uses its built-in defaults for that file; the server keeps running. To fix it, put the right file back from Backups\<date>\, or delete the damaged file so a fresh default is written, then restart.

Settings.json#

SettingDefaultRangeWhat it does
enabledtruetrue / falseThe main switch. Off: nobody is held
kickEnabledfalsetrue / falseRemove players who do not verify in time
kickMinutes101-120Minutes a player has, counted from the moment the menu opens
pollSeconds53-60How often Discord is asked while someone is held
hubWaitSeconds205-120How long a waiting player is kept when the site gives no answer; then he is let in
verifiedCacheHours720-720How long a verified player is remembered. 0 = he is held at every join
joinGraceSeconds00-600Seconds a new or not yet verified player can play freely before the menu opens. The kick timer starts when the menu opens
requireReaccepttruetrue / falsePlayers accept again when you add or change a rule
bypassStafftruetrue / falseThe admin bar staff are never held
apiBaseUrlhttps://dayzhub.net/api/authhttps:// only, 12-200 characters, no @ or spacesAddress of the DayzHUB service. Kept by the mod: do not change it. Not changeable from the admin bar or the Console

Switches are true / false (1/0, on/off and yes/no also work). Numbers are plain digits. Every value is checked when it loads: a value that is not allowed is ignored, the default is used and a warning is logged. In the admin bar a wrong entry refuses the whole page and nothing is saved.

When Discord or the site cannot be reached#

Nobody is locked out. If the site gives no usable answer, the players who are waiting are let in after about 20 seconds (hubWaitSeconds), the admin bar shows a warning and the game server keeps running. The answers of the site are signed; an answer that is not signed correctly, or that is a replay of an old one, is ignored.

When the authentication pauses#

Authentication pauses while the bot plan of your Discord server is not active, while the bot is not in your Discord, while the Authentication key is missing or wrong, or when you switch it off. Everybody who was held is released, nothing is deleted, and the admin bar says why. It works again by itself at the next good answer.

DayzHUB Console#

With the DayzHUB Console agent the mod shows up in the Console as Authentication. Everything the admin bar does can be done from the Console:

PartActions
Status, rulesAUTHENTICATION_status, _rules_show
Edit the rules_rule_add, _rule_edit, _rule_remove, _rule_move
Settings_setting_set (enabled, kickEnabled, kickMinutes, pollSeconds, hubWaitSeconds, verifiedCacheHours, requireReaccept, bypassStaff, joinGraceSeconds), _reload_config
Bypass list_list_show, _list_size, _list_add, _list_remove
One playerAUTHENTICATION_letin, AUTHENTICATION_kick
  • Events: a player locked (with the reason), unlocked, kicked, a player who accepted the rules, rules changed, paused and resumed. No Steam ID, key or signature is written in an event line.
  • Switch it off in Console.json ("enabled": false, then restart). Webhooks for kicks, rule changes and a licence pause are available in the DayzHUB Core webhook settings (off by default).

Thai language#

Every DayzHUB menu and admin page of this mod can show in Thai. Set "language": "th" in <profiles>\DayzHUB\DHUB_Core\Config\Settings.json and restart the server (or admin bar > Overview > "Reload settings files"). The rules you write stay as you wrote them.

FAQ and troubleshooting#

Status says "paused"
the reason is written next to it. Check that the bot plan is active, that the bot is in your Discord and that the key in server_key.txt is the one from the dashboard.
Nobody is held
check that Authentication is on in Settings, that Status says running, and that the joining player is not on the bypass list or staff with bypassStaff on.
A player says "I already have the role"
he still links his Steam once with /link-steam. Without the link the game cannot know which Discord account he is.
A player is held again after leaving Discord
by design: he must be a member to play.
The menu shows no rules tab
no rules are written yet. Add them in the rules editor.
The admin page does not open
your Steam64 ID must be in admins.json and your rank needs the Authentication permission.
Players are let in without being checked
the site gave no answer for more than hubWaitSeconds. Look at the log (LET-IN-HUB-DOWN) and at your server's internet access to dayzhub.net.

Compatibility#

DayZ 1.30. Needs DayzHUB Core 1.0.11 or newer and the DayzHUB Discord bot. Works with Expansion, LBmaster and TB mods.

Support: dayzhub.net and the DayzHUB Discord.

Settings explorer#

Every setting of this mod in one list. Type to narrow it down. Click a name to copy it.

Settings.json
true

The main switch. Off: nobody is held

Range: true / false
false

Remove players who do not verify in time

Range: true / false
10

Minutes a player has, counted from the moment the menu opens

Range: 1-120
5

How often Discord is asked while someone is held

Range: 3-60
20

How long a waiting player is kept when the site gives no answer; then he is let in

Range: 5-120
72

How long a verified player is remembered. 0 = he is held at every join

Range: 0-720
0

Seconds a new or not yet verified player can play freely before the menu opens. The kick timer starts when the menu opens

Range: 0-600
true

Players accept again when you add or change a rule

Range: true / false
true

The admin bar staff are never held

Range: true / false
https://dayzhub.net/api/auth

Address of the DayzHUB service. Kept by the mod: do not change it. Not changeable from the admin bar or the Console

Range: https:// only, 12-200 characters, no @ or spaces

Check your settings file#

Paste a settings file. The checker finds JSON mistakes, keys it does not know (with a suggestion for typos), values of the wrong kind and numbers outside the documented range. It runs in your browser: nothing is uploaded.

Settings.json

Something missing or wrong on this page? Tell us in the DayzHUB Discord and we fix it.

DayZ Hub

Cookie 設定

選擇是否允許 DayZ Hub 使用我們無 Cookie 的統計功能記錄你的造訪。你可以隨時更改。

必要 Cookie用於登入、安全性、你的語言設定以及儲存此選擇。
一律啟用
統計 — Plausible在不使用 Cookie、不收集個人資料的情況下統計網頁造訪次數,協助我們改善 DayZ Hub。