Server GUI - ZenarchistCode/ZenModPack GitHub Wiki

What Is This?

This mod adds a simple server info GUI panel to the game.

The mod will automatically create a folder full of config files in profiles/Zenarchist/ServerGUI

This mod currently depends on my ModPack as a dependency due to its requirement for the Discord API.

JSON Config

The admin has to set up the JSON config - here is an example config from my server:

ServerInfoConfig.JSON

{
	"SpawnServerGuideOnNewPlayer": 1, // Whether or not freshies spawn with a "server guide" item in inventory to encourage them to check rules
    "SERVERTITLE": "Zenarchist.com | Chernarus",
    "SERVER_MOTD": "Welcome, survivor! | Last Server Wipe: June 2025",
    "BUTTON1NAME": "DONATE",
    "BUTTON1LINK": "https://buymeacoffee.com/zenarchist/",
    "BUTTON2NAME": "WIKI",
    "BUTTON2LINK": "https://github.com/ZenarchistCode/ZenModPack/wiki",
    "BUTTON3NAME": "CONTACT ADMIN",
    "BUTTON3LINK": "report", // If you make this link "report" then when a player clicks the button it will open a Discord message GUI for them
    "DONATIONURL": "", // Optional PayPal button donation link (will hide the paypal button if this is blank)
    "BUTTONPOLL": "View Poll", // Not sure if this is currently functional
    "SHOWPOLLBTN": 0,
    "ServerTabs": [ // These are the tabs for server info - maximum of 5 tabs.
        "GENERAL INFO",
		"BASEBUILDING",
		"RAIDING",
		"RECIPES",
		"MODS"
    ],
    "ServerTab0": [ // Each tab is just a string array.
        "Welcome. Reminder: cheating, duping and glitching of any kind will get your Steam account CFTools banned.",
        "",
        "We are a *mostly* vanilla server, but with some immersive quality of life mods added and the breaching charge mod for raid balancing.",
        "Our servers are also hived - so you can travel between maps with your character at any time by visiting a transfer terminal.",
        "Check your in-game map for terminal locations.",
		"",
		"We do not have a Discord community or any way to contact admins. This is deliberate to maintain the organic DayZ experience.",
		"The server is actively moderated by trusted veteran players with no interest in admin abuse. We're just players like you.",
		"We do monitor the in-game chat, so if you have anything to say or report just type it into the game chat and we'll see it.",
		"",
		"DayZ is an unpredictable game. We all die, for all kinds of reasons, many, many times, so no compensation is given for any reason.",
		"",
		"If you require an admin to get you out of trouble every time you get a car stuck, lose a backpack or get raided then this server",
		"might not be for you. This server is intended for hardcore players who aren't afraid to start fresh.",
		"",
		"That being said - any hackers, cheaters, glitchers etc WILL be caught & banned. We use custom tools to monitor suspicious behaviour.",
		"Any player who does anything out of the ordinary will be automatically flagged for manual review with detailed logs of their activity.",
		"If you are banned from our server for cheating you will be added to a list of AU/NZ community server bans including any alt Steam accounts.",
		"",
		"We have a donation button below - it costs $300+ per month to host a DayZ server. Donations are not expected but very appreciated!",
		"If you play here for a while and enjoy the server experience, please consider supporting us. Running a server requires A LOT of our time."
    ],
    "ServerTab1": [
		"We use vanilla and RaG basebuilding. Build-anywhere is enabled, but there are some automatic measures in place to prevent abuse of",
		"build-anywhere to create unraidable bases such as limiting how closely you can deploy a fence near another fence.",
		"",
		"We use vanilla combination locks here - but don't panic, they will remember you just like Codelocks do and you can open/close",
		"your gates with the hit of a button and not stand around all day entering pin codes to move through your base.",
		"",
		"There are some special no-build zones which are automatically enforced - but otherwise, we are a vanilla zombie apocalypse.",
		"If the game lets you build there - you can build there. However, you may become a target if you annoy the local population."
    ],
    "ServerTab2": [
        "Vanilla damage of fences is DISABLED - the only way to raid is to craft a homemade explosive and place it on a gate.",
		"Damage to tents and other objects is ENABLED - so blocking entrances with tents is not a good idea.",
		"",
        "Breaching charges can only be placed on base entrances (gates and doors), not walls or watchtowers.",
		"",
		"To make a breaching charge you require both charcoal & sulfur powder. Combine these to get Gunpowder.",
		"",
		"Charcoal can ONLY be found on Chernarus, and sulfur powder can ONLY be found in Livonia - so don't be afraid to travel.",
		"",
		"Once you have Gunpowder, combine 5x Gunpowder with a Burlap Sack and then a handheld radio to craft a raid explosive.",
		"",
		"A vanilla wooden gate requires 1x homemade charge, a full metal gate requires 2x, and a RaG gate or door requires 2x.",
		"",
		"If you are lucky enough to find a Heavy Breaching Charge (there's only one spawn per server per day) then this",
		"charge will destroy any gate no matter how built up it is. This charge spawns only on dynamic military events."
    ],
    "ServerTab3": [
        "BASEBUILDING RECIPES:",
		"",
		"BASEBUILDING KIT: 4 planks + 10 nails.",
		"WALL: 4 logs, 10 planks and 25 nails.",
		"LOW WALL: 2 logs, 5 planks and 15 nails.",
		"PILLAR: 1 log, 5 planks and 5 nails.",
		"STAIRS: 2 logs, 10 planks and 15 nails.",
		"STAIRCASE: 2 logs, 15 planks and 60 nails.",
		"STAIRCASE (STYLE 2): 2 logs, 20 planks and 60 nails.",
		"FOUNDATION: 4 logs, 15 planks and 30 nails.",
		"FLOOR: 2 logs, 10 planks and 25 nails.",
		"FLAT ROOF: 2 logs, 10 planks and 25 nails.",
		"ANGLED ROOF: 4 logs, 15 planks and 25 nails.",
		"ROOF END LEFT: 5 planks and 5 nails. (Built as part of the ANGLED ROOF)",
		"ROOF END RIGHT: 5 planks and 5 nails. (Built as part of the ANGLED ROOF)",
		"WINDOW FRAME: 4 logs, 10 planks and 25 nails.",
		"WINDOW: 5 planks and 5 nails.",
		"SMALL WINDOW FRAME: 4 logs, 10 planks and 25 nails.",
		"WINDOW: 5 planks and 5 nails.",
		"DOOR FRAME: 4 logs, 10 planks and 20 nails.",
		"DOOR: 5 planks and 5 nails.",
		"GATE FRAME: 2 logs, 10 planks and 20 nails.",
		"GATE LEFT/RIGHT: 10 planks and 10 nails.",
		"WOODEN STORAGE: 30 nails, 1 log, 15 planks (3 Stages)",
		"RAMP: 2 logs, 10 planks and 15 nails.",
		"FLOOR HATCH FRAME: 4 logs, 10 planks and 20 nails.",
		"FLOOR HATCH DOOR: 5 planks and 5 nails.",
		"FLOOR HATCH STAIRCASE: 20 planks and 10 nails.",
		"FLOOR HATCH LADDER: 5 planks and 10 nails.",
		"",
		"STORAGE/MISC RECIPES:",
		"",
		"GUN RACK PLANKS: 10 planks + Handsaw.",
		"GUN RACK (WOOD): 10 gun rack planks + 45 nails.",
		"SUPPLY CRATE: 10 planks + 90 nails.",
		"GEAR STAND: 10 planks + 50 nails.",
		"GUN WALL (METAL): 5 sheet metal + 40 nails.",
		"GUN WALL (WOOD): 10 planks + 40 nails.",
		"TOOL TABLE: 5 planks + 45 nails.",
		"WALL SHELF (WOOD): 5 planks + 50 nails.",
		"CAR WORKBENCH: 5 sheet metal + 60 nails.",
		"TIRE RACK: 1 sheet metal + 30 nails.",
		"RAID ALARM STATION: 10 planks + 50 nails.",
		"CAMO SHELTER: Kit: Rope + 2 small sticks, Shelter: 1 camo net, 4 long sticks.",
		"",
		"RAIDING RECIPES:",
		"",
		"BREACHING CHARGE: Explosive + Radio.",
		"EXPLOSIVE: 5x Gunpowder + Burlap Sack.",
		"GUNPOWDER: Charcoalpowder + Sulfurpowder."
    ],
    "ServerTab4": [
        "We run several quality-of-life mods and some custom-made mods for added immersion. Here is a list of important info.",
		"",
		"Check your controls under Key Bindings -> ZEN. You may want to be aware of some of them and change them if necessary.",
		"",
		"Quests: Obviously you will have noticed we run several Expansion mods. These are only to enable quests. There are several",
		"quests which you can undertake on Livonia - quests for Chernarus and Sakhal are in the works but will take a while to develop.",
		"",
		"Markets: We also run Expansion markets, to give questers something to spend their rewards on. But the items sold at markets are",
		"mostly cosmetic and/or items of convenience - to truly get ahead on our servers you'll need to loot like a regular loot goblin.",
		"Currently the only place to buy and sell things is at Sanctuary on Livonia - but fear not! You can easily travel there from any map.",
		"",
		"MapLink: This mod allows you to move your character between maps. View an in-game vanilla map to see the transfer points.",
		"If you die on a server, your character will respawn on that server. If you move servers and logout, next time you login",
		"your character will be automatically redirected to whichever server they last logged out alive on.",
		"",
		"MapLink Chat: If you find a personal radio, a field transceiver, or a wearable GPS watch, you can press the P key to open",
		"the map link chat window. This window can be used to communicate via text with any other players on any of our servers.",
		"",
		"ZenModPack: This mod is made by the server admin, Zenarchist. This modpack includes a huge amount of custom content which",
		"has been carefully designed to compliment the base game. There's too many features to list, so discover them in-game, but",
		"none of them particularly radically change the core feel of the game. The biggest ones you should be aware of are:",
		"",
		"Sleeping Mod: This mod requires you to sleep every now and then to avoid your character falling unconscious and having lowered",
		"immunity. Sleeping by a fire, indoors, or in a sleeping bag will speed up your rest and may even provide benefits to your character.",
		"At full rest you have about 3-6 hours of time before needing to sleep again depending on your character's weight and activity level.",
		"",
		"Raid Alarm: If you find a raid alarm at a military loot spawn you can set it up at your base to be notified on Discord whenever",
		"someone attacks your base to give you a chance to defend it. Attach a Field Transceiver to it with a screwdriver and car battery.",
		"",
		"Map Markers & Notes: If you find a pen, you can use it to write notes on paper (behave - we monitor for toxicity) and even place",
		"map markers on your vanilla maps. You will still need a compass and a GPS to be able to see where you're going.",
		"",
		"Immersive Nights: If the sky is extremely overcast when night falls, then the server will use dark night config - so keep a torch handy!",
		"",
		"RaG Basebuilding: Press ARROW DOWN to enable snapping. Press ARROW DOWN to disable snapping. Press ARROW UP to rotate with",
		"MouseWheel at the current snapping point. Press ARROW RIGHT to cycle through the various snap points.",
		"",
		"For detailed information on our custom mods click the WIKI button below - this wiki is designed for server admins, but also contains",
		"useful information for players who want to know how the mods function and what their various features are.",
		"",
		"NOTE: Most but not ALL mods listed in the wiki are enabled - you'll have to find out in-game which ones are active."
    ],
    "ShowPlayerCount": 1, // Enable/disable showing online player count
    "PlayerCountText": "Survivors: ",
    "RestartText": "Next Restart: ", // List of server restart times (this are the hour of day - if you restart at half hour intervals just set this all blank to disable)
    "Restarts": [
        0,
        4,
        8,
        12,
        16,
        20
    ]
}

