Skip to content

config.yml Reference

The main configuration file plugins/Craftorithm/config.yml controls core plugin behavior.

Configuration Keys

Basic Settings

KeyTypeDefaultDescription
check_updatebooleantrueCheck for updates on startup
debugbooleanfalseDebug mode

Recipe Settings

KeyTypeDefaultDescription
remove_all_vanilla_recipebooleanfalseRemove all vanilla recipes
enable_anvil_recipebooleantrueEnable custom anvil recipes
max_reg_recipe_per_tickinteger20Max recipes registered per tick (anti-lag)

Item Settings

KeyTypeDefaultDescription
item_plugin_hook_prioritylist(ordered list)External item plugin detection priority
cannot_craft_itemslist[]Item IDs that cannot be used in crafting

Command Settings

KeyTypeDefaultDescription
main_command_aliaseslist[cra, craft, crafto]Main command aliases

Integration Settings

KeyTypeDefaultDescription
bstatsbooleantrueEnable bStats statistics
reload_when_ia_reloadbooleantrueAuto-reload when ItemsAdder reloads

Example

yaml
# Plugin config version
config_version: 2
# Whether to check for version updates
check_update: true
# Whether to remove all vanilla recipes
remove_all_vanilla_recipe: false
# Whether to enable plugin anvil recipes
enable_anvil_recipe: true
# Whether to enable bStats usage data collection
bstats: true
# Whether to reload Craftorithm when ItemsAdder reloads
reload_when_ia_reload: true
# Whether to enable debug mode
debug: false
# Maximum number of recipes registered per tick
max_reg_recipe_per_tick: 20
cannot_craft_items: []
# Hook item plugins in the order listed above for item detection priority
# Item plugins not in this list will not be hooked unless they actively hook into Craftorithm
item_plugin_hook_priority:
  - CraftEngine
  - Nexo
  - AzureFlow
  - NeigeItems
  - ItemsAdder
  - Oraxen
  - EcoItems
  - ExecutableItems
  - MMOItems
  - MythicMobs
main_command_aliases:
  - cra
  - craft
  - crafto
not_convert_listener_classes:
  - a4.papers.chatfilter.chatfilter.events.AnvilListener
  - com.ghostchu.quickshop.shade.tne.menu.paper.listener.PaperInventoryClickListener
  - com.earth2me.essentials.EssentialsPlayerListener
  - net.coreprotect.listener.player.InventoryChangeListener
  - net.coreprotect.listener.player.CraftItemListener
  - com.extendedclip.deluxemenus.listener.PlayerListener
  - com.dre.brewery.listeners.InventoryListener
  - com.xyrisdev.svalues.shaded.library.menu.MenuManager$InventoryListener
  - me.arcaniax.hdb.listener.InventoryListener
  - net.momirealms.craftengine.bukkit.item.listener.ItemEventListener
  - net.momirealms.customfishing.bukkit.hook.BukkitHookManager
  - net.momirealms.customfishing.bukkit.market.BukkitMarketManager
  - dev.jsinco.recipes.listeners.Events
  - fr.moribus.imageonmap.image.MapInitEvent
  - com.badbones69.crazycrates.paper.listeners.crates.types.WarCrateListener
  - com.ryderbelserion.fusion.paper.api.builders.gui.listeners.GuiListener
  - club.kid7.bannermaker.pluginutilities.gui.CustomGUIInventoryListener

基于 GPL-3.0 许可证发布