Now supports items 1.21.4!! Please leave a review and ask for help via Discord.
DisableCraft is a Minecraft plugin compatible with version 1.21.4, designed to prevent specific players from crafting certain items.
Key Features:
Group-Based Crafting Rules – Assign different crafting restrictions to groups of players, allowing for flexible permissions.
Customizable Messages & Permissions– Configure messages and permissions to suit your server's needs.
Code (Text):
Permissions:
disablecraft.admin - admin permission for DisableCraft.
disablecraft.pypass - bypass crafting restrictions.
disablecraft.group<number> - group <number> crafting permissions
Code (Text):
Commands:
/disablecraft – Displays the help menu.
/disablecraft reload – Reloads the plugin configuration.
/disablecraft help – Provides a link to the plugin’s Discord support.
Example config.yml File:
Code (YAML):
# ============================== # DisableCraft Configuration File # ============================== # This configuration file allows you to customize the behavior of the DisableCraft plugin. # You can restrict crafting for specific items, groups, or worlds, and configure bypass permissions.
# ================================================== # General Plugin Settings # ================================================== DisableCraftSettings:
enabled: true
# Enable or disable the entire plugin (true/false). Set to false to completely disable the plugin. enabled-worlds: # List of worlds where the plugin is active. Add world names here to enable restrictions in specific worlds. - world
- world_nether
# ================================================== # Bypass Permission Settings # ================================================== PyPassSettings:
enabled: true
# Enable or disable the bypass permission system (true/false). permission: disablecraft.pypass
# The permission required to bypass crafting restrictions. Default: "disablecraft.pypass".
# ================================================== # Crafting Restriction Groups # ================================================== # Each group defines a set of crafting restrictions for players with specific permissions. # You can create multiple groups by following the example below. Group-1:
permission: disablecraft.group1
# The permission required to be affected by this group's restrictions. block-all-items: false
# If true, all crafting is blocked for this group. No need to specify items in the list. list: # List of items that cannot be crafted by this group. Use Minecraft material names (e.g., DIAMOND_SWORD). - DIAMOND_SWORD
- ENCHANTED_GOLDEN_APPLE
message: "&c[Group 1] &6Crafting restricted for balance reasons"# Message sent to players when crafting is blocked. enable-message: true
# Enable or disable sending messages to players in this group (true/false). Group-2:
permission: disablecraft.group2
block-all-items: true
# If true, all crafting is disabled for this group. The "list" field is ignored. list: []# Leave empty if "block-all-items" is true. message: "&c[Group 2] &4All crafting is disabled for this group" enable-message: false
# If false, no message will be sent to players in this group.
# Example of adding a new group: # Group-3: # permission: disablecraft.group3 # block-all-items: false # list: # - DIAMOND_SWORD # message: "&c[Group 3] &4Example crafting restriction!" # enable-message: true
# ================================================== # Command Messages # ================================================== # Customize the messages sent by the /disablecraft command. messages:
no-permission: "&cYou need &4disablecraft.admin &cto use this command!"# Message shown when a player lacks permission. reload-success: "&aConfiguration reloaded successfully!"# Message shown when the /disablecraft reload command is executed. discord-message: "&9[Discord] &7Click to join our Discord server!"# Hover text for the clickable Discord link. discord-link: "https://discord.gg/hhbwRygDze"# URL of the Discord server.
# ================================================== # Notes for Administrators # ================================================== # 1. Permissions: # - Players need the appropriate group permission (e.g., disablecraft.group1) to be affected by restrictions. # - Admins need "disablecraft.admin" to use the /disablecraft command. # # 2. Reloading Config: # - Use "/disablecraft reload" to reload the configuration without restarting the server. # # 3. Adding New Groups: # - Copy and paste an existing group (e.g., Group-1) and modify its settings. # - Ensure unique group names (e.g., Group-3, Group-4). # # 4. Material Names: # - Use valid Minecraft material names (case-sensitive). For example: # - DIAMOND_SWORD # - ENCHANTED_GOLDEN_APPLE # - NETHERITE_INGOT # # 5. Color Codes: # - Use "&" followed by a color code to format messages. For example: # - "&a" for green # - "&c" for red # - "&9" for blue # - Use online tools to generate color codes if needed.
Note: This plugin is a recreated version of LimitCrafting. Thank you!