Description
# π‘οΈ GriefPrevention — Self-Service Land Claiming & Territory Protection
**GriefPrevention** brings a complete, player-friendly territory protection system to your server. Players can easily create, resize, visualize, customize, and manage their own protected claims using intuitive in-game tools, commands, and a sleek management interface—without waiting for staff intervention.
---
## β¨ Key Features
### πͺ Easy Claiming & Visual Tools
- **Automatic First Chest Claim:** Optionally protects a new player's starter area automatically when placing their first chest in the wilderness (configurable radius, default `5`).
- **Claim Scepter (`GriefPrevention_Claim_Tool`) & Inspection Branch (`Wood_Beech_Branch_Long`):** Select two corners to create or resize claims, create subdivisions inside parent claims, or inspect any area with **15s / 30s floating ghost block borders**.
- **Interactive Management Menu (`/gp` / `/claimmenu`):**
- Toggle all **21 protection flags** with instant feedback.
- Customize **claim display name** (shown on map & chat) and **custom map region colors** (Gold, Green, Blue, Red, Purple, Cyan, or Auto).
- **Directional Resize Modal:** Expand or shrink North, South, East, or West by 1, 5, 10, or 25 blocks per click.
- Teleport to claims, view trusted members, highlight borders, and claim/refund claim blocks.
### πΊοΈ World Map Integration
- Displays claim regions directly on the **World Map** with per-claim custom colors and markers (`Home.png` pin with claim name, owner, and dimensions).
- Toggleable visibility per claim via the `MAP_VISIBLE` flag.
### π 21 Configurable Protection Flags
Organize combat, building, access, and movement rules individually per claim:
- **Combat & Entities:**
- `PVP` — Player vs Player combat (melee & projectiles).
- `PVE` — Monster/NPC combat against players (blocks both melee hits and NPC bow arrows!).
- `NPC_DAMAGE` — Prevents visitors from hurting NPCs/animals inside your claim.
- `MOB_SPAWNING` — Controls monster spawning inside the claim.
- `HOSTILE_ENTRY` — Blocks hostile NPCs from entering the claim while completely ignoring passive, neutral, mounted, and tamed animals/pets.
- **Building & Environment:**
- `BUILD` — Master building switch for trusted members.
- `BLOCK_BREAK` — Visitor block breaking.
- `BLOCK_PLACE` — Visitor block placing.
- `EXPLOSIONS` — Explosion damage protection.
- `FIRE_SPREAD` — Fire spread control.
- `PREVENT_STRUCTURES` — Blocks external structure/dungeon mods & prefabs from spawning inside or near claims (configurable buffer radius, default `30` blocks).
- **Access, Containers & Items:**
- `CHEST_ACCESS` — Visitor access to chests, barrels, crates, furnaces, drawers, etc.
- `USE` — Visitor interaction with benches and mechanisms.
- `DOOR_ACCESS` — Visitor access to doors, gates, and trapdoors.
- `LIGHT_ACCESS` — Visitor access to torches, lanterns, lamps, and braziers.
- `ITEM_PICKUP` — Visitor item pickup inside claims.
- `ITEM_DROP` — Visitor item dropping inside claims.
- **Movement, UI & Map:**
- `ENTRY` — Allow/block player entry into the claim.
- `FALL_DAMAGE` — Enable/disable fall damage inside claims.
- `NOTIFY` — Chat enter/exit messages.
- `MAP_VISIBLE` — Show/hide the claim on the server map.
### π€ Trust Hierarchy & Subdivision Support
Grant fine-grained access to friends or `public`/`*`:
- `/trust <player>` (`BUILD`) — Full building + container + access permissions.
- `/containertrust <player>` (`CONTAINER`) — Chests, crafting containers, pickups, and NPC interaction.
- `/accesstrust <player>` (`ACCESS`) — Doors, gates, lights, benches, and claim teleport.
- `/permissiontrust <player>` (`PERMISSION`) — Manager rights inside the claim.
- `/untrust <player|public>` & `/trustlist`.
### β±οΈ Claim Block Economy & Admin Tools
- Configurable starter blocks (`100`), hourly accrual (`100/hour`, up to `50,000`), bonus blocks, and inactive claim expiration.
- **OP / Admin Bypass:** Server Operators (`OP` / `hytale:Admin`), `griefprevention.admin`, `*`, or `/ignoreclaims` admins automatically bypass claim restrictions for moderation and chest/block inspection.
---
## π Commands
### Player Commands
| Command | Description |
| :--- | :--- |
| `/claim` | Creates a claim around your current position |
| `/gp` / `/claimmenu` | Opens the interactive Claim Management UI |
| `/claimtool` (`/gpwand`, `/gptool`) | Gives Claim Scepter & Inspection Branch |
| `/claims` (`/claimslist`) | Lists your claims and claim block balance |
| `/claimname <name\|clear>` | Sets a custom claim name |
| `/claimflag <flag> <value>` | Toggles a flag, color, or greeting/farewell message |
| `/claimflags` | Lists all 21 flags and current states |
| `/claimexplosions` | Toggles explosions in the current claim |
| `/subdivideclaims` / `/basicclaims` | Switches between subdivision and basic claim modes |
| `/abandonclaim` / `/abandonallclaims confirm` | Deletes claim(s) and refunds claim blocks |
| `/giveclaim <player>` | Transfers ownership of the current claim |
| `/trapped` | Safely teleports you outside if trapped in someone else's claim |
### Admin Commands (`griefprevention.admin` / OP)
- `/adminclaims` — Switch to Server/Admin claim mode (unlimited blocks)
- `/ignoreclaims` — Toggle admin bypass mode
- `/deleteclaim` / `/deleteallclaims <player>` / `/deletealladminclaims confirm`
- `/adjustbonusclaimblocks <player> <amount>` / `/setclaimblocks <player> <amount>`
- `/clearghosts` — Purges any orphan ghost boundary blocks
- `/gpreload` — Reloads config and claim data
---
## π Support the Project / Donate
If **GriefPrevention** helps keep your server safe and fun, consider supporting continued development:

