[{"data":1,"prerenderedAt":492},["ShallowReactive",2],{"docs-\u002Fdocs":3},{"id":4,"title":5,"body":6,"description":482,"extension":483,"meta":484,"navTitle":485,"navigation":486,"path":487,"rawbody":488,"seo":489,"stem":490,"__hash__":491},"docs\u002Findex.md","MagicUtils",{"type":7,"value":8,"toc":472},"minimark",[9,12,25,30,41,55,81,85,107,111,114,148,152,328,332,344,354,431,440,444],[10,11],"hero",{},[13,14,15,16,20,21,24],"p",{},"The same stack also works well in multi-module projects where platform adapters\nonly bootstrap ",[17,18,19],"code",{},"MagicRuntime"," and the real feature logic lives in shared\n",[17,22,23],{},"common"," modules.",[26,27,29],"h2",{"id":28},"why-magicutils","Why MagicUtils",[13,31,32,33,36,37,40],{},"Every server platform solves the same problems differently: styled text,\nconfig files, commands, permissions, per-player language. Writing a plugin and a\nmod usually means learning ",[17,34,35],{},"ChatColor"," on one side and Minecraft's ",[17,38,39],{},"Text"," on the\nother, hand-rolling config loaders, and branching command code per dispatcher.",[13,42,43,44,51,52,54],{},"MagicUtils gives you one API for all of it, built on\n",[45,46,50],"a",{"href":47,"rel":48},"https:\u002F\u002Fdocs.advntr.dev\u002F",[49],"nofollow","Kyori Adventure"," so text you author once renders\ncorrectly on Bukkit, BungeeCord, Velocity, Fabric, and NeoForge. You write the\nfeature once against ",[17,53,19],{},"; the thin platform adapter is the only part\nthat changes. Concretely, that means:",[56,57,58,72,75,78],"ul",{},[59,60,61,62,67,68,71],"li",{},"One string with ",[45,63,66],{"href":64,"rel":65},"https:\u002F\u002Fdocs.advntr.dev\u002Fminimessage\u002Fformat.html",[49],"MiniMessage","\nor legacy ",[17,69,70],{},"&"," codes instead of per-platform colour handling.",[59,73,74],{},"Annotation-first commands with type parsers, options, and permissions instead\nof dispatcher plumbing.",[59,76,77],{},"Config models with validation and migrations instead of manual file parsing.",[59,79,80],{},"Per-player localisation and placeholders wired into the same call sites.",[26,82,84],{"id":83},"highlights","Highlights",[56,86,87,90,95,98,101,104],{},[59,88,89],{},"Bootstrap-first setup across Bukkit\u002FPaper\u002FFolia, BungeeCord, Velocity, Fabric,\nand NeoForge.",[59,91,92,94],{},[17,93,19],{}," owns typed services, named resources, and ordered shutdown.",[59,96,97],{},"Config supports JSON\u002FJSONC, YAML, TOML, validation, and migrations.",[59,99,100],{},"Typed commands provide parsers, options, permissions, suggestions, and shared\nroot-command policies.",[59,102,103],{},"Language, logger, diagnostics, placeholders, HTTP, and WebSocket are separate\nmodules that can be composed per project.",[59,105,106],{},"Platform adapters keep lifecycle and scheduling behavior native, including\nFolia region scheduling.",[26,108,110],{"id":109},"current-release-1274","Current release · 1.27.4",[13,112,113],{},"The current release focuses on platform behavior and compatibility:",[56,115,116,128,138],{},[59,117,118,122,123,127],{},[119,120,121],"strong",{},"Folia-aware scheduling and async teleport"," in the Bukkit adapter, with\nregion ownership handled for you. See ",[45,124,126],{"href":125},"\u002Fdocs\u002Fplatforms\u002Fbukkit","Bukkit \u002F Paper \u002F Folia",".",[59,129,130,133,134,127],{},[119,131,132],{},"Shared command roots"," let multiple modules contribute subcommands under an\nexisting command with an explicit merge policy. See ",[45,135,137],{"href":136},"\u002Fdocs\u002Fmodules\u002Fcommands","Commands",[59,139,140,143,144,127],{},[119,141,142],{},"Target-aligned dependencies"," keep Minecraft 26.2+ builds on Adventure 5\nwhile older targets use the Adventure major supplied by their platform. See\n",[45,145,147],{"href":146},"\u002Fdocs\u002Fbuild-logic\u002Ftargets","Target Matrix",[26,149,151],{"id":150},"modules-at-a-glance","Modules At A Glance",[153,154,155,171],"table",{},[156,157,158],"thead",{},[159,160,161,165,168],"tr",{},[162,163,164],"th",{},"Layer",[162,166,167],{},"Artifacts",[162,169,170],{},"Notes",[172,173,174,198,211,239,255,277,293,312],"tbody",{},[159,175,176,180,185],{},[177,178,179],"td",{},"Platform API",[177,181,182],{},[17,183,184],{},"magicutils-api",[177,186,187,190,191,190,194,197],{},[17,188,189],{},"Platform",", ",[17,192,193],{},"Audience",[17,195,196],{},"TaskScheduler",", and shared interfaces.",[159,199,200,203,208],{},[177,201,202],{},"Core stack",[177,204,205],{},[17,206,207],{},"magicutils-core",[177,209,210],{},"Shared runtime container plus core config\u002Flang\u002Flogger\u002Fplaceholder wiring.",[159,212,213,216,236],{},[177,214,215],{},"Feature modules",[177,217,218,190,221,190,224,190,227,190,230,190,233],{},[17,219,220],{},"magicutils-logger",[17,222,223],{},"magicutils-commands",[17,225,226],{},"magicutils-config",[17,228,229],{},"magicutils-lang",[17,231,232],{},"magicutils-placeholders",[17,234,235],{},"magicutils-http-client",[177,237,238],{},"Mix and match for manual setups.",[159,240,241,244,252],{},[177,242,243],{},"Format helpers",[177,245,246,190,249],{},[17,247,248],{},"magicutils-config-yaml",[17,250,251],{},"magicutils-config-toml",[177,253,254],{},"Enable extra config formats.",[159,256,257,260,274],{},[177,258,259],{},"Platform adapters",[177,261,262,190,265,190,268,190,271],{},[17,263,264],{},"magicutils-bukkit",[17,266,267],{},"magicutils-fabric",[17,269,270],{},"magicutils-velocity",[17,272,273],{},"magicutils-neoforge",[177,275,276],{},"Wire MagicUtils to each runtime.",[159,278,279,282,290],{},[177,280,281],{},"Platform bundles",[177,283,284,190,287],{},[17,285,286],{},"magicutils-bukkit-bundle",[17,288,289],{},"magicutils-fabric-bundle",[177,291,292],{},"Shared server-side installs for Bukkit\u002FPaper and Fabric.",[159,294,295,298,309],{},[177,296,297],{},"Fabric integrations",[177,299,300,190,303,190,306],{},[17,301,302],{},"magicutils-commands-fabric",[17,304,305],{},"magicutils-logger-fabric",[17,307,308],{},"magicutils-placeholders-fabric",[177,310,311],{},"Fabric-specific command, logger, and placeholder layers.",[159,313,314,317,325],{},[177,315,316],{},"Brigadier integrations",[177,318,319,190,322],{},[17,320,321],{},"magicutils-commands-brigadier",[17,323,324],{},"magicutils-commands-neoforge",[177,326,327],{},"Shared Brigadier base and NeoForge command wiring.",[26,329,331],{"id":330},"quick-start","Quick Start",[333,334,335,338,341],"ol",{},[59,336,337],{},"Add the MagicUtils Maven repository.",[59,339,340],{},"Add one platform entry point.",[59,342,343],{},"Wire the runtime through the recommended bootstrap helper.",[345,346,352],"pre",{"className":347,"code":349,"language":350,"meta":351},[348],"language-kotlin","repositories {\n    maven(\"https:\u002F\u002Fmaven.theroer.dev\u002Freleases\")\n}\n","kotlin","",[17,353,349],{"__ignoreMap":351},[355,356,358,375,389,403,417],"code-tabs",{":tabs":357},"[\"Bukkit\u002FPaper\u002FFolia\", \"BungeeCord\", \"Velocity\", \"Fabric\", \"NeoForge\"]",[359,360,361,367],"template",{"v-slot:bukkit-paper-folia":351},[345,362,365],{"className":363,"code":364,"language":350,"meta":351},[348],"dependencies {\n    implementation(\"dev.ua.theroer:magicutils-bukkit:1.27.4\")\n}\n",[17,366,364],{"__ignoreMap":351},[345,368,373],{"className":369,"code":371,"language":372,"meta":351},[370],"language-java","BukkitBootstrap.RuntimeResult magic = BukkitBootstrap.forPlugin(this)\n        .enableCommands()\n        .buildRuntime();\n","java",[17,374,371],{"__ignoreMap":351},[359,376,377,383],{"v-slot:bungeecord":351},[345,378,381],{"className":379,"code":380,"language":350,"meta":351},[348],"dependencies {\n    implementation(\"dev.ua.theroer:magicutils-bungee:1.27.4\")\n}\n",[17,382,380],{"__ignoreMap":351},[345,384,387],{"className":385,"code":386,"language":372,"meta":351},[370],"BungeeBootstrap.RuntimeResult magic = BungeeBootstrap.forPlugin(this, \"MyPlugin\")\n        .enableCommands()\n        .buildRuntime();\n",[17,388,386],{"__ignoreMap":351},[359,390,391,397],{"v-slot:fabric":351},[345,392,395],{"className":393,"code":394,"language":350,"meta":351},[348],"dependencies {\n    modImplementation(include(\"dev.ua.theroer:magicutils-fabric-bundle:1.27.4\"))\n    modCompileOnly(\"dev.ua.theroer:magicutils-fabric-bundle:1.27.4:dev\")\n    modRuntimeOnly(\"dev.ua.theroer:magicutils-fabric-bundle:1.27.4:dev\")\n}\n",[17,396,394],{"__ignoreMap":351},[345,398,401],{"className":399,"code":400,"language":372,"meta":351},[370],"FabricBootstrap.RuntimeResult magic = FabricBootstrap.forMod(\"mymod\", () -> server)\n        .enableCommands()\n        .buildRuntime();\n",[17,402,400],{"__ignoreMap":351},[359,404,405,411],{"v-slot:velocity":351},[345,406,409],{"className":407,"code":408,"language":350,"meta":351},[348],"dependencies {\n    implementation(\"dev.ua.theroer:magicutils-velocity:1.27.4\")\n}\n",[17,410,408],{"__ignoreMap":351},[345,412,415],{"className":413,"code":414,"language":372,"meta":351},[370],"VelocityBootstrap.RuntimeResult magic = VelocityBootstrap.forPlugin(proxy, this, \"MyPlugin\", dataDirectory)\n        .enableCommands()\n        .buildRuntime();\n",[17,416,414],{"__ignoreMap":351},[359,418,419,425],{"v-slot:neoforge":351},[345,420,423],{"className":421,"code":422,"language":350,"meta":351},[348],"dependencies {\n    implementation(\"dev.ua.theroer:magicutils-neoforge:1.27.4\")\n    implementation(\"dev.ua.theroer:magicutils-commands-neoforge:1.27.4\")\n}\n",[17,424,422],{"__ignoreMap":351},[345,426,429],{"className":427,"code":428,"language":372,"meta":351},[370],"NeoForgeBootstrap.RuntimeResult magic = NeoForgeBootstrap.forMod(\"mymod\", () -> currentServer())\n        .enableCommands()\n        .buildRuntime();\n",[17,430,428],{"__ignoreMap":351},[13,432,433,436,437,439],{},[17,434,435],{},"buildRuntime()"," returns a managed ",[17,438,19],{}," wrapper, so you can keep one\nruntime handle and close it cleanly on shutdown.",[26,441,443],{"id":442},"where-to-go-next","Where To Go Next",[56,445,446,451,454,457,463,466,469],{},[59,447,448,449,127],{},"Read the Core \u002F Common Logic page when your code lives mostly in\n",[17,450,207],{},[59,452,453],{},"Read the installation guide for bundle options and modular setups.",[59,455,456],{},"Jump to Quickstart for end-to-end bootstrap examples per platform.",[59,458,459,460,462],{},"Read the Runtime guide for ",[17,461,19],{}," patterns and lifecycle management.",[59,464,465],{},"Use the Migration guide when updating older code samples or plugins.",[59,467,468],{},"Use the module pages for deeper API examples and config details.",[59,470,471],{},"Use the version selector in the header to switch between releases.",{"title":351,"searchDepth":473,"depth":473,"links":474},3,[475,477,478,479,480,481],{"id":28,"depth":476,"text":29},2,{"id":83,"depth":476,"text":84},{"id":109,"depth":476,"text":110},{"id":150,"depth":476,"text":151},{"id":330,"depth":476,"text":331},{"id":442,"depth":476,"text":443},"MagicUtils is a modular Minecraft toolkit for Bukkit\u002FPaper\u002FFolia, BungeeCord, Velocity, Fabric, and NeoForge. Shared building blocks for config, lang, commands, logging, placeholders, and HTTP clients.","md",{},null,true,"\u002F","---\ntitle: MagicUtils\ndescription: MagicUtils is a modular Minecraft toolkit for Bukkit\u002FPaper\u002FFolia, BungeeCord, Velocity, Fabric, and NeoForge. Shared building blocks for config, lang, commands, logging, placeholders, and HTTP clients.\n---\n\n::hero\n::\n\nThe same stack also works well in multi-module projects where platform adapters\nonly bootstrap `MagicRuntime` and the real feature logic lives in shared\n`common` modules.\n\n## Why MagicUtils\n\nEvery server platform solves the same problems differently: styled text,\nconfig files, commands, permissions, per-player language. Writing a plugin and a\nmod usually means learning `ChatColor` on one side and Minecraft's `Text` on the\nother, hand-rolling config loaders, and branching command code per dispatcher.\n\nMagicUtils gives you one API for all of it, built on\n[Kyori Adventure](https:\u002F\u002Fdocs.advntr.dev\u002F) so text you author once renders\ncorrectly on Bukkit, BungeeCord, Velocity, Fabric, and NeoForge. You write the\nfeature once against `MagicRuntime`; the thin platform adapter is the only part\nthat changes. Concretely, that means:\n\n- One string with [MiniMessage](https:\u002F\u002Fdocs.advntr.dev\u002Fminimessage\u002Fformat.html)\n  or legacy `&` codes instead of per-platform colour handling.\n- Annotation-first commands with type parsers, options, and permissions instead\n  of dispatcher plumbing.\n- Config models with validation and migrations instead of manual file parsing.\n- Per-player localisation and placeholders wired into the same call sites.\n\n## Highlights\n\n- Bootstrap-first setup across Bukkit\u002FPaper\u002FFolia, BungeeCord, Velocity, Fabric,\n  and NeoForge.\n- `MagicRuntime` owns typed services, named resources, and ordered shutdown.\n- Config supports JSON\u002FJSONC, YAML, TOML, validation, and migrations.\n- Typed commands provide parsers, options, permissions, suggestions, and shared\n  root-command policies.\n- Language, logger, diagnostics, placeholders, HTTP, and WebSocket are separate\n  modules that can be composed per project.\n- Platform adapters keep lifecycle and scheduling behavior native, including\n  Folia region scheduling.\n\n## Current release · 1.27.4\n\nThe current release focuses on platform behavior and compatibility:\n\n- **Folia-aware scheduling and async teleport** in the Bukkit adapter, with\n  region ownership handled for you. See [Bukkit \u002F Paper \u002F Folia](\u002Fdocs\u002Fplatforms\u002Fbukkit).\n- **Shared command roots** let multiple modules contribute subcommands under an\n  existing command with an explicit merge policy. See [Commands](\u002Fdocs\u002Fmodules\u002Fcommands).\n- **Target-aligned dependencies** keep Minecraft 26.2+ builds on Adventure 5\n  while older targets use the Adventure major supplied by their platform. See\n  [Target Matrix](\u002Fdocs\u002Fbuild-logic\u002Ftargets).\n\n## Modules At A Glance\n\n| Layer | Artifacts | Notes |\n| --- | --- | --- |\n| Platform API | `magicutils-api` | `Platform`, `Audience`, `TaskScheduler`, and shared interfaces. |\n| Core stack | `magicutils-core` | Shared runtime container plus core config\u002Flang\u002Flogger\u002Fplaceholder wiring. |\n| Feature modules | `magicutils-logger`, `magicutils-commands`, `magicutils-config`, `magicutils-lang`, `magicutils-placeholders`, `magicutils-http-client` | Mix and match for manual setups. |\n| Format helpers | `magicutils-config-yaml`, `magicutils-config-toml` | Enable extra config formats. |\n| Platform adapters | `magicutils-bukkit`, `magicutils-fabric`, `magicutils-velocity`, `magicutils-neoforge` | Wire MagicUtils to each runtime. |\n| Platform bundles | `magicutils-bukkit-bundle`, `magicutils-fabric-bundle` | Shared server-side installs for Bukkit\u002FPaper and Fabric. |\n| Fabric integrations | `magicutils-commands-fabric`, `magicutils-logger-fabric`, `magicutils-placeholders-fabric` | Fabric-specific command, logger, and placeholder layers. |\n| Brigadier integrations | `magicutils-commands-brigadier`, `magicutils-commands-neoforge` | Shared Brigadier base and NeoForge command wiring. |\n\n## Quick Start\n\n1. Add the MagicUtils Maven repository.\n2. Add one platform entry point.\n3. Wire the runtime through the recommended bootstrap helper.\n\n```kotlin\nrepositories {\n    maven(\"https:\u002F\u002Fmaven.theroer.dev\u002Freleases\")\n}\n```\n\n::code-tabs{:tabs='[\"Bukkit\u002FPaper\u002FFolia\", \"BungeeCord\", \"Velocity\", \"Fabric\", \"NeoForge\"]'}\n\n#bukkit-paper-folia\n\n```kotlin\ndependencies {\n    implementation(\"dev.ua.theroer:magicutils-bukkit:1.27.4\")\n}\n```\n\n```java\nBukkitBootstrap.RuntimeResult magic = BukkitBootstrap.forPlugin(this)\n        .enableCommands()\n        .buildRuntime();\n```\n\n#bungeecord\n\n```kotlin\ndependencies {\n    implementation(\"dev.ua.theroer:magicutils-bungee:1.27.4\")\n}\n```\n\n```java\nBungeeBootstrap.RuntimeResult magic = BungeeBootstrap.forPlugin(this, \"MyPlugin\")\n        .enableCommands()\n        .buildRuntime();\n```\n\n#fabric\n\n```kotlin\ndependencies {\n    modImplementation(include(\"dev.ua.theroer:magicutils-fabric-bundle:1.27.4\"))\n    modCompileOnly(\"dev.ua.theroer:magicutils-fabric-bundle:1.27.4:dev\")\n    modRuntimeOnly(\"dev.ua.theroer:magicutils-fabric-bundle:1.27.4:dev\")\n}\n```\n\n```java\nFabricBootstrap.RuntimeResult magic = FabricBootstrap.forMod(\"mymod\", () -> server)\n        .enableCommands()\n        .buildRuntime();\n```\n\n#velocity\n\n```kotlin\ndependencies {\n    implementation(\"dev.ua.theroer:magicutils-velocity:1.27.4\")\n}\n```\n\n```java\nVelocityBootstrap.RuntimeResult magic = VelocityBootstrap.forPlugin(proxy, this, \"MyPlugin\", dataDirectory)\n        .enableCommands()\n        .buildRuntime();\n```\n\n#neoforge\n\n```kotlin\ndependencies {\n    implementation(\"dev.ua.theroer:magicutils-neoforge:1.27.4\")\n    implementation(\"dev.ua.theroer:magicutils-commands-neoforge:1.27.4\")\n}\n```\n\n```java\nNeoForgeBootstrap.RuntimeResult magic = NeoForgeBootstrap.forMod(\"mymod\", () -> currentServer())\n        .enableCommands()\n        .buildRuntime();\n```\n\n::\n\n`buildRuntime()` returns a managed `MagicRuntime` wrapper, so you can keep one\nruntime handle and close it cleanly on shutdown.\n\n## Where To Go Next\n\n- Read the Core \u002F Common Logic page when your code lives mostly in\n  `magicutils-core`.\n- Read the installation guide for bundle options and modular setups.\n- Jump to Quickstart for end-to-end bootstrap examples per platform.\n- Read the Runtime guide for `MagicRuntime` patterns and lifecycle management.\n- Use the Migration guide when updating older code samples or plugins.\n- Use the module pages for deeper API examples and config details.\n- Use the version selector in the header to switch between releases.\n",{"title":5,"description":482},"index","9faBXA33ncg7V6_GxKpjjXhr-kk6iuPD3kUyy-k9zYg",1793637945685]