▶️ ЗАБЕРИ СВОИ 8 ПОДАРКОВ 🎁 ПРИ СОЗДАНИИ СВОЕГО МАЙНКРАФТ СЕРВЕРА
Плагины/CraftGuard
CraftGuard

CraftGuard

A lightweight, highly configurable Minecraft plugin for managing restrictions for workstations on a per-world basis.

78
1
CraftGuard Banner

CraftGuard

Available for PaperMC Available for PurpurMC

CraftGuard Logo Java License Discord

History CraftGuard is the official evolution of FlameAntiCraft. All development and new features now focus on CraftGuard.

CraftGuard gives you powerful, per-world control over crafting, workstations, containers, and portals! Precise management for any server type.

FeaturesInstallCommandsConfigDevelopers


What is CraftGuard?

CraftGuard is a Minecraft server plugin that provides granular control over what players can interact with! Crafting Tables, Furnaces, Portals, Containers, and more, down to the individual world level.

Perfect for server networks with creative worlds, adventure maps, minigames, or survival hubs that need different rules.

Why CraftGuard?

  • Per-World Control — Different rules for every world, not just global toggles
  • Workstation Protection — Control 15+ workstation types individually (anvil, furnace, blast furnace, smoker, enchantment table, brewing stand, smithing table, etc.)
  • Container Security — Lock down chests, ender chests, shulker boxes, and more
  • Portal Management — Restrict nether/end portals per world
  • Flexible Storage — Use YAML, H2, MySQL, MariaDB, PostgreSQL, MongoDB, or Redis
  • Export & Import — Migrate settings between servers or backup with a single command
  • Interactive GUI — Full in-game management interface with real-time status indicators
  • Multi-Language — Available in 13 languages out of the box
  • Auto-Migration — Configs upgrade automatically between versions
  • PlaceholderAPI — Dynamic placeholders for scoreboards, holograms, and messages

Features

Core Functionality

  • Per-World Management — Control crafting, workstations, containers, and portals individually per world
  • Granular Toggles — Enable or disable specific workstations, containers, or portal types
  • Item Blockability — Block specific items from being crafted (e.g., diamond tools) while keeping the workstation functional
  • Emergency Lockdown — Instantly disable all interactions in a world for maintenance or events
  • Bypass Permissions — Allow specific players or groups to bypass restrictions

User Experience

  • Interactive GUI — In-game chest menu for visual feature management
  • Smart Commands — Simple syntax: /cg <world> <feature> <on|off|toggle>
  • Tab Completion — Full command and world name autocomplete
  • Real-Time Feedback — Status indicators and player notifications

Technical

  • Multiple Databases — YAML, H2, MySQL, MariaDB, PostgreSQL, MongoDB, Redis support
  • Export/Import — Move settings between storage backends or servers
  • Auto-Update — Built-in Modrinth update checker with optional auto-download
  • Audit Logging — Track blocked interactions for monitoring
  • WorldGuard Integration — Region-based bypass support

Supported Languages

English (US/UK), German, Spanish, Dutch, Chinese, French, Italian, Portuguese, Russian, Japanese, Korean, Arabic

Supported Features

CategoryFeatures
Corecrafting, nether-portal, end-portal, lockdown
Workstationsanvil, furnace, blast-furnace, smoker, enchanting, brewing, smithing, loom, cartography, grindstone, stonecutter
Containerschest, trapped-chest, ender-chest, copper-chest, shulker-box

How to Install

Requirements

  • Paper 1.21.11+ or compatible server (Purpur, Folia)
  • Java 25+
  • (Optional) PlaceholderAPI for extended placeholders
  • (Optional) WorldGuard for region-based bypass

Installation

  1. Download craftguard-2.2.0.jar from Modrinth
  2. Place the JAR in your server's plugins/ folder
  3. Start/restart the server
  4. Edit plugins/CraftGuard/config.yml to customize
  5. Use /cg help or /cg to get started

Quick Setup

# Block crafting in lobby world
/cg lobby crafting off

# Allow nether portals in survival
/cg survival nether-portal on

# Open management GUI
/cg

Commands

CommandDescriptionPermission
/cgOpen management GUIadmin
/cg helpShow help menuadmin
/cg <world> <feature> onEnable feature in worldadmin
/cg <world> <feature> offDisable feature in worldadmin
/cg <world> <feature> toggleToggle feature stateadmin
/cg reloadReload configurationadmin
/cg exportExport settings to fileadmin
/cg import <file>Import settings from fileadmin
/cg migrate <from> <to> [copy]Copy/move settings between worldsadmin

Permissions

PermissionDescriptionDefault
craftguard.adminFull access to all commandsOP
craftguard.bypass.*Bypass all restrictionsfalse
craftguard.bypass.<type>Bypass specific restrictionfalse

Configuration

Configuration files are located in plugins/CraftGuard/:

  • config.yml — Main settings (features, messages, effects)
  • locales/ — Language files for translations
  • worlds.yml — World-specific state storage

Key Config Options

settings:
  enabled: true          # Master toggle
  language: en-us        # Locale
  default-state: true   # Default for new worlds

item-blockability:
  enabled: true
  blocked-items:
    CRAFTING:
      - DIAMOND_SWORD
      - NETHERITE_*

PlaceholderAPI

CraftGuard provides dynamic placeholders:

World State

  • %craftguard_world_state% — Current world state (enabled/disabled)
  • %craftguard_world_state_<type>% — Specific feature state
  • %craftguard_world_<world>_<type>% — Any world's state

Stats

  • %craftguard_stats_global_total% — Total blocks
  • %craftguard_stats_type_<type>_total% — Blocks by type
  • %craftguard_stats_world_<world>_total% — Blocks by world

Developers

Building

git clone https://github.com/itzzjustmateo/CraftGuard.git
cd CraftGuard
mvn clean package

API Usage

CraftGuard plugin = CraftGuard.getInstance();
ConfigManager cm = plugin.getConfigManager();

// Check if feature is enabled
boolean craftingEnabled = cm.isFeatureEnabled("survival", "crafting");

// Set feature state
cm.setFeatureEnabled("survival", "furnace", false);

License

See LICENSE.md. Attribution required for derivative works.


Support

Совместимость

Minecraft: Java Edition

1.21.x

Платформы

Поддерживаемые окружения

Сервер

Детали

Лицензия:LicenseRef-CraftGuard-License
Опубликован:2 месяца назад
Обновлён:1 неделю назад
Главная