- **PIX (Brazil):**
* **PIX Copia e Cola (Copy & Paste Code):**
```text
PIX Copia e Cola (Copy & Paste Code)
```
================================================================
---
# π‘οΈ GriefPrevention (Português BR) — Proteção de Terrenos & Anti-Griefing
O **GriefPrevention** é um sistema completo de reivindicação e proteção de terrenos para servidores. Os jogadores podem criar, expandir, personalizar e gerenciar seus próprios terrenos pelo menu visual, ferramentas em jogo ou comandos — sem depender de administradores a todo momento.
---
## β¨ Principais Recursos
### πͺ Ferramentas Práticas e Menu Visual (`/gp`)
- **Proteção Automática do Primeiro Baú:** Protege automaticamente a área inicial ao colocar o primeiro baú fora de terrenos protegidos (raio configurável, padrão `5`).
- **Cetro de Reivindicação (`GriefPrevention_Claim_Tool`) & Galho de Inspeção (`Wood_Beech_Branch_Long`):** Marque dois cantos para criar, redimensionar, subdividir ou inspecionar terrenos com **Blocos Fantasma visuais nas bordas**.
- **Interface Completa (`/gp` ou `/claimmenu`):**
- Ative/desative todas as **21 flags de proteção** em tempo real.
- Altere o **nome personalizado do terreno** e escolha a **cor exibida no Mapa do Mundo** (Ouro, Verde, Azul, Vermelho, Roxo, Ciano ou Automática).
- **Controle Direcional de Dimensões:** Expanda ou recue o terreno para Norte, Sul, Leste ou Oeste em passos de `1`, `5`, `10` ou `25` blocos.
- Teleporte direto para o terreno, listagem de confiados, destaque de bordas e kit de ferramentas.
### πΊοΈ Integração com o Mapa do Mundo
- Exibe os terrenos diretamente no mapa com cores personalizadas e marcadores (`Home.png`) contendo nome, dono e dimensões.
- Pode ser ocultado individualmente pela flag `MAP_VISIBLE`.
### π 21 Flags de Proteção Configuráveis
Personalize cada detalhe do seu terreno:
- **Combate & Entidades:**
- `PVP` — Combate entre jogadores (corpo a corpo e projéteis).
- `PVE` — Dano de monstros/NPCs em jogadores (bloqueia tanto golpes físicos quanto flechas de arqueiros!).
- `NPC_DAMAGE` — Protege NPCs e animais dentro do terreno contra ataques de visitantes.
- `MOB_SPAWNING` — Controla o nascimento de monstros na área.
- `HOSTILE_ENTRY` — Bloqueia a entrada de NPCs hostis no terreno, **ignorando completamente animais passivos, neutros, montarias e animais domados/tamed**.
- **Construção & Ambiente:**
- `BUILD` — Construção geral para membros confiados.
- `BLOCK_BREAK` / `BLOCK_PLACE` — Quebra e colocação de blocos por visitantes.
- `EXPLOSIONS` — Proteção contra explosões.
- `FIRE_SPREAD` — Propagação de fogo.
- `PREVENT_STRUCTURES` — Impede que estruturas/dungeons/prefabs de outros mods gerem sobre seus terrenos ou no raio de proteção (padrão `30` blocos).
- **Acesso, Baús & Itens:**
- `CHEST_ACCESS` — Proteção de baús, barris, caixas, fornalhas e containers.
- `USE` — Uso de bancadas e mecanismos.
- `DOOR_ACCESS` — Acesso a portas, portões e alçapões.
- `LIGHT_ACCESS` — Interação com tochas, lanternas e lâmpadas.
- `ITEM_PICKUP` / `ITEM_DROP` — Pegar ou jogar itens no chão por visitantes.
- **Movimento, Avisos & Mapa:**
- `ENTRY` — Permitir ou bloquear a entrada de visitantes.
- `FALL_DAMAGE` — Dano por queda dentro do terreno.
- `NOTIFY` — Mensagens de entrada e saída no chat.
- `MAP_VISIBLE` — Exibição do terreno no mapa do servidor.
### π€ Sistema de Permissões (Trust) & Bypass de OP
- `/trust <jogador>` — Construção, baús e acesso total.
- `/containertrust <jogador>` — Baús, colheita e coleta de itens.
- `/accesstrust <jogador>` — Portas, luzes, bancadas e teleporte.
- `/permissiontrust <jogador>` — Permissão de gerente no terreno.
- `/untrust <jogador|public>` e `/trustlist`.
- **Bypass automático para Admins com OP:** Administradores com OP (`hytale:Admin`), permissão `griefprevention.admin` / `*` ou `/ignoreclaims` conseguem abrir baús, construir, quebrar blocos e gerenciar qualquer claim livremente.
---
## π Comandos Principais
- `/claim` — Cria um terreno ao redor da sua posição atual.
- `/gp` / `/claimmenu` — Abre o menu visual do terreno.
- `/claimtool` (`/gpwand`, `/gptool`) — Entrega o Cetro e o Galho de Inspeção.
- `/claims` — Lista seus terrenos e saldo de blocos.
- `/claimname <nome|clear>` — Define um nome personalizado para o terreno.
- `/claimflag <flag> <valor>` & `/claimflags` — Configura flags, cor e mensagens de entrada/saída.
- `/subdivideclaims` / `/basicclaims` — Cria subdivisões (lotes) dentro do terreno principal.
- `/abandonclaim` / `/abandonallclaims confirm` — Exclui o terreno e devolve os blocos.
- `/giveclaim <jogador>` — Transfere o terreno para outro jogador.
- `/trapped` — Resgata você caso fique preso no terreno de outro jogador.
- **Admin:** `/adminclaims`, `/ignoreclaims`, `/deleteclaim`, `/deleteallclaims`, `/deletealladminclaims`, `/adjustbonusclaimblocks`, `/setclaimblocks`, `/clearghosts`, `/gpreload`.
---
## π Apoie o Projeto / Doações via PIX
Se o **GriefPrevention** ajudou o seu servidor, considere apoiar o desenvolvimento! Qualquer valor ajuda muito:

- Banco:
- Chave PIX Aleatória: 128f9927-8938-4311-80d4-9ccd79ebcd23
- PIX Copia e Cola




