Configuration
Zelly's Guard uses a fully modular architecture. Global settings live in config.yml, while each of its 14 feature modules owns an isolated configuration file under modules/<module>/config.yml. Multi-world rules and profiles are managed through modules/worlds/config.yml. Files are automatically merged on startup and reloaded with /zg reload. Module activation switches take effect upon server restart. The player hub is accessible via /zg user, staff administration through /zg admin, and recommended defaults can be applied using /zg recommended.
config.yml
General
| Key |
Default |
Notes |
config-version |
3 |
Config schema version; upgraded automatically |
language_file |
es |
Active language code (en or es) |
fallback_string |
Unknown translation |
Text shown when a translation is missing |
replace_translations |
true |
On update, merge new translation keys while keeping edited ones |
use_dialogs |
true |
Reserved switch for future interfaces; currently ignored (dialogs are always used and no other interface is implemented) |
bedrock_forms |
true |
Bedrock players see native Floodgate forms when Floodgate is installed |
setup_notice |
true |
Admins see the first-start notice until the recommended setup is applied or this key is false |
apply_recommended_on_start |
false |
Apply recommended all on the next start, then reset to false |
admin_tiers.enabled |
false |
Segment admin capabilities by tier. False means zguard.admin grants every admin capability |
blockprot_recommendation |
true |
Show the recommendation to install BlockProt Reloaded when it is absent. It never controls the link when BlockProt is present |
colorblind_default |
false |
Default colorblind display mode |
auto_reload.enabled |
true |
Automatically watch and hot-reload changed configuration files |
auto_reload.check_interval_seconds |
3 |
Polling interval in seconds for configuration file watching |
auto_reload.notify_admins |
true |
Notify online admins when automatic reloads trigger |
Menus render natively via Paper Dialogs for Java 26.x players (with optional HollowKraft client UI via Zelly's Nexus), using DialogAfterAction.NONE with ClickCallback.UNLIMITED_USES (with per-player, per-action idempotency guards on destructive actions) and closing directly via Audience#closeDialog() without calling closeInventory(), and Bedrock players receive native Floodgate modal forms when Floodgate is present and bedrock_forms is true. use_dialogs is a reserved switch for future interfaces and is currently ignored: dialogs are always used and no other interface is implemented. Removed legacy keys (dialogs, gui-mode, gui_mode, commands.register-root-aliases, commands.disabled-root-aliases, prank_inventory, prank.inventory) in config.yml or module configs are cleaned automatically on boot with a single summary warning line.
Nexus link
| Key |
Default |
Notes |
nexus.follow_language |
true |
Follow the language selected in Zelly's Nexus (Not applied yet) |
nexus.integrate_command_and_menu |
true |
Register Guard inside Zelly's Nexus user/admin hubs when both plugins run |
Modules (restart required)
Each module controls its enabled toggle inside its own modules/<module>/config.yml file (legacy root modules.<id> entries are migrated automatically).
| Key |
Default |
Notes |
modules/integrations/config.yml |
false |
Ecosystem integration detection and boot report |
modules/updater/config.yml |
false |
Version update checker |
modules/debug/config.yml |
false |
Diagnostics suite |
modules/regions/config.yml |
true |
Region engine and boundary protection |
modules/stones/config.yml |
true |
Protection stones |
modules/claims/config.yml |
true |
Golden shovel claim tool and claim management |
modules/blacklist/config.yml |
false |
Experimental block and item restrictions (disabled by default) |
modules/locks/config.yml |
true |
BlockProt Reloaded link and lock synchronization |
modules/logging/config.yml |
false |
Experimental action logging (disabled by default) |
modules/combat/config.yml |
true |
Combat tag and combat log protection |
modules/pvp/config.yml |
true |
Personal and regional PvP control |
modules/graves/config.yml |
true |
Death grave protection and coordinate tracking |
modules/antixray/config.yml |
false |
Experimental anti-xray heuristics and mining alerts (disabled by default) |
modules/worlds/config.yml |
true |
Multi-world profiles and transfer rules |
A disabled module still registers its commands; using one explains that the module is disabled and shows both ways out (edit its folder or run /zg recommended <module>).
modules/regions/config.yml
| Key |
Default |
Notes |
enabled |
true |
Module switch; requires a restart |
max_per_player |
3 |
Maximum regions or claims per player |
min_size |
4 |
Minimum claim size in X and Z |
max_size |
500 |
Maximum claim size in X and Z |
default_auto_expand_vertical |
true |
Expand claims from bedrock to sky (Not applied yet) |
entry_titles |
true |
Titles on region enter and leave (Not applied yet) |
visualizer_duration_seconds |
15 |
Boundary particle duration (Not applied yet) |
visualizer_particle |
FLAME |
Boundary particle type (Not applied yet) |
modules/claims/config.yml
| Key |
Default |
Notes |
enabled |
true |
Module switch; requires a restart |
tool_material |
GOLDEN_SHOVEL |
Material of the claim creation wand |
selection_corner_particle |
HAPPY_VILLAGER |
Particle displayed at selected corners (Not applied yet) |
modules/combat/config.yml
| Key |
Default |
Notes |
enabled |
true |
Module switch; requires a restart |
tag_duration_seconds |
15 |
Combat tag duration after dealing or receiving damage |
disable_elytra |
true |
Prevent elytra flight while tagged |
punish_disconnect |
true |
Punish combat disconnects |
punish_action |
KILL |
Action on combat disconnect (KILL or NONE) |
actionbar_timer |
true |
Display combat timer in action bar |
modules/graves/config.yml
| Key |
Default |
Notes |
enabled |
true |
Module switch; requires a restart |
expiration_minutes |
60 |
Minutes before a grave unlocks for public loot (Not applied yet) |
retain_xp_percent |
80 |
Percentage of experience preserved in the grave (Not applied yet) |
give_compass |
true |
Give player a compass pointing to their grave |
hologram |
true |
Floating hologram above the grave (shown in /zg graves info only; Not applied yet) |
modules/locks/config.yml
| Key |
Default |
Notes |
enabled |
true |
Module switch; requires a restart |
auto_lock_on_place |
true |
Automatically lock containers placed inside own claims (Not applied yet) |
notify_owner_on_denied |
true |
Notify the owner on unauthorized access attempt (Not applied yet) |
max_locks_per_player |
50 |
Maximum locked blocks per player |
modules/pvp/config.yml
| Key |
Default |
Notes |
enabled |
true |
Module switch; requires a restart |
default_enabled |
true |
Default PvP state for new players |
toggle_cooldown_seconds |
30 |
Cooldown period between /zg pvp toggles |
modules/antixray/config.yml
| Key |
Default |
Notes |
enabled |
false |
Module switch; requires a restart |
alert_staff |
true |
Alert staff upon suspicious mining patterns (Not applied yet) |
suspicion_threshold |
10 |
Ore-mining rate threshold (Not applied yet) |
modules/logging/config.yml
| Key |
Default |
Notes |
enabled |
false |
Module switch; requires a restart |
retention_days |
30 |
Days to retain logged actions in database (Not applied yet) |
queue_batch_size |
100 |
In-memory action buffer flush size |
modules/blacklist/config.yml
| Key |
Default |
Notes |
enabled |
false |
Module switch; requires a restart |
notify_admins |
true |
Notify admins on blocked item/block actions (Not applied yet) |
denied_blocks |
[] |
List of restricted material names (Not applied yet) |
modules/database/config.yml
Storage settings take effect on restart. A legacy root database.yml is copied here,
verified, and renamed to database.yml.migrated.
| Key |
Default |
Notes |
enabled |
true |
Module switch; requires a restart |
storage.type |
sqlite |
sqlite or mysql |
storage.sqlite.file |
guard.db |
SQLite file name |
storage.mysql.host |
localhost |
MySQL host |
storage.mysql.port |
3306 |
MySQL port |
storage.mysql.database |
guard |
MySQL database |
storage.mysql.user |
guard |
MySQL user |
storage.mysql.password |
(empty) |
MySQL password |
storage.mysql.pool_size |
10 |
MySQL pool size |
modules/stones/config.yml
| Key |
Default |
Notes |
enabled |
true |
Module switch; requires a restart |
stone_block |
COAL_ORE |
Block that creates a protected area |
radius_x |
10 |
Protected blocks along X per side |
radius_y |
10 |
Protected blocks above and below |
radius_z |
10 |
Protected blocks along Z per side |
max_per_player |
5 |
Stones per player |
modules/worlds/config.yml
WorldProfileService manages world profiles across distinct server worlds (pvp and peaceful by default). Multiverse-Core world alias lookup is implemented through reflection, not verified against a real Multiverse-Core jar.
| Key |
Default |
Notes |
config-version |
1 |
World profile schema version |
enabled |
true |
Master toggle for world profile service |
worlds.pvp |
object |
Profile block for the pvp world |
worlds.pvp.enabled |
true |
Whether the pvp world profile is active |
worlds.pvp.world |
world_pvp |
Target Bukkit world name |
worlds.pvp.alias |
PvP |
Display alias |
worlds.pvp.environment |
NORMAL |
Dimension (NORMAL, NETHER, THE_END) |
worlds.pvp.difficulty |
HARD |
World difficulty |
worlds.pvp.game-mode |
SURVIVAL |
Default game mode |
worlds.pvp.pvp |
true |
PvP combat toggle |
worlds.pvp.allow-pranks |
true |
Allow prank commands (/zg prank, /zn prank) |
worlds.pvp.keep-inventory |
false |
Keep inventory on death |
worlds.pvp.respawn-world |
world_pvp |
Respawn world name |
worlds.pvp.spawn.x |
0 |
Spawn X (worlds.pvp.spawn) |
worlds.pvp.spawn.y |
64 |
Spawn Y |
worlds.pvp.spawn.z |
0 |
Spawn Z |
worlds.pvp.spawn.yaw |
0 |
Spawn yaw |
worlds.pvp.spawn.pitch |
0 |
Spawn pitch |
worlds.pvp.border.size |
10000 |
World border diameter (worlds.pvp.border) |
worlds.pvp.border.center-x |
0 |
World border center X |
worlds.pvp.border.center-z |
0 |
World border center Z |
worlds.pvp.claims.enabled |
true |
Claims toggle (worlds.pvp.claims) |
worlds.pvp.claims.max-claims |
4 |
Max claims per player |
worlds.pvp.claims.max-size |
64 |
Max claim side length |
worlds.pvp.blockprot.enabled |
true |
BlockProt locking toggle (worlds.pvp.blockprot) |
worlds.pvp.blockprot.max-locks |
64 |
Max locks per player |
worlds.pvp.chat-profile |
pvp |
Linked Nexus chat profile |
worlds.pvp.tab-profile |
pvp |
Linked Nexus tab profile |
worlds.pvp.death-profile |
pvp |
Linked Nexus death profile |
worlds.pvp.resource-pack-profile |
java-test |
Resource pack profile name |
worlds.pvp.item-transfer.allow-from |
[peaceful] |
Source profiles allowed (worlds.pvp.item-transfer) |
worlds.pvp.item-transfer.allow-to |
[peaceful] |
Destination profiles allowed |
worlds.pvp.item-transfer.tax |
0 |
Item transfer tax percentage |
worlds.pvp.economy-profile |
none |
Economy profile (none at initial launch) |
worlds.peaceful |
object |
Profile block for the peaceful world |
worlds.peaceful.enabled |
true |
Whether the peaceful world profile is active |
worlds.peaceful.world |
world_peaceful |
Target Bukkit world name |
worlds.peaceful.alias |
Peaceful |
Display alias |
worlds.peaceful.environment |
NORMAL |
Dimension (NORMAL, NETHER, THE_END) |
worlds.peaceful.difficulty |
HARD |
World difficulty |
worlds.peaceful.game-mode |
SURVIVAL |
Default game mode |
worlds.peaceful.pvp |
false |
PvP combat toggle |
worlds.peaceful.allow-pranks |
false |
Allow prank commands |
worlds.peaceful.keep-inventory |
true |
Keep inventory on death |
worlds.peaceful.respawn-world |
world_peaceful |
Respawn world name |
worlds.peaceful.spawn.x |
0 |
Spawn X (worlds.peaceful.spawn) |
worlds.peaceful.spawn.y |
64 |
Spawn Y |
worlds.peaceful.spawn.z |
0 |
Spawn Z |
worlds.peaceful.spawn.yaw |
0 |
Spawn yaw |
worlds.peaceful.spawn.pitch |
0 |
Spawn pitch |
worlds.peaceful.border.size |
10000 |
World border diameter (worlds.peaceful.border) |
worlds.peaceful.border.center-x |
0 |
World border center X |
worlds.peaceful.border.center-z |
0 |
World border center Z |
worlds.peaceful.claims.enabled |
true |
Claims toggle (worlds.peaceful.claims) |
worlds.peaceful.claims.max-claims |
8 |
Max claims per player |
worlds.peaceful.claims.max-size |
64 |
Max claim side length |
worlds.peaceful.blockprot.enabled |
true |
BlockProt locking toggle (worlds.peaceful.blockprot) |
worlds.peaceful.blockprot.max-locks |
128 |
Max locks per player |
worlds.peaceful.chat-profile |
peaceful |
Linked Nexus chat profile |
worlds.peaceful.tab-profile |
peaceful |
Linked Nexus tab profile |
worlds.peaceful.death-profile |
peaceful |
Linked Nexus death profile |
worlds.peaceful.resource-pack-profile |
java-test |
Resource pack profile name |
worlds.peaceful.item-transfer.allow-from |
[pvp] |
Source profiles allowed (worlds.peaceful.item-transfer) |
worlds.peaceful.item-transfer.allow-to |
[pvp] |
Destination profiles allowed |
worlds.peaceful.item-transfer.tax |
0 |
Item transfer tax percentage |
worlds.peaceful.economy-profile |
none |
Economy profile (none at initial launch) |
BlockProt Reloaded
Guard works without BlockProt Reloaded, but it cannot protect individual blocks on its
own. When the plugin named BlockProtReloaded (or BlockProt) is installed and enabled,
Guard links to it and /zg lock reports that it is active. When it is absent, /zg lock
and the locks screen show a recommendation controlled by blockprot_recommendation, and
the console logs the same hint when the key is true. Direct menu access is available via /zg blockprot.
Language files
The lang/ folder holds lang.yml (the list of enabled bundled languages) and the
bundled translations_en.yml and translations_es.yml, kept at full key parity. On
startup and on reload the bundled files are synchronized into the data folder; with
replace_translations: true, newly added keys are merged while edited texts are
preserved.
The plugin data folder contains config.yml, modules/worlds/config.yml, 14 modular
folders under modules/<module>/config.yml, the lang/ folder, and the database file (guard.db by default).