Debugging
infoInfoAbout 2 min
๐ Debugging
GriefDefender is a flag-driven protection system. Every in-game action is evaluated against a set of flag permissions. If you're unsure why something is allowed or blocked, the /gddebug tool helps identify the exact flag check and context involved.
๐ ๏ธ Command Syntax
/gddebug record [filter]๐ Filter Options
claimโ Only records events in the claim you're currently standing in.usernameโ Filters records for a specific user (e.g./gddebug record Notch).- Any custom string โ Used to help identify your debug session.
- No filter โ Captures all flag checks globally.
๐งช Examples
| Use Case | Command |
|---|---|
| Record all flag checks | /gddebug record |
| Record checks only in the current claim | /gddebug record claim |
| Record checks for a specific user | /gddebug record KratosKnox |
| Record with a custom filter label | /gddebug record my-test-session |
When you're done, paste the results with:
/gddebug pasteThis uploads the data and returns a clickable link containing the recorded flag checks.
๐ Sample Output (Pastebin Viewer)
Every debug session generates a table showing the details of every flag check triggered during the recording period.
๐ Metadata
| Key | Value |
|---|---|
| GD Version | 3.0.9 |
| Record Duration | 18 seconds |
| User | ALL |
| World | survival |
| Minecraft Version | 1.21.8 |
๐ Output Columns Explained
Each line in the output represents a flag permission check. Use the following breakdown to interpret each column:
| Column | Description |
|---|---|
| Flag | The base flag being checked (e.g. block-place, entity-spawn) |
| Definition | The matching Flag Definition used to determine behavior for this permission. Typically maps to entries from minecraft.yml or other preset files. |
| Trust | The trust level of the user in the claim (e.g. accessor, builder, manager) |
| Source | The entity or action that triggered the event (e.g. minecraft:player, spawnreason:natural) |
| Target | The entity, block, or item affected (e.g. minecraft:zombie, minecraft:chest) |
| Location | Coordinates, claim UUID, world, and claim type (e.g. admin, wilderness, basic) |
| User/Group | Who triggered the event โ a player, group, or default (server/system actions) |
| Contexts | All applicable contexts used during the check. These can include world, item used, tags, source, target, etc. |
| Result | Whether the flag was allowed (TRUE) or blocked (FALSE) |
๐ก Tips for Troubleshooting
- Always include
/gddebug pasteto get the link โ without it, the log wonโt be viewable. - Use
claimfiltering in heavily populated servers to reduce noise. - Pay attention to context stacks โ they are often the key to identifying incorrect permissions.
- If you're debugging trust issues, cross-check the trust column against the user's trust level in the claim.
FALSEresults mean a flag was blocked โ look for the specific context or target involved.
๐ Related Pages
- ๐งฉ Flag Guide โ Understand how flags, definitions, and GUI behavior work together in GriefDefender.