PlayerBanConfig.json

This file is for applying soft-bans. The player isn't really banned by CFTools or BattlEye, they're just kicked from the server when they login and notified of why. Good for punishing players temporarily for whatever dumb shit they did while allowing them to come back after a short timeout.

{
    "KickBannedPlayerSecs": 60, // How long to leave the player online before kicking
    "BanTeleportX": 1000.0, // Optional location to teleport the player to (eg. you can place a prison with no exit using DayZ Editor)
    "BanTeleportY": 1000.0,
    "UnbanTeleportX": 0.0, // Where the player will be teleported to when they're unbanned
    "UnbanTeleportY": 0.0,
    "UnbanMessage": "Your ban has been lifted. Please review our rules, as any further offences could result in a permanent ban - not just from our servers, but potentially all regional servers.",
    "PlayerBans": [
        {
            "SteamID": "example123",
            "Message": "exampleMsg",
            "Year": 2023, // Unban time date
            "Month": 6,
            "Day": 7,
            "UnbanTeleportX": 0.0, // Optional override for specific players to be teleported after unban
            "UnbanTeleportY": 0.0,
            "KillOnUnban": 0, // Enable/disable forcing the player to respawn when they're unbanned
            "UnbanMessage": "", // Optional override for generic unban message
            "Unbanned": 0 // Don't touch this unless you want to force an unban - the mod uses this to tell if it's time to unban the player or not
        }
    ]
}

ServerContactConfig.JSON

This file is for the optional in-game Discord contact feature. Place your webhook(s) in the list, MessageTitle is what gets sent to the Discord to identify it as a player message to the admins, and ResponseMessage is what gets sent back to the player when their report is successfully relayed.

{
    "DiscordWebhooks": [
		"https://discord.com/api/webhooks/1379367614425595934/CnAf0y2HRag6vn0DyQ4SQhhWYSV6kM2e9kRA-Bz0xVDH7b1yXeuOzsc0Y8m-PamsTq"
	],
    "MessageTitle": "Player Contact",
    "ResponseMessage": "Thanks %playername%, your report has been received - an admin will investigate ASAP."
}