VoiceIsHere
📎 1 file 2,278 chars
📄
pasted-code-1772368783844.txt
txt 1 lines
▶
Create a Minecraft plugin for the Paper server API (Java 17, Paper 1.21+) that manages a multi-game event system. The plugin must allow staff to define ordered game locations and practice locations using commands, then control the flow of games with a cooldown and manual progression. The plugin must include the commands /setgame  <position> and /setpractice <position> which save the player’s current world coordinates (including world, x, y, z, yaw, and pitch) into a YAML configuration file under numbered positions. A /gamestart command must begin a countdown (default 5 minutes, configurable in config.yml) displayed to all players in the ActionBar. When the countdown reaches 10 seconds remaining, the plugin must play the Minecraft sound minecraft:block.note_block.banjo each second. When the countdown finishes, players must not be teleported automatically; instead, staff must manually execute /nextgame, which teleports all players to the next configured game location and displays a large bold title in the center of the screen saying “GAME IS STARTING” with a smaller subtitle below saying “Help us raise the money, link in description,” including fade-in and fade-out animation. After a game ends, staff must use /finishgame, which teleports all players to the main hub location defined in the configuration and immediately starts the next countdown for the following game. The plugin must also include a /practice command that teleports the executing player to the appropriate practice location based on the current game number: before any games start it sends them to practice location 1, after game 1 it sends them to practice location 2, and so on. The /practice command must not function while a game is actively running. All commands must include tab completion. The system must track the current game index, prevent invalid positions, avoid crashing on missing configuration values, and ensure only valid saved locations are used. All messaging must use the Adventure API (ActionBar, Titles, and Sounds). The plugin must be modular with separate managers for configuration, game state, and countdown handling, and must run purely on Paper also and u must have a way to link it with velocity server so when i use /next game it can tps to other servers</code></pre>
              </div>
            </details>
            </div>
          </div></div><!----></div></div></div><!----><div style="height:16px;width:100%;" data-v-84c5e9db></div></div><div class="message-block message-ai" data-v-17afe4ac data-v-84c5e9db><div class="ai-message" data-v-84c5e9db><div class="message-avatar ai-avatar" data-v-84c5e9db><img width="24" height="24" data-nuxt-img srcset="/_ipx/q_80&s_24x24/current_icon.png 1x, /_ipx/q_80&s_48x48/current_icon.png 2x" onerror="this.setAttribute('data-error', 1)" alt="Kodari AI" class="rounded-lg" src="/_ipx/q_80&s_24x24/current_icon.png" data-v-84c5e9db></div><div class="message-body" data-v-84c5e9db><div class="message-header" data-v-84c5e9db><span class="message-author" data-v-84c5e9db>Kodari</span><span class="message-time" data-v-84c5e9db>Mar 1 at 12:41 pm</span><span class="message-tokens message-tokens-legacy" title="19689 tokens (V2 archived charge)" data-v-84c5e9db><span class="iconify i-mdi:chip" aria-hidden="true" style="font-size:10px;" data-v-84c5e9db></span> 19,689 <span class="message-tokens-suffix" data-v-84c5e9db>(v2)</span></span><!----></div><!----><div class="message-content" data-v-84c5e9db><!--[--><!--[--><div class="text-segment markdown-content" data-v-84c5e9db><div class="markstream-vue markdown-renderer dark" data-custom-id="kodari-chat" data-v-19a15cf8 data-v-84c5e9db><!----><!--[--><div class="node-slot" data-node-index="0" data-node-type="paragraph" data-v-19a15cf8><div class="node-content" data-v-19a15cf8><p dir="auto" class="paragraph-node" typewriter="false" fade="false" is-dark="true" data-v-a07f942f data-v-19a15cf8><!--[--><!--[--><span class="whitespace-pre-wrap break-words text-node" index-key="markdown-renderer-0-0" custom-id="kodari-chat" data-v-43f5105c data-v-a07f942f><span data-v-43f5105c>I’ll create a multi-game event system with countdown management, manual progression, and Velocity cross-server support.</span><!----></span><!--]--><!--]--></p></div></div><!--]--><!----><!----></div></div><!--]--><!--[--><div class="project-badge" data-v-84c5e9db><span class="iconify i-mdi:tag project-badge-icon" aria-hidden="true" style="font-size:14px;" data-v-84c5e9db></span><span data-v-84c5e9db>MultiGameEvents</span></div><!--]--><!--[--><div class="project-info-line" data-v-84c5e9db><span data-v-84c5e9db>A comprehensive event management system for multi-game tournaments. Features sequential game progression with staff-controlled flow, practice location routing, configurable countdown timers with ActionBar display, automatic sound effects, and cross-server teleportation through Velocity proxy integration. Perfect for charity streams and community events with ordered mini-games.</span></div><!--]--><!--[--><div class="project-badge" data-v-84c5e9db><span class="iconify i-mdi:tag project-badge-icon" aria-hidden="true" style="font-size:14px;" data-v-84c5e9db></span><span data-v-84c5e9db>MultiGameEvents</span></div><!--]--><!--[--><div class="project-info-line" data-v-84c5e9db><span data-v-84c5e9db>A comprehensive event management system for multi-game tournaments. Features sequential game progression with staff-controlled flow, practice location routing, configurable countdown timers with ActionBar display, automatic sound effects, and cross-server teleportation through Velocity proxy integration. Perfect for charity streams and community events with ordered mini-games.</span></div><!--]--><!--[--><div class="tools-summary" data-v-84c5e9db><button class="tools-toggle-btn" data-v-84c5e9db><span class="iconify i-mdi:tools tools-icon" aria-hidden="true" style="font-size:14px;" data-v-84c5e9db></span><span class="tools-text" data-v-84c5e9db>Used 2 tools</span><span class="iconify i-mdi:chevron-down tools-chevron" aria-hidden="true" style="font-size:16px;" data-v-84c5e9db></span></button><!----></div><!--]--><!--[--><div class="text-segment markdown-content" data-v-84c5e9db><div class="markstream-vue markdown-renderer dark" data-custom-id="kodari-chat" data-v-19a15cf8 data-v-84c5e9db><!----><!--[--><div class="node-slot" data-node-index="0" data-node-type="paragraph" data-v-19a15cf8><div class="node-content" data-v-19a15cf8><p dir="auto" class="paragraph-node" typewriter="false" fade="false" is-dark="true" data-v-a07f942f data-v-19a15cf8><!--[--><!--[--><span class="whitespace-pre-wrap break-words text-node" index-key="markdown-renderer-0-0" custom-id="kodari-chat" data-v-43f5105c data-v-a07f942f><span data-v-43f5105c>I’ll create a comprehensive multi-game event system with countdown management and Velocity cross-server support.</span><!----></span><!--]--><!--]--></p></div></div><!--]--><!----><!----></div></div><!--]--><!--[--><div class="tools-summary" data-v-84c5e9db><button class="tools-toggle-btn" data-v-84c5e9db><span class="iconify i-mdi:tools tools-icon" aria-hidden="true" style="font-size:14px;" data-v-84c5e9db></span><span class="tools-text" data-v-84c5e9db>Used 19 tools</span><span class="iconify i-mdi:chevron-down tools-chevron" aria-hidden="true" style="font-size:16px;" data-v-84c5e9db></span></button><!----></div><!--]--><!--[--><div class="text-segment markdown-content" data-v-84c5e9db><div class="markstream-vue markdown-renderer dark" data-custom-id="kodari-chat" data-v-19a15cf8 data-v-84c5e9db><!----><!--[--><div class="node-slot" data-node-index="0" data-node-type="paragraph" data-v-19a15cf8><div class="node-content" data-v-19a15cf8><p dir="auto" class="paragraph-node" typewriter="false" fade="false" is-dark="true" data-v-a07f942f data-v-19a15cf8><!--[--><!--[--><span class="whitespace-pre-wrap break-words text-node" index-key="markdown-renderer-0-0" custom-id="kodari-chat" data-v-43f5105c data-v-a07f942f><span data-v-43f5105c>Plugin created successfully! The system includes:</span><!----></span><!--]--><!--]--></p></div></div><div class="node-slot" data-node-index="1" data-node-type="paragraph" data-v-19a15cf8><div class="node-content" data-v-19a15cf8><p dir="auto" class="paragraph-node" typewriter="false" fade="false" is-dark="true" data-v-a07f942f data-v-19a15cf8><!--[--><!--[--><strong class="strong-node" data-v-af3ce037 data-v-a07f942f><!--[--><span class="whitespace-pre-wrap break-words text-node" index-key="markdown-renderer-1-0-0" custom-id="kodari-chat" data-v-43f5105c data-v-af3ce037><span data-v-43f5105c>Commands:</span><!----></span><!--]--></strong><!--]--><!--]--></p></div></div><div class="node-slot" data-node-index="2" data-node-type="list" data-v-19a15cf8><div class="node-content" data-v-19a15cf8><ul class="list-node list-disc" is-dark="true" data-v-8f37f7cc data-v-19a15cf8><!--[--><li class="list-item" dir="auto" data-v-9b3024e6 data-v-8f37f7cc><div class="markstream-vue markdown-renderer" data-custom-id="kodari-chat" data-v-19a15cf8 data-v-9b3024e6><!----><!--[--><div class="node-slot" data-node-index="0" data-node-type="paragraph" data-v-19a15cf8><div class="node-content" data-v-19a15cf8><p dir="auto" class="paragraph-node" typewriter="false" fade="false" is-dark="false" data-v-a07f942f data-v-19a15cf8><!--[--><!--[--><code class="inline-code" index-key="list-item-markdown-renderer-2-0-0-0" custom-id="kodari-chat" data-v-1348822e data-v-a07f942f><span data-v-1348822e>/setgame <title> <position></span><!----></code><!--]--><!--[--><span class="whitespace-pre-wrap break-words text-node" index-key="list-item-markdown-renderer-2-0-0-1" custom-id="kodari-chat" data-v-43f5105c data-v-a07f942f><span data-v-43f5105c> - Save game location with title</span><!----></span><!--]--><!--]--></p></div></div><!--]--><!----><!----></div></li><li class="list-item" dir="auto" data-v-9b3024e6 data-v-8f37f7cc><div class="markstream-vue markdown-renderer" data-custom-id="kodari-chat" data-v-19a15cf8 data-v-9b3024e6><!----><!--[--><div class="node-slot" data-node-index="0" data-node-type="paragraph" data-v-19a15cf8><div class="node-content" data-v-19a15cf8><p dir="auto" class="paragraph-node" typewriter="false" fade="false" is-dark="false" data-v-a07f942f data-v-19a15cf8><!--[--><!--[--><code class="inline-code" index-key="list-item-markdown-renderer-2-1-0-0" custom-id="kodari-chat" data-v-1348822e data-v-a07f942f><span data-v-1348822e>/setpractice <position></span><!----></code><!--]--><!--[--><span class="whitespace-pre-wrap break-words text-node" index-key="list-item-markdown-renderer-2-1-0-1" custom-id="kodari-chat" data-v-43f5105c data-v-a07f942f><span data-v-43f5105c> - Save practice location</span><!----></span><!--]--><!--]--></p></div></div><!--]--><!----><!----></div></li><li class="list-item" dir="auto" data-v-9b3024e6 data-v-8f37f7cc><div class="markstream-vue markdown-renderer" data-custom-id="kodari-chat" data-v-19a15cf8 data-v-9b3024e6><!----><!--[--><div class="node-slot" data-node-index="0" data-node-type="paragraph" data-v-19a15cf8><div class="node-content" data-v-19a15cf8><p dir="auto" class="paragraph-node" typewriter="false" fade="false" is-dark="false" data-v-a07f942f data-v-19a15cf8><!--[--><!--[--><code class="inline-code" index-key="list-item-markdown-renderer-2-2-0-0" custom-id="kodari-chat" data-v-1348822e data-v-a07f942f><span data-v-1348822e>/gamestart</span><!----></code><!--]--><!--[--><span class="whitespace-pre-wrap break-words text-node" index-key="list-item-markdown-renderer-2-2-0-1" custom-id="kodari-chat" data-v-43f5105c data-v-a07f942f><span data-v-43f5105c> - Begin countdown (5 min default, configurable)</span><!----></span><!--]--><!--]--></p></div></div><!--]--><!----><!----></div></li><li class="list-item" dir="auto" data-v-9b3024e6 data-v-8f37f7cc><div class="markstream-vue markdown-renderer" data-custom-id="kodari-chat" data-v-19a15cf8 data-v-9b3024e6><!----><!--[--><div class="node-slot" data-node-index="0" data-node-type="paragraph" data-v-19a15cf8><div class="node-content" data-v-19a15cf8><p dir="auto" class="paragraph-node" typewriter="false" fade="false" is-dark="false" data-v-a07f942f data-v-19a15cf8><!--[--><!--[--><code class="inline-code" index-key="list-item-markdown-renderer-2-3-0-0" custom-id="kodari-chat" data-v-1348822e data-v-a07f942f><span data-v-1348822e>/nextgame</span><!----></code><!--]--><!--[--><span class="whitespace-pre-wrap break-words text-node" index-key="list-item-markdown-renderer-2-3-0-1" custom-id="kodari-chat" data-v-43f5105c data-v-a07f942f><span data-v-43f5105c> - Teleport all players to next game + show title</span><!----></span><!--]--><!--]--></p></div></div><!--]--><!----><!----></div></li><li class="list-item" dir="auto" data-v-9b3024e6 data-v-8f37f7cc><div class="markstream-vue markdown-renderer" data-custom-id="kodari-chat" data-v-19a15cf8 data-v-9b3024e6><!----><!--[--><div class="node-slot" data-node-index="0" data-node-type="paragraph" data-v-19a15cf8><div class="node-content" data-v-19a15cf8><p dir="auto" class="paragraph-node" typewriter="false" fade="false" is-dark="false" data-v-a07f942f data-v-19a15cf8><!--[--><!--[--><code class="inline-code" index-key="list-item-markdown-renderer-2-4-0-0" custom-id="kodari-chat" data-v-1348822e data-v-a07f942f><span data-v-1348822e>/finishgame</span><!----></code><!--]--><!--[--><span class="whitespace-pre-wrap break-words text-node" index-key="list-item-markdown-renderer-2-4-0-1" custom-id="kodari-chat" data-v-43f5105c data-v-a07f942f><span data-v-43f5105c> - Return to hub + start next countdown</span><!----></span><!--]--><!--]--></p></div></div><!--]--><!----><!----></div></li><li class="list-item" dir="auto" data-v-9b3024e6 data-v-8f37f7cc><div class="markstream-vue markdown-renderer" data-custom-id="kodari-chat" data-v-19a15cf8 data-v-9b3024e6><!----><!--[--><div class="node-slot" data-node-index="0" data-node-type="paragraph" data-v-19a15cf8><div class="node-content" data-v-19a15cf8><p dir="auto" class="paragraph-node" typewriter="false" fade="false" is-dark="false" data-v-a07f942f data-v-19a15cf8><!--[--><!--[--><code class="inline-code" index-key="list-item-markdown-renderer-2-5-0-0" custom-id="kodari-chat" data-v-1348822e data-v-a07f942f><span data-v-1348822e>/practice</span><!----></code><!--]--><!--[--><span class="whitespace-pre-wrap break-words text-node" index-key="list-item-markdown-renderer-2-5-0-1" custom-id="kodari-chat" data-v-43f5105c data-v-a07f942f><span data-v-43f5105c> - Teleport to practice location (disabled during games)</span><!----></span><!--]--><!--]--></p></div></div><!--]--><!----><!----></div></li><!--]--></ul></div></div><div class="node-slot" data-node-index="3" data-node-type="paragraph" data-v-19a15cf8><div class="node-content" data-v-19a15cf8><p dir="auto" class="paragraph-node" typewriter="false" fade="false" is-dark="true" data-v-a07f942f data-v-19a15cf8><!--[--><!--[--><strong class="strong-node" data-v-af3ce037 data-v-a07f942f><!--[--><span class="whitespace-pre-wrap break-words text-node" index-key="markdown-renderer-3-0-0" custom-id="kodari-chat" data-v-43f5105c data-v-af3ce037><span data-v-43f5105c>Features:</span><!----></span><!--]--></strong><!--]--><!--]--></p></div></div><div class="node-slot" data-node-index="4" data-node-type="list" data-v-19a15cf8><div class="node-content" data-v-19a15cf8><ul class="list-node list-disc" is-dark="true" data-v-8f37f7cc data-v-19a15cf8><!--[--><li class="list-item" dir="auto" data-v-9b3024e6 data-v-8f37f7cc><div class="markstream-vue markdown-renderer" data-custom-id="kodari-chat" data-v-19a15cf8 data-v-9b3024e6><!----><!--[--><div class="node-slot" data-node-index="0" data-node-type="paragraph" data-v-19a15cf8><div class="node-content" data-v-19a15cf8><p dir="auto" class="paragraph-node" typewriter="false" fade="false" is-dark="false" data-v-a07f942f data-v-19a15cf8><!--[--><!--[--><span class="whitespace-pre-wrap break-words text-node" index-key="list-item-markdown-renderer-4-0-0-0" custom-id="kodari-chat" data-v-43f5105c data-v-a07f942f><span data-v-43f5105c>FoliaLib for scheduling (Paper/Folia compatible)</span><!----></span><!--]--><!--]--></p></div></div><!--]--><!----><!----></div></li><li class="list-item" dir="auto" data-v-9b3024e6 data-v-8f37f7cc><div class="markstream-vue markdown-renderer" data-custom-id="kodari-chat" data-v-19a15cf8 data-v-9b3024e6><!----><!--[--><div class="node-slot" data-node-index="0" data-node-type="paragraph" data-v-19a15cf8><div class="node-content" data-v-19a15cf8><p dir="auto" class="paragraph-node" typewriter="false" fade="false" is-dark="false" data-v-a07f942f data-v-19a15cf8><!--[--><!--[--><span class="whitespace-pre-wrap break-words text-node" index-key="list-item-markdown-renderer-4-1-0-0" custom-id="kodari-chat" data-v-43f5105c data-v-a07f942f><span data-v-43f5105c>Adventure API for ActionBar countdown display</span><!----></span><!--]--><!--]--></p></div></div><!--]--><!----><!----></div></li><li class="list-item" dir="auto" data-v-9b3024e6 data-v-8f37f7cc><div class="markstream-vue markdown-renderer" data-custom-id="kodari-chat" data-v-19a15cf8 data-v-9b3024e6><!----><!--[--><div class="node-slot" data-node-index="0" data-node-type="paragraph" data-v-19a15cf8><div class="node-content" data-v-19a15cf8><p dir="auto" class="paragraph-node" typewriter="false" fade="false" is-dark="false" data-v-a07f942f data-v-19a15cf8><!--[--><!--[--><span class="whitespace-pre-wrap break-words text-node" index-key="list-item-markdown-renderer-4-2-0-0" custom-id="kodari-chat" data-v-43f5105c data-v-a07f942f><span data-v-43f5105c>XSound for banjo sound at 10 seconds</span><!----></span><!--]--><!--]--></p></div></div><!--]--><!----><!----></div></li><li class="list-item" dir="auto" data-v-9b3024e6 data-v-8f37f7cc><div class="markstream-vue markdown-renderer" data-custom-id="kodari-chat" data-v-19a15cf8 data-v-9b3024e6><!----><!--[--><div class="node-slot" data-node-index="0" data-node-type="paragraph" data-v-19a15cf8><div class="node-content" data-v-19a15cf8><p dir="auto" class="paragraph-node" typewriter="false" fade="false" is-dark="false" data-v-a07f942f data-v-19a15cf8><!--[--><!--[--><span class="whitespace-pre-wrap break-words text-node" index-key="list-item-markdown-renderer-4-3-0-0" custom-id="kodari-chat" data-v-43f5105c data-v-a07f942f><span data-v-43f5105c>Cross-server teleportation via Velocity (add “server” field to config)</span><!----></span><!--]--><!--]--></p></div></div><!--]--><!----><!----></div></li><li class="list-item" dir="auto" data-v-9b3024e6 data-v-8f37f7cc><div class="markstream-vue markdown-renderer" data-custom-id="kodari-chat" data-v-19a15cf8 data-v-9b3024e6><!----><!--[--><div class="node-slot" data-node-index="0" data-node-type="paragraph" data-v-19a15cf8><div class="node-content" data-v-19a15cf8><p dir="auto" class="paragraph-node" typewriter="false" fade="false" is-dark="false" data-v-a07f942f data-v-19a15cf8><!--[--><!--[--><span class="whitespace-pre-wrap break-words text-node" index-key="list-item-markdown-renderer-4-4-0-0" custom-id="kodari-chat" data-v-43f5105c data-v-a07f942f><span data-v-43f5105c>Tracks current game and state (idle/countdown/running)</span><!----></span><!--]--><!--]--></p></div></div><!--]--><!----><!----></div></li><li class="list-item" dir="auto" data-v-9b3024e6 data-v-8f37f7cc><div class="markstream-vue markdown-renderer" data-custom-id="kodari-chat" data-v-19a15cf8 data-v-9b3024e6><!----><!--[--><div class="node-slot" data-node-index="0" data-node-type="paragraph" data-v-19a15cf8><div class="node-content" data-v-19a15cf8><p dir="auto" class="paragraph-node" typewriter="false" fade="false" is-dark="false" data-v-a07f942f data-v-19a15cf8><!--[--><!--[--><span class="whitespace-pre-wrap break-words text-node" index-key="list-item-markdown-renderer-4-5-0-0" custom-id="kodari-chat" data-v-43f5105c data-v-a07f942f><span data-v-43f5105c>Practice routing based on game progress</span><!----></span><!--]--><!--]--></p></div></div><!--]--><!----><!----></div></li><!--]--></ul></div></div><div class="node-slot" data-node-index="5" data-node-type="paragraph" data-v-19a15cf8><div class="node-content" data-v-19a15cf8><p dir="auto" class="paragraph-node" typewriter="false" fade="false" is-dark="true" data-v-a07f942f data-v-19a15cf8><!--[--><!--[--><strong class="strong-node" data-v-af3ce037 data-v-a07f942f><!--[--><span class="whitespace-pre-wrap break-words text-node" index-key="markdown-renderer-5-0-0" custom-id="kodari-chat" data-v-43f5105c data-v-af3ce037><span data-v-43f5105c>Config structure:</span><!----></span><!--]--></strong><!--]--><!--]--></p></div></div><div class="node-slot" data-node-index="6" data-node-type="code_block" data-v-19a15cf8><div class="node-content" data-v-19a15cf8><div style="color:var(--vscode-editor-foreground, var(--markstream-code-fallback-fg));background-color:var(--vscode-editor-background, var(--markstream-code-fallback-bg));border-color:var(--markstream-code-border-color);" class="code-block-container rounded-lg border dark is-dark" data-markstream-code-block="1" data-markstream-enhanced="false" index-key="markdown-renderer-6" data-v-b7ce948c data-v-19a15cf8><!--[--><div class="code-block-header flex justify-between items-center border-b px-[var(--ms-inset-panel-x)] py-[var(--ms-inset-panel-y)] border-[var(--code-border)] bg-[var(--code-header-bg)] text-[var(--code-fg)]"><!--[--><!--[--><div class="code-header-main" data-v-b7ce948c><span class="icon-slot h-4 w-4 flex-shrink-0" data-v-b7ce948c><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="#ff5252" d="M13 9h5.5L13 3.5zM6 2h8l6 6v12c0 1.1-.9 2-2 2H6c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2m12 16v-2H9v2zm-4-4v-2H6v2z"/></svg></span><div class="code-header-copy" data-v-b7ce948c><div class="code-header-title" data-v-b7ce948c>YAML</div><!----></div></div><!--]--><!--]--><!--[--><div class="flex items-center gap-0.5"><!----><button type="button" class="code-action-btn inline-flex items-center justify-center p-[var(--ms-action-btn-padding)] rounded leading-none shrink-0 cursor-pointer text-[var(--code-action-fg)] hover:bg-[var(--code-action-hover-bg)] hover:text-[var(--code-action-hover-fg)] active:scale-[0.96] disabled:opacity-40 disabled:cursor-not-allowed transition-colors" aria-label="Copy"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="1em" height="1em" viewBox="0 0 24 24" class="action-icon"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><rect width="14" height="14" x="8" y="8" rx="2" ry="2"></rect><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"></path></g></svg></button><button type="button" class="code-action-btn inline-flex items-center justify-center p-[var(--ms-action-btn-padding)] rounded leading-none shrink-0 cursor-pointer text-[var(--code-action-fg)] hover:bg-[var(--code-action-hover-bg)] hover:text-[var(--code-action-hover-fg)] active:scale-[0.96] disabled:opacity-40 disabled:cursor-not-allowed transition-colors" aria-pressed="false"><svg style="rotate:90deg;" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="1em" height="1em" viewBox="0 0 24 24" class="action-icon"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m9 18l6-6l-6-6"></path></svg></button><div class="relative"><button type="button" class="code-action-btn inline-flex items-center justify-center p-[var(--ms-action-btn-padding)] rounded leading-none shrink-0 cursor-pointer text-[var(--code-action-fg)] hover:bg-[var(--code-action-hover-bg)] hover:text-[var(--code-action-hover-fg)] active:scale-[0.96] transition-colors" aria-expanded="false" aria-haspopup="true"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="1em" height="1em" viewBox="0 0 24 24" class="action-icon"><g fill="currentColor"><circle cx="12" cy="5" r="1.5"></circle><circle cx="12" cy="12" r="1.5"></circle><circle cx="12" cy="19" r="1.5"></circle></g></svg></button><!----></div></div><!--]--></div><div class="code-block-shell-content"><!--[--><div class="code-editor-layer" data-v-b7ce948c><div class="code-editor-container is-hidden" style="" data-v-b7ce948c></div><pre class="language-yaml code-pre-fallback is-wrap" aria-busy="false" aria-label="Code block: yaml" data-language="yaml" data-markstream-pre="1" tabindex="0" style="font-size:14px;line-height:19px;tab-size:4;box-sizing:border-box;max-height:500px;overflow:auto;padding-top:0px;padding-bottom:0px;" data-v-b7ce948c><code translate="no">games:
  1:
    title: "Parkour"
    world: world
    x: 100
    y: 64
    z: 100
    server: game1  # Optional - for cross-server
practice:
  1:
    world: world
    x: 50
    y: 64
    z: 50
</code></pre></div><!----><!--]--></div><div class="code-loading-placeholder" style="display:none;"><!--[--><!--[--><div class="loading-skeleton" data-v-b7ce948c><div class="skeleton-line" data-v-b7ce948c></div><div class="skeleton-line" data-v-b7ce948c></div><div class="skeleton-line short" data-v-b7ce948c></div></div><!--]--><!--]--></div><span class="sr-only" aria-live="polite" role="status"></span><!--]--></div></div></div><!--]--><!----><!----></div></div><!--]--><!--]--></div><!----><!----><!----><!----></div></div><!----><div style="height:16px;width:100%;" data-v-84c5e9db></div></div><div class="message-block message-user" data-v-17afe4ac data-v-84c5e9db><div class="user-message" data-v-84c5e9db><div class="relative overflow-hidden w-8 h-8 rounded-lg border border-[#21262d]" data-v-84c5e9db><img width="32" height="32" data-nuxt-img srcset="https://avatars.githubusercontent.com/u/193517873?v=4 1x, https://avatars.githubusercontent.com/u/193517873?v=4 2x" onerror="this.setAttribute('data-error', 1)" alt="VoiceIsHere" loading="lazy" class="w-full h-full object-cover" src="https://avatars.githubusercontent.com/u/193517873?v=4"><!----></div><div class="message-body" data-v-84c5e9db><div class="message-content" data-v-84c5e9db><div class="text-segment markdown-content" data-v-84c5e9db><p>how do i add which server hub is in?</p></div><!----></div></div></div><!----><div style="height:16px;width:100%;" data-v-84c5e9db></div></div><div class="message-block message-ai" data-v-17afe4ac data-v-84c5e9db><div class="ai-message" data-v-84c5e9db><div class="message-avatar ai-avatar" data-v-84c5e9db><img width="24" height="24" data-nuxt-img srcset="/_ipx/q_80&s_24x24/current_icon.png 1x, /_ipx/q_80&s_48x48/current_icon.png 2x" onerror="this.setAttribute('data-error', 1)" alt="Kodari AI" class="rounded-lg" src="/_ipx/q_80&s_24x24/current_icon.png" data-v-84c5e9db></div><div class="message-body" data-v-84c5e9db><div class="message-header" data-v-84c5e9db><span class="message-author" data-v-84c5e9db>Kodari</span><span class="message-time" data-v-84c5e9db>Mar 1 at 1:11 pm</span><span class="message-tokens message-tokens-legacy" title="6334 tokens (V2 archived charge)" data-v-84c5e9db><span class="iconify i-mdi:chip" aria-hidden="true" style="font-size:10px;" data-v-84c5e9db></span> 6,334 <span class="message-tokens-suffix" data-v-84c5e9db>(v2)</span></span><!----></div><!----><div class="message-content" data-v-84c5e9db><!--[--><!--[--><div class="text-segment markdown-content" data-v-84c5e9db><div class="markstream-vue markdown-renderer dark" data-custom-id="kodari-chat" data-v-19a15cf8 data-v-84c5e9db><!----><!--[--><div class="node-slot" data-node-index="0" data-node-type="paragraph" data-v-19a15cf8><div class="node-content" data-v-19a15cf8><p dir="auto" class="paragraph-node" typewriter="false" fade="false" is-dark="true" data-v-a07f942f data-v-19a15cf8><!--[--><!--[--><span class="whitespace-pre-wrap break-words text-node" index-key="markdown-renderer-0-0" custom-id="kodari-chat" data-v-43f5105c data-v-a07f942f><span data-v-43f5105c>I need to see your current configuration structure to add the hub server setting.</span><!----></span><!--]--><!--]--></p></div></div><!--]--><!----><!----></div></div><!--]--><!--[--><div class="tools-summary" data-v-84c5e9db><button class="tools-toggle-btn" data-v-84c5e9db><span class="iconify i-mdi:tools tools-icon" aria-hidden="true" style="font-size:14px;" data-v-84c5e9db></span><span class="tools-text" data-v-84c5e9db>Used 4 tools</span><span class="iconify i-mdi:chevron-down tools-chevron" aria-hidden="true" style="font-size:16px;" data-v-84c5e9db></span></button><!----></div><!--]--><!--[--><div class="text-segment markdown-content" data-v-84c5e9db><div class="markstream-vue markdown-renderer dark" data-custom-id="kodari-chat" data-v-19a15cf8 data-v-84c5e9db><!----><!--[--><div class="node-slot" data-node-index="0" data-node-type="paragraph" data-v-19a15cf8><div class="node-content" data-v-19a15cf8><p dir="auto" class="paragraph-node" typewriter="false" fade="false" is-dark="true" data-v-a07f942f data-v-19a15cf8><!--[--><!--[--><span class="whitespace-pre-wrap break-words text-node" index-key="markdown-renderer-0-0" custom-id="kodari-chat" data-v-43f5105c data-v-a07f942f><span data-v-43f5105c>I can see your config already has hub location coordinates. To add which server the hub is on, I’ll:</span><!----></span><!--]--><!--]--></p></div></div><div class="node-slot" data-node-index="1" data-node-type="list" data-v-19a15cf8><div class="node-content" data-v-19a15cf8><ol class="list-node list-decimal" is-dark="true" data-v-8f37f7cc data-v-19a15cf8><!--[--><li class="list-item" dir="auto" value="1" data-v-9b3024e6 data-v-8f37f7cc><div class="markstream-vue markdown-renderer" data-custom-id="kodari-chat" data-v-19a15cf8 data-v-9b3024e6><!----><!--[--><div class="node-slot" data-node-index="0" data-node-type="paragraph" data-v-19a15cf8><div class="node-content" data-v-19a15cf8><p dir="auto" class="paragraph-node" typewriter="false" fade="false" is-dark="false" data-v-a07f942f data-v-19a15cf8><!--[--><!--[--><span class="whitespace-pre-wrap break-words text-node" index-key="list-item-markdown-renderer-1-0-0-0" custom-id="kodari-chat" data-v-43f5105c data-v-a07f942f><span data-v-43f5105c>Add </span><!----></span><!--]--><!--[--><code class="inline-code" index-key="list-item-markdown-renderer-1-0-0-1" custom-id="kodari-chat" data-v-1348822e data-v-a07f942f><span data-v-1348822e>server</span><!----></code><!--]--><!--[--><span class="whitespace-pre-wrap break-words text-node" index-key="list-item-markdown-renderer-1-0-0-2" custom-id="kodari-chat" data-v-43f5105c data-v-a07f942f><span data-v-43f5105c> field to hub config</span><!----></span><!--]--><!--]--></p></div></div><!--]--><!----><!----></div></li><li class="list-item" dir="auto" value="2" data-v-9b3024e6 data-v-8f37f7cc><div class="markstream-vue markdown-renderer" data-custom-id="kodari-chat" data-v-19a15cf8 data-v-9b3024e6><!----><!--[--><div class="node-slot" data-node-index="0" data-node-type="paragraph" data-v-19a15cf8><div class="node-content" data-v-19a15cf8><p dir="auto" class="paragraph-node" typewriter="false" fade="false" is-dark="false" data-v-a07f942f data-v-19a15cf8><!--[--><!--[--><span class="whitespace-pre-wrap break-words text-node" index-key="list-item-markdown-renderer-1-1-0-0" custom-id="kodari-chat" data-v-43f5105c data-v-a07f942f><span data-v-43f5105c>Add method in ConfigManager to retrieve it</span><!----></span><!--]--><!--]--></p></div></div><!--]--><!----><!----></div></li><li class="list-item" dir="auto" value="3" data-v-9b3024e6 data-v-8f37f7cc><div class="markstream-vue markdown-renderer" data-custom-id="kodari-chat" data-v-19a15cf8 data-v-9b3024e6><!----><!--[--><div class="node-slot" data-node-index="0" data-node-type="paragraph" data-v-19a15cf8><div class="node-content" data-v-19a15cf8><p dir="auto" class="paragraph-node" typewriter="false" fade="false" is-dark="false" data-v-a07f942f data-v-19a15cf8><!--[--><!--[--><span class="whitespace-pre-wrap break-words text-node" index-key="list-item-markdown-renderer-1-2-0-0" custom-id="kodari-chat" data-v-43f5105c data-v-a07f942f><span data-v-43f5105c>Add convenience method to send players to hub</span><!----></span><!--]--><!--]--></p></div></div><!--]--><!----><!----></div></li><!--]--></ol></div></div><!--]--><!----><!----></div></div><!--]--><!--[--><div class="tools-summary" data-v-84c5e9db><button class="tools-toggle-btn" data-v-84c5e9db><span class="iconify i-mdi:tools tools-icon" aria-hidden="true" style="font-size:14px;" data-v-84c5e9db></span><span class="tools-text" data-v-84c5e9db>Used 3 tools</span><span class="iconify i-mdi:chevron-down tools-chevron" aria-hidden="true" style="font-size:16px;" data-v-84c5e9db></span></button><!----></div><!--]--><!--[--><div class="text-segment markdown-content" data-v-84c5e9db><div class="markstream-vue markdown-renderer dark" data-custom-id="kodari-chat" data-v-19a15cf8 data-v-84c5e9db><!----><!--[--><div class="node-slot" data-node-index="0" data-node-type="paragraph" data-v-19a15cf8><div class="node-content" data-v-19a15cf8><p dir="auto" class="paragraph-node" typewriter="false" fade="false" is-dark="true" data-v-a07f942f data-v-19a15cf8><!--[--><!--[--><span class="whitespace-pre-wrap break-words text-node" index-key="markdown-renderer-0-0" custom-id="kodari-chat" data-v-43f5105c data-v-a07f942f><span data-v-43f5105c>Added hub server configuration - set </span><!----></span><!--]--><!--[--><code class="inline-code" index-key="markdown-renderer-0-1" custom-id="kodari-chat" data-v-1348822e data-v-a07f942f><span data-v-1348822e>server: lobby</span><!----></code><!--]--><!--[--><span class="whitespace-pre-wrap break-words text-node" index-key="markdown-renderer-0-2" custom-id="kodari-chat" data-v-43f5105c data-v-a07f942f><span data-v-43f5105c> in config.yml to your hub server name, and use </span><!----></span><!--]--><!--[--><code class="inline-code" index-key="markdown-renderer-0-3" custom-id="kodari-chat" data-v-1348822e data-v-a07f942f><span data-v-1348822e>velocityMessenger.sendToHub(player)</span><!----></code><!--]--><!--[--><span class="whitespace-pre-wrap break-words text-node" index-key="markdown-renderer-0-4" custom-id="kodari-chat" data-v-43f5105c data-v-a07f942f><span data-v-43f5105c> to send players there.</span><!----></span><!--]--><!--]--></p></div></div><!--]--><!----><!----></div></div><!--]--><!--]--></div><!----><!----><!----><!----></div></div><!----><!----></div><!--]--></div><!----><!----><div class="chat-disclaimer" data-v-17afe4ac><span class="iconify i-mdi:information-outline" aria-hidden="true" style="font-size:14px;" data-v-17afe4ac></span><span data-v-17afe4ac>Kodari can make mistakes. Review important code before using.</span></div></div></div><!----><div class="composer-dock" data-v-17afe4ac><!----><!----><div class="input-container-wrapper" data-v-17afe4ac><!----><!----><!----><!----><div name="queued" class="queued-list" data-v-17afe4ac></div><div class="input-container" data-v-17afe4ac><!----><input type="file" multiple class="hidden" data-v-17afe4ac><textarea placeholder="View-only session. To work on a session of your own, open it from /history." disabled class="chat-textarea" data-v-17afe4ac></textarea><!--[--><!----><!--teleport start--><!--teleport end--><!--]--><div class="input-actions-bar" data-v-17afe4ac><div class="input-actions-left" data-v-17afe4ac><button disabled class="input-action-btn" title="Add pictures, files or archives" data-v-17afe4ac><span class="iconify i-mdi:plus" aria-hidden="true" style="font-size:18px;" data-v-17afe4ac></span></button><!----></div><div class="input-actions-right" data-v-17afe4ac><button disabled class="voice-mode-btn" title="Voice is available in your own sessions" data-v-17afe4ac><span class="iconify i-mdi:pulse" aria-hidden="true" style="font-size:18px;" data-v-17afe4ac></span></button><!----><button disabled class="input-send-btn" title="Send" data-v-17afe4ac><span class="iconify i-mdi:arrow-up" aria-hidden="true" style="font-size:18px;" data-v-17afe4ac></span></button></div></div></div></div></div><!--teleport start--><!--teleport end--></div></div><!----><div class="workspace-card" style="order:1;" data-v-0bc084c4><div class="files-section" style="width:280px;" data-v-0bc084c4><div class="resize-handle-left" data-v-0bc084c4><div class="resize-grip" data-v-0bc084c4></div></div><div class="section-header" data-v-0bc084c4><div class="section-title" data-v-0bc084c4><span class="iconify i-mdi:folder-outline" aria-hidden="true" style="font-size:16px;" data-v-0bc084c4></span><span data-v-0bc084c4>Files</span></div><div class="section-actions" data-v-0bc084c4><button class="action-btn" title="Export" data-v-0bc084c4><span class="iconify i-mdi:download" aria-hidden="true" style="font-size:16px;" data-v-0bc084c4></span></button><button class="action-btn action-btn-clone" title="Clone" data-v-0bc084c4><span class="iconify i-mdi:source-branch" aria-hidden="true" style="font-size:16px;" data-v-0bc084c4></span></button><button class="action-btn" data-v-0bc084c4><span class="iconify i-mdi:chevron-left" aria-hidden="true" style="font-size:16px;" data-v-0bc084c4></span></button><!----></div></div><div class="section-body" data-v-0bc084c4><div class="file-tree" read-only="true" data-v-0bc084c4 data-v-1d46cba4><input type="file" multiple class="hidden" data-v-1d46cba4><!----><div class="file-tree-content" data-v-1d46cba4><!--[--><!--[--><div class="is-folder tree-node" style="padding-left:8px;" draggable="true" data-v-1d46cba4><span class="iconify i-mdi:chevron-right folder-chevron" aria-hidden="true" style="font-size:16px;" data-v-1d46cba4></span><span class="iconify i-mdi:folder-open node-icon folder-icon-color" aria-hidden="true" style="font-size:16px;" title data-v-1d46cba4></span><span class="node-name-container" data-v-1d46cba4><span class="node-name" data-v-1d46cba4>src</span><!----></span><!----><!----></div><!--]--><!--[--><div class="tree-node" style="padding-left:8px;" draggable="true" data-v-1d46cba4><!----><span class="iconify i-mdi:elephant node-icon" aria-hidden="true" style="font-size:16px;" title data-v-1d46cba4></span><span class="node-name-container" data-v-1d46cba4><span class="node-name" data-v-1d46cba4>build.gradle</span><!----></span><!----><!----></div><!--]--><!--[--><div class="tree-node" style="padding-left:8px;" draggable="true" data-v-1d46cba4><!----><span class="iconify i-mdi:file-outline node-icon" aria-hidden="true" style="font-size:16px;" title data-v-1d46cba4></span><span class="node-name-container" data-v-1d46cba4><span class="node-name" data-v-1d46cba4>manifest.kod</span><!----></span><!----><!----></div><!--]--><!--]--><!--[--><!--]--></div><!--teleport start--><!--teleport end--><!--teleport start--><!--teleport end--><!--teleport start--><!--teleport end--></div></div></div><div class="editor-section" data-v-0bc084c4><!----><div class="section-header" data-v-0bc084c4><div class="section-title" data-v-0bc084c4><span class="iconify i-mdi:code-braces" aria-hidden="true" style="font-size:16px;" data-v-0bc084c4></span><span data-v-0bc084c4>Code</span></div><div class="section-stats" data-v-0bc084c4><span class="stat-chip" data-v-0bc084c4><span class="iconify i-mdi:file-multiple" aria-hidden="true" style="font-size:12px;" data-v-0bc084c4></span> 19</span><span class="stat-chip" data-v-0bc084c4><span class="iconify i-mdi:code-braces" aria-hidden="true" style="font-size:12px;" data-v-0bc084c4></span> 875</span></div><!----></div><div class="section-body" data-v-0bc084c4><!--[--><div class="ssr-code" data-v-0bc084c4><div class="ssr-code-file" data-v-0bc084c4>src/main/java/com/multigameevents/MultiGameEvents.java</div><pre class="ssr-code-body" data-v-0bc084c4><code data-v-0bc084c4>package com.multigameevents;

import com.cryptomorin.xseries.XSound;
import com.multigameevents.command.*;
import com.multigameevents.listener.ConnectionListener;
import com.multigameevents.manager.*;
import com.tcoded.folialib.FoliaLib;
import lombok.Getter;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class MultiGameEvents extends JavaPlugin {
    
    private FoliaLib foliaLib;
    private ConfigManager configManager;
    private LocationManager locationManager;
    private GameStateManager gameStateManager;
    private CountdownManager countdownManager;
    private VelocityMessenger velocityMessenger;
    
    @Override
    public void onEnable() {
        saveDefaultConfig();
        
        this.foliaLib = new FoliaLib(this);
        this.configManager = new ConfigManager(this);
        this.locationManager = new LocationManager(this);
        this.velocityMessenger = new VelocityMessenger(this);
        this.gameStateManager = new GameStateManager(this);
        this.countdownManager = new CountdownManager(this);
        
        registerCommands();
        registerListeners();
        
        getLogger().info("MultiGameEvents enabled!");
    }
    
    @Override
    public void onDisable() {
        if (foliaLib != null) {
            foliaLib.getScheduler().cancelAllTasks();
        }
        getLogger().info("MultiGameEvents disabled!");
    }
    
    private void registerCommands() {
        getCommand("setgame").setExecutor(new SetGameCommand(this));
        getCommand("setpractice").setExecutor(new SetPracticeCommand(this));
        getCommand("gamestart").setExecutor(new GameStartCommand(this));
        getCommand("nextgame").setExecutor(new NextGameCommand(this));
        getCommand("finishgame").setExecutor(new FinishGameCommand(this));
        
        PracticeCommand practiceCommand = new PracticeCommand(this);
        getCommand("practice").setExecutor(practiceCommand);
        getCommand("practice").setTabCompleter(practiceCommand);
        
        getCommand("setgame").setTabCompleter(new SetGameCommand(this));
        getCommand("setpractice").setTabCompleter(new SetPracticeCommand(this));
    }
    
    private void registerListeners() {
        Bukkit.getPluginManager().registerEvents(new ConnectionListener(this), this);
    }
}</code></pre></div><!--]--></div></div></div></div></div><span data-v-0bc084c4></span></div><!--]--></main><footer class="relative z-10 px-6 pt-4 mt-auto" style="display:none;" data-v-e8a5f52a><div class="max-w-6xl mx-auto" data-v-e8a5f52a><div class="ft-top" data-v-e8a5f52a><div class="ft-brand" data-v-e8a5f52a><a href="/prompt" class="ft-brand-mark" data-v-e8a5f52a><img src="/current_icon_no_bg.webp" alt class="ft-brand-icon" width="18" height="18" data-v-e8a5f52a><span class="ft-brand-name" data-v-e8a5f52a>Kodari</span></a><p class="ft-tagline" data-v-e8a5f52a>Build Minecraft plugins,<br data-v-e8a5f52a>mods and Discord bots with AI.</p></div><div class="ft-cols" data-v-e8a5f52a><div class="ft-col" data-v-e8a5f52a><span class="ft-heading" data-v-e8a5f52a>Build</span><a href="/minecraft-plugin-generator" class="ft-link" data-v-e8a5f52a>Plugin Maker</a><a href="/minecraft-mod-generator" class="ft-link" data-v-e8a5f52a>Mod Generator</a><a href="/minecraft-skript-generator" class="ft-link" data-v-e8a5f52a>Skript Generator</a><a href="/minecraft-datapack-generator" class="ft-link" data-v-e8a5f52a>Data Pack Generator</a><a href="/chrome-extension-generator" class="ft-link" data-v-e8a5f52a>Chrome Extensions</a></div><div class="ft-col" data-v-e8a5f52a><span class="ft-heading" data-v-e8a5f52a>Discord</span><a href="/discord-bot-generator" class="ft-link" data-v-e8a5f52a>Discord Bot Maker</a><a href="/discord-bot-hosting" class="ft-link" data-v-e8a5f52a>Discord Bot Hosting</a><a href="/discord-py-bot-generator" class="ft-link" data-v-e8a5f52a>discord.py Bot Maker</a><a href="/discord-js-bot-generator" class="ft-link" data-v-e8a5f52a>discord.js Bot Maker</a><a href="/discord-ts-bot-generator" class="ft-link" data-v-e8a5f52a>TypeScript Bot Maker</a></div><div class="ft-col" data-v-e8a5f52a><span class="ft-heading" data-v-e8a5f52a>Learn</span><a href="/blogs" class="ft-link" data-v-e8a5f52a>Guides</a><a href="/documentation" class="ft-link" data-v-e8a5f52a>Docs</a><a href="/browse" class="ft-link" data-v-e8a5f52a>Community</a><a href="/credits" class="ft-link" data-v-e8a5f52a>Pricing</a></div><div class="ft-col" data-v-e8a5f52a><span class="ft-heading" data-v-e8a5f52a>Company</span><a href="https://discord.gg/KNeg4D3ze5" target="_blank" rel="noopener" class="ft-link" data-v-e8a5f52a>Discord</a><a href="/terms" class="ft-link" data-v-e8a5f52a>Terms</a><a href="/privacy" class="ft-link" data-v-e8a5f52a>Privacy</a><button class="ft-link ft-link-btn" data-v-e8a5f52a>Cookies</button></div></div></div><nav class="ft-platforms" aria-label="Plugin platforms" data-v-e8a5f52a><span class="ft-platforms-label" data-v-e8a5f52a>Plugins for</span><!--[--><a href="/paper-plugin-generator" class="ft-link ft-platform" data-v-e8a5f52a>Paper</a><a href="/spigot-plugin-generator" class="ft-link ft-platform" data-v-e8a5f52a>Spigot</a><a href="/folia-plugin-generator" class="ft-link ft-platform" data-v-e8a5f52a>Folia</a><a href="/velocity-plugin-generator" class="ft-link ft-platform" data-v-e8a5f52a>Velocity</a><a href="/kotlin-plugin-generator" class="ft-link ft-platform" data-v-e8a5f52a>Kotlin</a><a href="/nms-plugin-generator" class="ft-link ft-platform" data-v-e8a5f52a>NMS</a><!--]--></nav><div class="ft-bottom" data-v-e8a5f52a><p class="text-white/20 text-[12px]" data-v-e8a5f52a>© 2026 Kodari AI • Not affiliated with Mojang, Microsoft, or Discord</p></div></div></footer><div class="fixed top-20 right-6 z-50 space-y-3 toast-container-override" data-v-e8a5f52a><!--[--><!--]--></div></div><span></span><!--]--></div><div id="teleports"></div><script nonce="/L9cOmlbf2JgHBqxcVDAVhIz">window.__NUXT__={};window.__NUXT__.config={public:{isDevelopment:false,isMaintenance:false,apiBaseUrlDev:"http://localhost:8080",apiBaseUrlProd:"https://api.kodari.ai",oauthRedirectDev:"https://kodari.ai/oauth2/redirect",oauthRedirectProd:"https://kodari.ai/oauth2/redirect",discordInviteUrl:"https://discord.gg/KNeg4D3ze5",baseUrl:"https://api.kodari.ai",oauthRedirect:"https://kodari.ai/oauth2/redirect",googleAuthUrl:"https://api.kodari.ai/oauth2/authorization/google",facebookAuthUrl:"https://api.kodari.ai/oauth2/authorization/facebook",discordAuthUrl:"https://api.kodari.ai/oauth2/authorization/discord",githubAuthUrl:"https://api.kodari.ai/oauth2/authorization/github",csurf:{headerName:"csrf-token"},"nuxt-seo-utils-version":"8.3.1","seo-utils":{canonicalQueryWhitelist:["page","sort","filter","search","q","category","tag"],canonicalLowercase:true,tagPriority:"low",separator:"",titleSeparator:""},"nuxt-robots":{version:"6.1.2",isNuxtContentV2:false,debug:false,credits:true,groups:[{comment:[],disallow:["/admin","/chat/","/history","/settings","/api-keys","/tokens","/rewards"],allow:["/"],userAgent:["*"],contentUsage:[],contentSignal:[],_indexable:true,_rules:[{pattern:"/admin",allow:false},{pattern:"/chat/",allow:false},{pattern:"/history",allow:false},{pattern:"/settings",allow:false},{pattern:"/api-keys",allow:false},{pattern:"/tokens",allow:false},{pattern:"/rewards",allow:false},{pattern:"/",allow:true}],_normalized:true}],sitemap:["https://kodari.ai/sitemap.xml","/sitemap_index.xml"],header:true,robotsEnabledValue:"index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1",robotsDisabledValue:"noindex, nofollow",cacheControl:"max-age=14400, must-revalidate",botDetection:true,pageMetaRobots:{}},"nuxt-og-image":{defaults:{emojis:"noto",extension:"png",width:1200,height:600,cacheMaxAgeSeconds:604800},hasServerRuntime:true}},app:{baseURL:"/",buildId:"d7be0fb5-990a-42b3-a88d-8253dfd17b3a",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script nonce="/L9cOmlbf2JgHBqxcVDAVhIz" data-hid="kdr-chat-bottom">document.querySelectorAll(".chat-messages").forEach(function(l){l.scrollTop=l.scrollHeight})</script><script nonce="/L9cOmlbf2JgHBqxcVDAVhIz" type="application/ld+json" data-nuxt-schema-org="true" data-hid="schema-org-graph">{"@context":"https://schema.org","@graph":[{"@id":"https://kodari.ai/#website","@type":"WebSite","description":"Create Minecraft plugins, Fabric mods, and Discord bots in minutes using AI. No coding required. Automatic compilation, error fixing, and deployment.","inLanguage":"en","name":"Kodari AI","url":"https://kodari.ai/","publisher":{"@id":"https://kodari.ai/#identity"}},{"@id":"https://kodari.ai/public/cf73084a-73ee-4643-b03e-bf7aad040705#webpage","@type":"WebPage","description":"Create Minecraft plugins, Fabric mods, and Discord bots in minutes using AI. No coding required. Automatic compilation, error fixing, and deployment.","name":"Multi Game Events: Minecraft Plugin Source Code","url":"https://kodari.ai/public/cf73084a-73ee-4643-b03e-bf7aad040705","about":{"@id":"https://kodari.ai/#identity"},"isPartOf":{"@id":"https://kodari.ai/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://kodari.ai/public/cf73084a-73ee-4643-b03e-bf7aad040705"]}]},{"@id":"https://kodari.ai/#identity","@type":"Organization","name":"Kodari AI","url":"https://kodari.ai"}]}</script><script nonce="/L9cOmlbf2JgHBqxcVDAVhIz" type="application/json" data-nuxt-data="nuxt-app" data-ssr="true" id="__NUXT_DATA__">[["ShallowReactive",1],{"data":2,"state":218,"once":234,"_errors":235,"serverRendered":162,"path":237},["ShallowReactive",3],{"auth-user":4,"public-session-ssr-cf73084a-73ee-4643-b03e-bf7aad040705":5,"public-client-cf73084a-73ee-4643-b03e-bf7aad040705":181},null,{"files":6,"session":146},{"src/main/java/com/multigameevents/command/GameStartCommand.java":7,"src/main/java/com/multigameevents/manager/LocationManager.java":17,"src/main/java/com/multigameevents/listener/ConnectionListener.java":24,"src/main/java/com/multigameevents/command/NextGameCommand.java":31,"src/main/resources/plugin.yml":38,"src/main/java/com/multigameevents/data/GameLocation.java":46,"src/main/java/com/multigameevents/manager/CountdownManager.java":53,"src/main/java/com/multigameevents/manager/VelocityMessenger.java":60,"src/main/java/com/multigameevents/util/ColorUtil.java":67,"manifest.kod":74,"src/main/java/com/multigameevents/command/SetGameCommand.java":82,"src/main/java/com/multigameevents/manager/GameStateManager.java":89,"src/main/java/com/multigameevents/MultiGameEvents.java":96,"src/main/java/com/multigameevents/command/PracticeCommand.java":103,"src/main/java/com/multigameevents/command/SetPracticeCommand.java":110,"build.gradle":117,"src/main/java/com/multigameevents/manager/ConfigManager.java":125,"src/main/java/com/multigameevents/command/FinishGameCommand.java":132,"src/main/resources/config.yml":139},{"id":8,"sessionId":9,"filePath":10,"content":11,"fileType":12,"fileSize":13,"version":14,"createdAt":15,"updatedAt":16},616777,"KDR-202603-UILCLN7K","src/main/java/com/multigameevents/command/GameStartCommand.java","package com.multigameevents.command;\n\nimport com.multigameevents.MultiGameEvents;\nimport com.multigameevents.util.ColorUtil;\nimport org.bukkit.command.Command;\nimport org.bukkit.command.CommandExecutor;\nimport org.bukkit.command.CommandSender;\n\npublic class GameStartCommand implements CommandExecutor {\n    \n    private final MultiGameEvents plugin;\n    \n    public GameStartCommand(MultiGameEvents plugin) {\n        this.plugin = plugin;\n    }\n    \n    @Override\n    public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {\n        if (plugin.getCountdownManager().isCountdownActive()) {\n            sender.sendMessage(ColorUtil.colorize(\"<red>Countdown is already running!\"));\n            return true;\n        }\n        \n        int nextGame = plugin.getGameStateManager().getNextGameNumber();\n        if (plugin.getLocationManager().getGameLocation(nextGame) == null) {\n            sender.sendMessage(ColorUtil.colorize(\"<red>No game location configured for game \" + nextGame + \"!\"));\n            return true;\n        }\n        \n        plugin.getCountdownManager().startCountdown();\n        sender.sendMessage(ColorUtil.colorize(\"<green>Countdown started for game \" + nextGame + \"!\"));\n        \n        return true;\n    }\n}","java",1266,4,"2026-03-01T12:41:42.192652","2026-03-01T13:11:57.03061",{"id":18,"sessionId":9,"filePath":19,"content":20,"fileType":12,"fileSize":21,"version":14,"createdAt":22,"updatedAt":23},616778,"src/main/java/com/multigameevents/manager/LocationManager.java","package com.multigameevents.manager;\n\nimport com.multigameevents.MultiGameEvents;\nimport com.multigameevents.data.GameLocation;\nimport org.bukkit.Bukkit;\nimport org.bukkit.Location;\nimport org.bukkit.configuration.ConfigurationSection;\nimport org.bukkit.entity.Player;\n\nimport java.util.HashMap;\nimport java.util.Map;\n\npublic class LocationManager {\n    \n    private final MultiGameEvents plugin;\n    \n    public LocationManager(MultiGameEvents plugin) {\n        this.plugin = plugin;\n    }\n    \n    public void saveGameLocation(String title, int position, Player player) {\n        Location loc = player.getLocation();\n        ConfigurationSection section = plugin.getConfig().createSection(\"games.\" + position);\n        section.set(\"title\", title);\n        section.set(\"world\", loc.getWorld().getName());\n        section.set(\"x\", loc.getX());\n        section.set(\"y\", loc.getY());\n        section.set(\"z\", loc.getZ());\n        section.set(\"yaw\", loc.getYaw());\n        section.set(\"pitch\", loc.getPitch());\n        plugin.saveConfig();\n    }\n    \n    public void savePracticeLocation(int position, Player player) {\n        Location loc = player.getLocation();\n        ConfigurationSection section = plugin.getConfig().createSection(\"practice.\" + position);\n        section.set(\"world\", loc.getWorld().getName());\n        section.set(\"x\", loc.getX());\n        section.set(\"y\", loc.getY());\n        section.set(\"z\", loc.getZ());\n        section.set(\"yaw\", loc.getYaw());\n        section.set(\"pitch\", loc.getPitch());\n        plugin.saveConfig();\n    }\n    \n    public GameLocation getGameLocation(int position) {\n        ConfigurationSection section = plugin.getConfig().getConfigurationSection(\"games.\" + position);\n        if (section == null) return null;\n        \n        return new GameLocation(\n            section.getString(\"world\"),\n            section.getDouble(\"x\"),\n            section.getDouble(\"y\"),\n            section.getDouble(\"z\"),\n            (float) section.getDouble(\"yaw\"),\n            (float) section.getDouble(\"pitch\"),\n            section.getString(\"title\", \"Game \" + position),\n            section.getString(\"server\")\n        );\n    }\n    \n    public GameLocation getPracticeLocation(int position) {\n        ConfigurationSection section = plugin.getConfig().getConfigurationSection(\"practice.\" + position);\n        if (section == null) return null;\n        \n        return new GameLocation(\n            section.getString(\"world\"),\n            section.getDouble(\"x\"),\n            section.getDouble(\"y\"),\n            section.getDouble(\"z\"),\n            (float) section.getDouble(\"yaw\"),\n            (float) section.getDouble(\"pitch\"),\n            null,\n            section.getString(\"server\")\n        );\n    }\n    \n    public GameLocation getHubLocation() {\n        ConfigurationSection section = plugin.getConfig().getConfigurationSection(\"hub\");\n        if (section == null) return null;\n        \n        return new GameLocation(\n            section.getString(\"world\"),\n            section.getDouble(\"x\"),\n            section.getDouble(\"y\"),\n            section.getDouble(\"z\"),\n            (float) section.getDouble(\"yaw\"),\n            (float) section.getDouble(\"pitch\"),\n            null,\n            section.getString(\"server\")\n        );\n    }\n    \n    public Location toLocation(GameLocation gameLocation) {\n        if (gameLocation == null) return null;\n        return new Location(\n            Bukkit.getWorld(gameLocation.getWorld()),\n            gameLocation.getX(),\n            gameLocation.getY(),\n            gameLocation.getZ(),\n            gameLocation.getYaw(),\n            gameLocation.getPitch()\n        );\n    }\n    \n    public Map<Integer, GameLocation> getAllGames() {\n        ConfigurationSection section = plugin.getConfig().getConfigurationSection(\"games\");\n        Map<Integer, GameLocation> games = new HashMap<>();\n        \n        if (section != null) {\n            for (String key : section.getKeys(false)) {\n                try {\n                    int position = Integer.parseInt(key);\n                    GameLocation loc = getGameLocation(position);\n                    if (loc != null) {\n                        games.put(position, loc);\n                    }\n                } catch (NumberFormatException ignored) {\n                }\n            }\n        }\n        \n        return games;\n    }\n    \n    public int getTotalGames() {\n        ConfigurationSection section = plugin.getConfig().getConfigurationSection(\"games\");\n        return section != null ? section.getKeys(false).size() : 0;\n    }\n}",4559,"2026-03-01T12:41:42.193776","2026-03-01T13:11:57.028547",{"id":25,"sessionId":9,"filePath":26,"content":27,"fileType":12,"fileSize":28,"version":14,"createdAt":29,"updatedAt":30},616779,"src/main/java/com/multigameevents/listener/ConnectionListener.java","package com.multigameevents.listener;\n\nimport com.multigameevents.MultiGameEvents;\nimport org.bukkit.entity.Player;\nimport org.bukkit.event.EventHandler;\nimport org.bukkit.event.Listener;\nimport org.bukkit.event.player.PlayerJoinEvent;\n\npublic class ConnectionListener implements Listener {\n    \n    private final MultiGameEvents plugin;\n    \n    public ConnectionListener(MultiGameEvents plugin) {\n        this.plugin = plugin;\n    }\n    \n    @EventHandler\n    public void onPlayerJoin(PlayerJoinEvent event) {\n        Player player = event.getPlayer();\n        plugin.getServer().getMessenger().registerOutgoingPluginChannel(plugin, \"bungeecord:main\");\n    }\n}",662,"2026-03-01T12:41:42.194189","2026-03-01T13:11:57.030774",{"id":32,"sessionId":9,"filePath":33,"content":34,"fileType":12,"fileSize":35,"version":14,"createdAt":36,"updatedAt":37},616780,"src/main/java/com/multigameevents/command/NextGameCommand.java","package com.multigameevents.command;\n\nimport com.multigameevents.MultiGameEvents;\nimport com.multigameevents.data.GameLocation;\nimport com.multigameevents.manager.GameStateManager;\nimport com.multigameevents.util.ColorUtil;\nimport net.kyori.adventure.text.Component;\nimport net.kyori.adventure.title.Title;\nimport org.bukkit.Bukkit;\nimport org.bukkit.command.Command;\nimport org.bukkit.command.CommandExecutor;\nimport org.bukkit.command.CommandSender;\nimport org.bukkit.entity.Player;\n\nimport java.time.Duration;\n\npublic class NextGameCommand implements CommandExecutor {\n    \n    private final MultiGameEvents plugin;\n    \n    public NextGameCommand(MultiGameEvents plugin) {\n        this.plugin = plugin;\n    }\n    \n    @Override\n    public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {\n        plugin.getCountdownManager().stopCountdown();\n        \n        int nextGame = plugin.getGameStateManager().getNextGameNumber();\n        GameLocation gameLocation = plugin.getLocationManager().getGameLocation(nextGame);\n        \n        if (gameLocation == null) {\n            sender.sendMessage(ColorUtil.colorize(\"<red>No game location configured for game \" + nextGame + \"!\"));\n            return true;\n        }\n        \n        plugin.getGameStateManager().nextGame();\n        plugin.getGameStateManager().setGameState(GameStateManager.GameState.RUNNING);\n        \n        Component title = ColorUtil.colorize(\"<gold><bold>GAME IS STARTING\");\n        Component subtitle = ColorUtil.colorize(\"<yellow>Help us raise the money, link in description\");\n        \n        Title gameTitle = Title.title(\n            title,\n            subtitle,\n            Title.Times.times(\n                Duration.ofMillis(500),\n                Duration.ofMillis(3000),\n                Duration.ofMillis(500)\n            )\n        );\n        \n        for (Player player : Bukkit.getOnlinePlayers()) {\n            plugin.getVelocityMessenger().teleportOrConnect(player, gameLocation);\n            \n            plugin.getFoliaLib().getScheduler().runAtEntityLater(player, task -> {\n                player.showTitle(gameTitle);\n            }, 5L);\n        }\n        \n        sender.sendMessage(ColorUtil.colorize(\n            \"<green>All players teleported to game \" + nextGame + \": <white>\" + gameLocation.getTitle()\n        ));\n        \n        return true;\n    }\n}",2385,"2026-03-01T12:41:42.194555","2026-03-01T13:11:57.028959",{"id":39,"sessionId":9,"filePath":40,"content":41,"fileType":42,"fileSize":43,"version":14,"createdAt":44,"updatedAt":45},616781,"src/main/resources/plugin.yml","name: MultiGameEvents\nversion: 1.0.0\nmain: com.multigameevents.MultiGameEvents\napi-version: '1.21'\nauthor: YourName\ndescription: Multi-game event management system\n\ncommands:\n  setgame:\n    description: Set a game location\n    usage: /setgame <title> <position>\n    permission: multigameevents.admin\n  setpractice:\n    description: Set a practice location\n    usage: /setpractice <position>\n    permission: multigameevents.admin\n  gamestart:\n    description: Start the countdown for the current game\n    usage: /gamestart\n    permission: multigameevents.admin\n  nextgame:\n    description: Teleport all players to the next game\n    usage: /nextgame\n    permission: multigameevents.admin\n  finishgame:\n    description: Finish the current game and return to hub\n    usage: /finishgame\n    permission: multigameevents.admin\n  practice:\n    description: Teleport to practice location\n    usage: /practice\n\npermissions:\n  multigameevents.admin:\n    description: Access to all admin commands\n    default: op","yml",1000,"2026-03-01T12:41:42.194868","2026-03-01T13:11:57.029226",{"id":47,"sessionId":9,"filePath":48,"content":49,"fileType":12,"fileSize":50,"version":14,"createdAt":51,"updatedAt":52},616782,"src/main/java/com/multigameevents/data/GameLocation.java","package com.multigameevents.data;\n\nimport lombok.AllArgsConstructor;\nimport lombok.Data;\nimport lombok.NoArgsConstructor;\n\n@Data\n@AllArgsConstructor\n@NoArgsConstructor\npublic class GameLocation {\n    private String world;\n    private double x;\n    private double y;\n    private double z;\n    private float yaw;\n    private float pitch;\n    private String title;\n    private String server;\n}",390,"2026-03-01T12:41:42.195158","2026-03-01T13:11:57.029441",{"id":54,"sessionId":9,"filePath":55,"content":56,"fileType":12,"fileSize":57,"version":14,"createdAt":58,"updatedAt":59},616783,"src/main/java/com/multigameevents/manager/CountdownManager.java","package com.multigameevents.manager;\n\nimport com.cryptomorin.xseries.XSound;\nimport com.multigameevents.MultiGameEvents;\nimport com.multigameevents.util.ColorUtil;\nimport com.tcoded.folialib.wrapper.task.WrappedTask;\nimport net.kyori.adventure.text.Component;\nimport org.bukkit.Bukkit;\nimport org.bukkit.entity.Player;\n\npublic class CountdownManager {\n    \n    private final MultiGameEvents plugin;\n    private WrappedTask countdownTask;\n    private int secondsRemaining;\n    \n    public CountdownManager(MultiGameEvents plugin) {\n        this.plugin = plugin;\n    }\n    \n    public void startCountdown() {\n        if (countdownTask != null && !countdownTask.isCancelled()) {\n            countdownTask.cancel();\n        }\n        \n        secondsRemaining = plugin.getConfigManager().getCountdownSeconds();\n        plugin.getGameStateManager().setGameState(GameStateManager.GameState.COUNTDOWN);\n        \n        countdownTask = plugin.getFoliaLib().getScheduler().runTimer(() -> {\n            if (secondsRemaining <= 0) {\n                stopCountdown();\n                return;\n            }\n            \n            updateActionBar();\n            \n            if (secondsRemaining <= 10) {\n                playCountdownSound();\n            }\n            \n            secondsRemaining--;\n        }, 0L, 20L);\n    }\n    \n    public void stopCountdown() {\n        if (countdownTask != null && !countdownTask.isCancelled()) {\n            countdownTask.cancel();\n        }\n        \n        for (Player player : Bukkit.getOnlinePlayers()) {\n            player.sendActionBar(Component.empty());\n        }\n        \n        plugin.getGameStateManager().setGameState(GameStateManager.GameState.IDLE);\n    }\n    \n    private void updateActionBar() {\n        int minutes = secondsRemaining / 60;\n        int seconds = secondsRemaining % 60;\n        String timeFormat = String.format(\"%02d:%02d\", minutes, seconds);\n        \n        Component actionBar = ColorUtil.colorize(\n            \"<gradient:green:yellow>Next game starts in: <white><bold>\" + timeFormat\n        );\n        \n        for (Player player : Bukkit.getOnlinePlayers()) {\n            player.sendActionBar(actionBar);\n        }\n    }\n    \n    private void playCountdownSound() {\n        for (Player player : Bukkit.getOnlinePlayers()) {\n            XSound.matchXSound(\"BLOCK_NOTE_BLOCK_BANJO\").ifPresent(sound -> \n                sound.play(player, 1.0f, 1.0f)\n            );\n        }\n    }\n    \n    public boolean isCountdownActive() {\n        return countdownTask != null && !countdownTask.isCancelled();\n    }\n}",2570,"2026-03-01T12:41:42.195468","2026-03-01T13:11:57.03094",{"id":61,"sessionId":9,"filePath":62,"content":63,"fileType":12,"fileSize":64,"version":14,"createdAt":65,"updatedAt":66},616784,"src/main/java/com/multigameevents/manager/VelocityMessenger.java","package com.multigameevents.manager;\n\nimport com.google.common.io.ByteArrayDataOutput;\nimport com.google.common.io.ByteStreams;\nimport com.multigameevents.MultiGameEvents;\nimport com.multigameevents.data.GameLocation;\nimport org.bukkit.entity.Player;\n\npublic class VelocityMessenger {\n    \n    private final MultiGameEvents plugin;\n    \n    public VelocityMessenger(MultiGameEvents plugin) {\n        this.plugin = plugin;\n        plugin.getServer().getMessenger().registerOutgoingPluginChannel(plugin, \"bungeecord:main\");\n    }\n    \n    public void sendToServer(Player player, String serverName) {\n        if (serverName == null || serverName.isEmpty()) {\n            return;\n        }\n        \n        ByteArrayDataOutput out = ByteStreams.newDataOutput();\n        out.writeUTF(\"Connect\");\n        out.writeUTF(serverName);\n        \n        player.sendPluginMessage(plugin, \"bungeecord:main\", out.toByteArray());\n    }\n    \n    public void teleportOrConnect(Player player, GameLocation location) {\n        if (location.getServer() != null && !location.getServer().isEmpty()) {\n            sendToServer(player, location.getServer());\n        } else {\n            plugin.getFoliaLib().getScheduler().teleportAsync(player, \n                plugin.getLocationManager().toLocation(location));\n        }\n    }\n    \n    public void sendToHub(Player player) {\n        String hubServer = plugin.getConfigManager().getHubServer();\n        if (hubServer != null && !hubServer.isEmpty()) {\n            sendToServer(player, hubServer);\n        }\n    }\n}",1541,"2026-03-01T12:41:42.195699","2026-03-01T13:11:57.03111",{"id":68,"sessionId":9,"filePath":69,"content":70,"fileType":12,"fileSize":71,"version":14,"createdAt":72,"updatedAt":73},616786,"src/main/java/com/multigameevents/util/ColorUtil.java","package com.multigameevents.util;\n\nimport net.kyori.adventure.text.Component;\nimport net.kyori.adventure.text.minimessage.MiniMessage;\n\npublic class ColorUtil {\n    \n    private static final MiniMessage MINI_MESSAGE = MiniMessage.miniMessage();\n    \n    public static Component colorize(String text) {\n        return MINI_MESSAGE.deserialize(text);\n    }\n}",356,"2026-03-01T12:41:42.196139","2026-03-01T13:11:57.029606",{"id":75,"sessionId":9,"filePath":76,"content":77,"fileType":78,"fileSize":79,"version":14,"createdAt":80,"updatedAt":81},616785,"manifest.kod","include:\n  - folialib","kod",21,"2026-03-01T12:41:42.195924","2026-03-01T13:11:57.031273",{"id":83,"sessionId":9,"filePath":84,"content":85,"fileType":12,"fileSize":86,"version":14,"createdAt":87,"updatedAt":88},616788,"src/main/java/com/multigameevents/command/SetGameCommand.java","package com.multigameevents.command;\n\nimport com.multigameevents.MultiGameEvents;\nimport com.multigameevents.util.ColorUtil;\nimport org.bukkit.command.Command;\nimport org.bukkit.command.CommandExecutor;\nimport org.bukkit.command.CommandSender;\nimport org.bukkit.command.TabCompleter;\nimport org.bukkit.entity.Player;\n\nimport java.util.ArrayList;\nimport java.util.List;\n\npublic class SetGameCommand implements CommandExecutor, TabCompleter {\n    \n    private final MultiGameEvents plugin;\n    \n    public SetGameCommand(MultiGameEvents plugin) {\n        this.plugin = plugin;\n    }\n    \n    @Override\n    public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {\n        if (!(sender instanceof Player player)) {\n            sender.sendMessage(\"Only players can use this command!\");\n            return true;\n        }\n        \n        if (args.length < 2) {\n            player.sendMessage(ColorUtil.colorize(\"<red>Usage: /setgame <title> <position>\"));\n            return true;\n        }\n        \n        int position;\n        try {\n            position = Integer.parseInt(args[args.length - 1]);\n        } catch (NumberFormatException e) {\n            player.sendMessage(ColorUtil.colorize(\"<red>Position must be a number!\"));\n            return true;\n        }\n        \n        StringBuilder titleBuilder = new StringBuilder();\n        for (int i = 0; i < args.length - 1; i++) {\n            if (i > 0) titleBuilder.append(\" \");\n            titleBuilder.append(args[i]);\n        }\n        String title = titleBuilder.toString();\n        \n        plugin.getLocationManager().saveGameLocation(title, position, player);\n        player.sendMessage(ColorUtil.colorize(\n            \"<green>Game location <white>\" + position + \"<green> set to your current position with title: <white>\" + title\n        ));\n        \n        return true;\n    }\n    \n    @Override\n    public List<String> onTabComplete(CommandSender sender, Command command, String label, String[] args) {\n        List<String> suggestions = new ArrayList<>();\n        \n        if (args.length == 1) {\n            suggestions.add(\"<title>\");\n        } else if (args.length >= 2) {\n            suggestions.add(\"<position>\");\n        }\n        \n        return suggestions;\n    }\n}",2271,"2026-03-01T12:41:42.196593","2026-03-01T13:11:57.02978",{"id":90,"sessionId":9,"filePath":91,"content":92,"fileType":12,"fileSize":93,"version":14,"createdAt":94,"updatedAt":95},616787,"src/main/java/com/multigameevents/manager/GameStateManager.java","package com.multigameevents.manager;\n\nimport com.multigameevents.MultiGameEvents;\nimport lombok.Getter;\nimport lombok.Setter;\n\n@Getter\n@Setter\npublic class GameStateManager {\n    \n    private final MultiGameEvents plugin;\n    private int currentGame;\n    private GameState gameState;\n    \n    public GameStateManager(MultiGameEvents plugin) {\n        this.plugin = plugin;\n        this.currentGame = 0;\n        this.gameState = GameState.IDLE;\n    }\n    \n    public void nextGame() {\n        currentGame++;\n    }\n    \n    public void reset() {\n        currentGame = 0;\n        gameState = GameState.IDLE;\n    }\n    \n    public boolean isGameRunning() {\n        return gameState == GameState.RUNNING;\n    }\n    \n    public boolean isCountdownActive() {\n        return gameState == GameState.COUNTDOWN;\n    }\n    \n    public int getNextGameNumber() {\n        return currentGame + 1;\n    }\n    \n    public int getPracticeNumber() {\n        return currentGame + 1;\n    }\n    \n    public enum GameState {\n        IDLE,\n        COUNTDOWN,\n        RUNNING\n    }\n}",1056,"2026-03-01T12:41:42.196362","2026-03-01T13:11:57.031431",{"id":97,"sessionId":9,"filePath":98,"content":99,"fileType":12,"fileSize":100,"version":14,"createdAt":101,"updatedAt":102},616789,"src/main/java/com/multigameevents/MultiGameEvents.java","package com.multigameevents;\n\nimport com.cryptomorin.xseries.XSound;\nimport com.multigameevents.command.*;\nimport com.multigameevents.listener.ConnectionListener;\nimport com.multigameevents.manager.*;\nimport com.tcoded.folialib.FoliaLib;\nimport lombok.Getter;\nimport org.bukkit.Bukkit;\nimport org.bukkit.plugin.java.JavaPlugin;\n\n@Getter\npublic class MultiGameEvents extends JavaPlugin {\n    \n    private FoliaLib foliaLib;\n    private ConfigManager configManager;\n    private LocationManager locationManager;\n    private GameStateManager gameStateManager;\n    private CountdownManager countdownManager;\n    private VelocityMessenger velocityMessenger;\n    \n    @Override\n    public void onEnable() {\n        saveDefaultConfig();\n        \n        this.foliaLib = new FoliaLib(this);\n        this.configManager = new ConfigManager(this);\n        this.locationManager = new LocationManager(this);\n        this.velocityMessenger = new VelocityMessenger(this);\n        this.gameStateManager = new GameStateManager(this);\n        this.countdownManager = new CountdownManager(this);\n        \n        registerCommands();\n        registerListeners();\n        \n        getLogger().info(\"MultiGameEvents enabled!\");\n    }\n    \n    @Override\n    public void onDisable() {\n        if (foliaLib != null) {\n            foliaLib.getScheduler().cancelAllTasks();\n        }\n        getLogger().info(\"MultiGameEvents disabled!\");\n    }\n    \n    private void registerCommands() {\n        getCommand(\"setgame\").setExecutor(new SetGameCommand(this));\n        getCommand(\"setpractice\").setExecutor(new SetPracticeCommand(this));\n        getCommand(\"gamestart\").setExecutor(new GameStartCommand(this));\n        getCommand(\"nextgame\").setExecutor(new NextGameCommand(this));\n        getCommand(\"finishgame\").setExecutor(new FinishGameCommand(this));\n        \n        PracticeCommand practiceCommand = new PracticeCommand(this);\n        getCommand(\"practice\").setExecutor(practiceCommand);\n        getCommand(\"practice\").setTabCompleter(practiceCommand);\n        \n        getCommand(\"setgame\").setTabCompleter(new SetGameCommand(this));\n        getCommand(\"setpractice\").setTabCompleter(new SetPracticeCommand(this));\n    }\n    \n    private void registerListeners() {\n        Bukkit.getPluginManager().registerEvents(new ConnectionListener(this), this);\n    }\n}",2335,"2026-03-01T12:41:42.196814","2026-03-01T13:11:57.029957",{"id":104,"sessionId":9,"filePath":105,"content":106,"fileType":12,"fileSize":107,"version":14,"createdAt":108,"updatedAt":109},616790,"src/main/java/com/multigameevents/command/PracticeCommand.java","package com.multigameevents.command;\n\nimport com.multigameevents.MultiGameEvents;\nimport com.multigameevents.data.GameLocation;\nimport com.multigameevents.util.ColorUtil;\nimport org.bukkit.command.Command;\nimport org.bukkit.command.CommandExecutor;\nimport org.bukkit.command.CommandSender;\nimport org.bukkit.command.TabCompleter;\nimport org.bukkit.entity.Player;\n\nimport java.util.ArrayList;\nimport java.util.List;\n\npublic class PracticeCommand implements CommandExecutor, TabCompleter {\n    \n    private final MultiGameEvents plugin;\n    \n    public PracticeCommand(MultiGameEvents plugin) {\n        this.plugin = plugin;\n    }\n    \n    @Override\n    public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {\n        if (!(sender instanceof Player player)) {\n            sender.sendMessage(\"Only players can use this command!\");\n            return true;\n        }\n        \n        if (plugin.getGameStateManager().isGameRunning()) {\n            player.sendMessage(ColorUtil.colorize(\"<red>You cannot use /practice while a game is running!\"));\n            return true;\n        }\n        \n        int practiceNumber = plugin.getGameStateManager().getPracticeNumber();\n        GameLocation practiceLocation = plugin.getLocationManager().getPracticeLocation(practiceNumber);\n        \n        if (practiceLocation == null) {\n            player.sendMessage(ColorUtil.colorize(\n                \"<red>No practice location configured for position \" + practiceNumber + \"!\"\n            ));\n            return true;\n        }\n        \n        plugin.getVelocityMessenger().teleportOrConnect(player, practiceLocation);\n        player.sendMessage(ColorUtil.colorize(\n            \"<green>Teleporting to practice location \" + practiceNumber + \"...\"\n        ));\n        \n        return true;\n    }\n    \n    @Override\n    public List<String> onTabComplete(CommandSender sender, Command command, String label, String[] args) {\n        return new ArrayList<>();\n    }\n}",1987,"2026-03-01T12:41:42.197026","2026-03-01T13:11:57.030138",{"id":111,"sessionId":9,"filePath":112,"content":113,"fileType":12,"fileSize":114,"version":14,"createdAt":115,"updatedAt":116},616791,"src/main/java/com/multigameevents/command/SetPracticeCommand.java","package com.multigameevents.command;\n\nimport com.multigameevents.MultiGameEvents;\nimport com.multigameevents.util.ColorUtil;\nimport org.bukkit.command.Command;\nimport org.bukkit.command.CommandExecutor;\nimport org.bukkit.command.CommandSender;\nimport org.bukkit.command.TabCompleter;\nimport org.bukkit.entity.Player;\n\nimport java.util.ArrayList;\nimport java.util.List;\n\npublic class SetPracticeCommand implements CommandExecutor, TabCompleter {\n    \n    private final MultiGameEvents plugin;\n    \n    public SetPracticeCommand(MultiGameEvents plugin) {\n        this.plugin = plugin;\n    }\n    \n    @Override\n    public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {\n        if (!(sender instanceof Player player)) {\n            sender.sendMessage(\"Only players can use this command!\");\n            return true;\n        }\n        \n        if (args.length < 1) {\n            player.sendMessage(ColorUtil.colorize(\"<red>Usage: /setpractice <position>\"));\n            return true;\n        }\n        \n        int position;\n        try {\n            position = Integer.parseInt(args[0]);\n        } catch (NumberFormatException e) {\n            player.sendMessage(ColorUtil.colorize(\"<red>Position must be a number!\"));\n            return true;\n        }\n        \n        plugin.getLocationManager().savePracticeLocation(position, player);\n        player.sendMessage(ColorUtil.colorize(\n            \"<green>Practice location <white>\" + position + \"<green> set to your current position!\"\n        ));\n        \n        return true;\n    }\n    \n    @Override\n    public List<String> onTabComplete(CommandSender sender, Command command, String label, String[] args) {\n        List<String> suggestions = new ArrayList<>();\n        \n        if (args.length == 1) {\n            suggestions.add(\"<position>\");\n        }\n        \n        return suggestions;\n    }\n}",1888,"2026-03-01T12:41:42.197264","2026-03-01T13:11:57.031621",{"id":118,"sessionId":9,"filePath":119,"content":120,"fileType":121,"fileSize":122,"version":14,"createdAt":123,"updatedAt":124},616792,"build.gradle","plugins {\n    id 'java'\n}\n\ngroup = 'com.multigameevents'\nversion = '1.0.0'\n\njava {\n    toolchain.languageVersion.set(JavaLanguageVersion.of(17))\n}\n\nrepositories {\n    mavenCentral()\n    maven { url = 'https://repo.papermc.io/repository/maven-public/' }\n}\n\ndependencies {\n    compileOnly 'io.papermc.paper:paper-api:1.21.3-R0.1-SNAPSHOT'\n    compileOnly 'org.projectlombok:lombok:1.18.30'\n    annotationProcessor 'org.projectlombok:lombok:1.18.30'\n}\n\ntasks.withType(JavaCompile).configureEach {\n    options.encoding = 'UTF-8'\n    options.release.set(17)\n}","gradle",554,"2026-03-01T12:41:42.197466","2026-03-01T13:11:57.030297",{"id":126,"sessionId":9,"filePath":127,"content":128,"fileType":12,"fileSize":129,"version":14,"createdAt":130,"updatedAt":131},616793,"src/main/java/com/multigameevents/manager/ConfigManager.java","package com.multigameevents.manager;\n\nimport com.multigameevents.MultiGameEvents;\nimport lombok.Getter;\n\n@Getter\npublic class ConfigManager {\n    \n    private final MultiGameEvents plugin;\n    \n    public ConfigManager(MultiGameEvents plugin) {\n        this.plugin = plugin;\n    }\n    \n    public int getCountdownSeconds() {\n        return plugin.getConfig().getInt(\"countdown-seconds\", 300);\n    }\n    \n    public String getHubServer() {\n        return plugin.getConfig().getString(\"hub.server\", \"\");\n    }\n    \n    public void reload() {\n        plugin.reloadConfig();\n    }\n}",578,"2026-03-01T12:41:42.197666","2026-03-01T13:11:57.031774",{"id":133,"sessionId":9,"filePath":134,"content":135,"fileType":12,"fileSize":136,"version":14,"createdAt":137,"updatedAt":138},616794,"src/main/java/com/multigameevents/command/FinishGameCommand.java","package com.multigameevents.command;\n\nimport com.multigameevents.MultiGameEvents;\nimport com.multigameevents.data.GameLocation;\nimport com.multigameevents.util.ColorUtil;\nimport org.bukkit.Bukkit;\nimport org.bukkit.command.Command;\nimport org.bukkit.command.CommandExecutor;\nimport org.bukkit.command.CommandSender;\nimport org.bukkit.entity.Player;\n\npublic class FinishGameCommand implements CommandExecutor {\n    \n    private final MultiGameEvents plugin;\n    \n    public FinishGameCommand(MultiGameEvents plugin) {\n        this.plugin = plugin;\n    }\n    \n    @Override\n    public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {\n        GameLocation hubLocation = plugin.getLocationManager().getHubLocation();\n        \n        if (hubLocation == null) {\n            sender.sendMessage(ColorUtil.colorize(\"<red>Hub location not configured!\"));\n            return true;\n        }\n        \n        int nextGame = plugin.getGameStateManager().getNextGameNumber();\n        if (plugin.getLocationManager().getGameLocation(nextGame) == null) {\n            sender.sendMessage(ColorUtil.colorize(\"<red>No more games configured! Cannot start countdown.\"));\n            \n            for (Player player : Bukkit.getOnlinePlayers()) {\n                plugin.getVelocityMessenger().teleportOrConnect(player, hubLocation);\n            }\n            \n            plugin.getGameStateManager().reset();\n            sender.sendMessage(ColorUtil.colorize(\"<green>All players returned to hub. Event ended.\"));\n            return true;\n        }\n        \n        for (Player player : Bukkit.getOnlinePlayers()) {\n            plugin.getVelocityMessenger().teleportOrConnect(player, hubLocation);\n        }\n        \n        plugin.getFoliaLib().getScheduler().runLater(() -> {\n            plugin.getCountdownManager().startCountdown();\n        }, 20L);\n        \n        sender.sendMessage(ColorUtil.colorize(\n            \"<green>Game finished! Players returned to hub and countdown started for game \" + nextGame + \".\"\n        ));\n        \n        return true;\n    }\n}",2085,"2026-03-01T12:41:42.197885","2026-03-01T13:11:57.031937",{"id":140,"sessionId":9,"filePath":141,"content":142,"fileType":42,"fileSize":143,"version":14,"createdAt":144,"updatedAt":145},616795,"src/main/resources/config.yml","countdown-seconds: 300\n\nhub:\n  server: lobby\n  world: world\n  x: 0.0\n  y: 64.0\n  z: 0.0\n  yaw: 0.0\n  pitch: 0.0\n\ngames: {}\n\npractice: {}",136,"2026-03-01T12:41:42.198069","2026-03-01T13:11:57.03045",{"id":9,"userId":147,"name":148,"sessionName":149,"description":150,"knowledge":4,"thumbnailUrl":151,"status":152,"pickerId":153,"aiPersonality":154,"gameType":155,"gameVersion":4,"category":156,"totalTokensUsed":157,"totalCreditsUsed":158,"maxTokensPerRequest":159,"createdAt":160,"lastActivityAt":161,"completedAt":4,"isPublic":162,"publicViews":163,"publicDownloads":158,"shareToken":164,"privateToken":4,"wikiEnabled":165,"metadata":166,"settings":167,"deletedAt":4,"staffPickPriority":4,"creatorImageUrl":179,"latestJarId":180},10479,"VoiceIsHere","MultiGameEvents","A comprehensive event management system for multi-game tournaments. Features sequential game progression with staff-controlled flow, practice location routing, configurable countdown timers with ActionBar display, automatic sound effects, and cross-server teleportation through Velocity proxy integration. Perfect for charity streams and community events with ordered mini-games.","https://images.kodari.ai/sessions/KDR-202603-UILCLN7K/thumbnail.png","active","kodari_lite","balanced","minecraft","plugin",26023,0,8192,"2026-03-01T12:39:54.26399","2026-03-01T13:11:57.032826",true,73,"cf73084a-73ee-4643-b03e-bf7aad040705",false,{},{"generation":168,"compilation":170,"preferences":172,"premium":174,"history":175,"download":177},{"autoVerify":162,"studioTools":4,"modelTier":4,"reasoningEffort":169},"auto",{"autoCompile":165,"useBuildVersion":165,"javaVersion":171},"16",{"chatPosition":173},"left",{"hideMessagesOnPublicShare":165},{"enabled":165,"messageCount":176},10,{"filenamePattern":178},"{name}-{version}","https://avatars.githubusercontent.com/u/193517873?v=4",49692,{"compilations":182,"messages":190},[183],{"id":180,"sessionId":9,"pluginName":184,"success":162,"jarSize":185,"compilationTimeMs":186,"fileCount":187,"commitHash":188,"createdAt":189,"content":4},"MultiGameEvents-1.0.0",24616,1365,15,"6cf7bd56b7589d9d68df45c99d2f17d797906845","2026-03-01T12:45:40.743546",[191,198,206,212],{"id":192,"sessionId":9,"messageType":193,"role":193,"content":194,"tokensUsed":4,"creditsCharged":4,"metadata":195,"createdAt":196,"sequenceNumber":197},146669,"user","\n\n---\n📎 Attached 1 file(s):\n\n### File: pasted-code-1772368783844.txt\n```txt\nCreate a Minecraft plugin for the Paper server API (Java 17, Paper 1.21+) that manages a multi-game event system. The plugin must allow staff to define ordered game locations and practice locations using commands, then control the flow of games with a cooldown and manual progression. The plugin must include the commands /setgame <title> <position> and /setpractice <position> which save the player’s current world coordinates (including world, x, y, z, yaw, and pitch) into a YAML configuration file under numbered positions. A /gamestart command must begin a countdown (default 5 minutes, configurable in config.yml) displayed to all players in the ActionBar. When the countdown reaches 10 seconds remaining, the plugin must play the Minecraft sound minecraft:block.note_block.banjo each second. When the countdown finishes, players must not be teleported automatically; instead, staff must manually execute /nextgame, which teleports all players to the next configured game location and displays a large bold title in the center of the screen saying “GAME IS STARTING” with a smaller subtitle below saying “Help us raise the money, link in description,” including fade-in and fade-out animation. After a game ends, staff must use /finishgame, which teleports all players to the main hub location defined in the configuration and immediately starts the next countdown for the following game. The plugin must also include a /practice command that teleports the executing player to the appropriate practice location based on the current game number: before any games start it sends them to practice location 1, after game 1 it sends them to practice location 2, and so on. The /practice command must not function while a game is actively running. All commands must include tab completion. The system must track the current game index, prevent invalid positions, avoid crashing on missing configuration values, and ensure only valid saved locations are used. All messaging must use the Adventure API (ActionBar, Titles, and Sounds). The plugin must be modular with separate managers for configuration, game state, and countdown handling, and must run purely on Paper also and u must have a way to link it with velocity server so when i use /next game it can tps to other servers\n```\n\n",{"userId":147,"imageUrl":179,"username":148},"2026-03-01T12:39:55.36852",1,{"id":199,"sessionId":9,"messageType":200,"role":200,"content":201,"tokensUsed":202,"creditsCharged":4,"metadata":203,"createdAt":204,"sequenceNumber":205},146671,"assistant","I'll create a multi-game event system with countdown management, manual progression, and Velocity cross-server support.\n\n<kodariProjectNamed>MultiGameEvents</kodariProjectNamed>\n<kodariProjectDescription>A comprehensive event management system for multi-game tournaments. Features sequential game progression with staff-controlled flow, practice location routing, configurable countdown timers with ActionBar display, automatic sound effects, and cross-server teleportation through Velocity proxy integration. Perfect for charity streams and community events with ordered mini-games.</kodariProjectDescription><kodariReadDoc>folialib</kodariReadDoc><kodariProjectNamed>MultiGameEvents</kodariProjectNamed>\n<kodariProjectDescription>A comprehensive event management system for multi-game tournaments. Features sequential game progression with staff-controlled flow, practice location routing, configurable countdown timers with ActionBar display, automatic sound effects, and cross-server teleportation through Velocity proxy integration. Perfect for charity streams and community events with ordered mini-games.</kodariProjectDescription><kodariReadDoc>incendo-cloud-paper</kodariReadDoc>I'll create a comprehensive multi-game event system with countdown management and Velocity cross-server support.\n\n<kodariCreatedFile>build.gradle</kodariCreatedFile>\n\n<kodariCreatedFile>manifest.kod</kodariCreatedFile>\n\n<kodariCreatedFile>src/main/resources/plugin.yml</kodariCreatedFile>\n\n<kodariCreatedFile>src/main/resources/config.yml</kodariCreatedFile>\n\n<kodariCreatedFile>src/main/java/com/multigameevents/MultiGameEvents.java</kodariCreatedFile>\n\n<kodariCreatedFile>src/main/java/com/multigameevents/data/GameLocation.java</kodariCreatedFile>\n\n<kodariCreatedFile>src/main/java/com/multigameevents/manager/ConfigManager.java</kodariCreatedFile>\n\n<kodariCreatedFile>src/main/java/com/multigameevents/manager/LocationManager.java</kodariCreatedFile>\n\n<kodariCreatedFile>src/main/java/com/multigameevents/manager/GameStateManager.java</kodariCreatedFile>\n\n<kodariCreatedFile>src/main/java/com/multigameevents/manager/CountdownManager.java</kodariCreatedFile>\n\n<kodariCreatedFile>src/main/java/com/multigameevents/manager/VelocityMessenger.java</kodariCreatedFile>\n\n<kodariCreatedFile>src/main/java/com/multigameevents/command/SetGameCommand.java</kodariCreatedFile>\n\n<kodariCreatedFile>src/main/java/com/multigameevents/command/SetPracticeCommand.java</kodariCreatedFile>\n\n<kodariCreatedFile>src/main/java/com/multigameevents/command/GameStartCommand.java</kodariCreatedFile>\n\n<kodariCreatedFile>src/main/java/com/multigameevents/command/NextGameCommand.java</kodariCreatedFile>\n\n<kodariCreatedFile>src/main/java/com/multigameevents/command/FinishGameCommand.java</kodariCreatedFile>\n\n<kodariCreatedFile>src/main/java/com/multigameevents/command/PracticeCommand.java</kodariCreatedFile>\n\n<kodariCreatedFile>src/main/java/com/multigameevents/listener/ConnectionListener.java</kodariCreatedFile>\n\n<kodariCreatedFile>src/main/java/com/multigameevents/util/ColorUtil.java</kodariCreatedFile>\n\nPlugin created successfully! The system includes:\n\n**Commands:**\n- `/setgame <title> <position>` - Save game location with title\n- `/setpractice <position>` - Save practice location\n- `/gamestart` - Begin countdown (5 min default, configurable)\n- `/nextgame` - Teleport all players to next game + show title\n- `/finishgame` - Return to hub + start next countdown\n- `/practice` - Teleport to practice location (disabled during games)\n\n**Features:**\n- FoliaLib for scheduling (Paper/Folia compatible)\n- Adventure API for ActionBar countdown display\n- XSound for banjo sound at 10 seconds\n- Cross-server teleportation via Velocity (add \"server\" field to config)\n- Tracks current game and state (idle/countdown/running)\n- Practice routing based on game progress\n\n**Config structure:**\n```yaml\ngames:\n  1:\n    title: \"Parkour\"\n    world: world\n    x: 100\n    y: 64\n    z: 100\n    server: game1  # Optional - for cross-server\npractice:\n  1:\n    world: world\n    x: 50\n    y: 64\n    z: 50\n```",19689,{},"2026-03-01T12:41:43.606871",2,{"id":207,"sessionId":9,"messageType":193,"role":193,"content":208,"tokensUsed":4,"creditsCharged":4,"metadata":209,"createdAt":210,"sequenceNumber":211},146698,"how do i add which server hub is in?",{"userId":147,"imageUrl":179,"username":148},"2026-03-01T13:11:32.451757",3,{"id":213,"sessionId":9,"messageType":200,"role":200,"content":214,"tokensUsed":215,"creditsCharged":4,"metadata":216,"createdAt":217,"sequenceNumber":14},146699,"I need to see your current configuration structure to add the hub server setting.<kodariReadFile>src/main/resources/config.yml</kodariReadFile><kodariReadOutline>src/main/java/com/multigameevents/manager/VelocityMessenger.java</kodariReadOutline><kodariReadOutline>src/main/java/com/multigameevents/manager/ConfigManager.java</kodariReadOutline><kodariReadFile>src/main/java/com/multigameevents/manager/VelocityMessenger.java</kodariReadFile><kodariReadOutline>src/main/java/com/multigameevents/MultiGameEvents.java</kodariReadOutline>I can see your config already has hub location coordinates. To add which server the hub is on, I'll:\n\n1. Add `server` field to hub config\n2. Add method in ConfigManager to retrieve it\n3. Add convenience method to send players to hub\n\n<kodariPatchedFile>src/main/resources/config.yml</kodariPatchedFile>\n\n<kodariPatchedFile>src/main/java/com/multigameevents/manager/ConfigManager.java</kodariPatchedFile>\n\n<kodariPatchedFile>src/main/java/com/multigameevents/manager/VelocityMessenger.java</kodariPatchedFile>\n\nAdded hub server configuration - set `server: lobby` in config.yml to your hub server name, and use `velocityMessenger.sendToHub(player)` to send players there.",6334,{},"2026-03-01T13:11:57.032544",["Reactive",219],{"$snuxt-seo-utils:routeRules":220,"$sauth":221,"$suserCredits":158,"$suserLifetimeCredits":222,"$suserCreditsLoading":165,"$suserCreditsError":4,"$suserCreditsInitialized":165,"$suserCreditsFetchedSession":165,"$sreadonly-ide-crawler":162,"$sreadonly-ide-mobile":165,"$sconsent-banner-visible":165,"$sdiscord-claim-open":165,"$ssite-config":223},{"head":-1,"seoMeta":-1},{"user":4,"authenticated":165},-1,{"_priority":224,"defaultLocale":227,"description":228,"env":229,"identity":230,"indexable":162,"name":232,"trailingSlash":165,"url":233},{"env":225,"url":226,"name":226,"description":226,"defaultLocale":226,"identity":226,"trailingSlash":226,"indexable":226},-15,-3,"en","Create Minecraft plugins, Fabric mods, and Discord bots in minutes using AI. No coding required. Automatic compilation, error fixing, and deployment.","production",{"type":231},"Organization","Kodari AI","https://kodari.ai",["Set"],["ShallowReactive",236],{"auth-user":-1,"public-session-ssr-cf73084a-73ee-4643-b03e-bf7aad040705":-1,"public-client-cf73084a-73ee-4643-b03e-bf7aad040705":-1},"/public/cf73084a-73ee-4643-b03e-bf7aad040705"]</script></body></html>