Create a professional, production-ready Minecraft plugin named StarSpawn, authored by StarOG__, using Maven. The main package must be exactly me.starog.starstudio.starspawn with a clean modular structure such as command, listener, manager, teleport, config, util, etc. The plugin must support the latest PaperMC, Folia and Purpur versions from Minecraft 26.1 through 26.3, including 26.1, 26.2 and 26.3, and must be designed specifically to avoid compatibility issues across all three server platforms. Recreate the functionality of the provided Skript EXACTLY as the default behavior; do not remove, simplify, reinterpret or redesign any of its gameplay behavior. The original behavior is: /spawn starts a 5-second teleport countdown, plays the experience-orb pickup sound before/during the countdown, displays an ActionBar countdown using the configured colors, continuously checks whether the player has moved from the block location where the command was started, and immediately cancels the teleport if the player moves. The countdown must display the same sequence and style as the original Skript, using the configured blue colors and the mushroom emoji: 🍄 Teleporting in %seconds% seconds. The countdown should preserve the original timing/behavior, including the 5-second countdown and sound effects. If the player moves from the original block location at any point during the countdown, play the shield-break sound, display Teleport cancelled because you moved! in the ActionBar and cancel the teleport completely. Movement detection must compare the block location exactly as the original Skript does, meaning small head rotations or looking around must not cancel the teleport, while changing the player's block position must cancel it. Do not accidentally cancel because of yaw/pitch changes. After the countdown completes, teleport the player to the configured {spawn} location, play entity.player.levelup, and display You were teleported to spawn. in the ActionBar. Preserve the original special OP behavior: if the player has the op permission, after the normal teleport also play entity.player.levelup, entity.enderman.teleport, and entity.player.levelup again, set the player's food level to 20, and teleport the player to the spawn location again. Replicate this behavior exactly unless a technical server-platform restriction makes the second teleport redundant; in that case preserve the resulting player state while avoiding an unsafe duplicate teleport operation. Implement /setspawn exactly like the Skript: permission spawn.set, configurable permission-denied message equivalent to You do not have permission for that command, set the spawn location to the player's current location, play entity.player.levelup, and display Successfully set the spawn location. in the ActionBar. The spawn location must persist across server restarts and must include the complete world identity and coordinates, yaw and pitch. Store it safely in configuration or a dedicated persistent data file, with a clear configurable storage location. Implement first join behavior exactly like the Skript: when a player joins for the first time, teleport them to the configured spawn location. Implement respawn behavior exactly like the Skript's intent: when a player respawns, use their bed spawn location if they have a valid bed/respawn anchor spawn location; otherwise use the configured server spawn location. The plugin must never throw an exception if the player has no bed location, their bed was destroyed, the world is unavailable, the respawn location is invalid, or the stored spawn is missing. In all invalid cases, gracefully fall back to a valid server/world spawn where possible and log a useful warning rather than crashing. Preserve the original color configuration concept with defaults equivalent to: color1: <##43ACFF> and color2: <##43ACFF>. Support the same Adventure/MiniMessage hex-color syntax while also allowing legacy & colors and normal hex colors such as +ACFF in configuration. Keep all messages configurable. The default ActionBar messages should visually match the original Skript: 🍄 followed by bold blue text, white Teleporting in, blue countdown number, white seconds.; cancellation in the configured blue; and successful teleport in the configured blue. Provide a small helper/service for ActionBar messaging equivalent to the original ActionBar(p: player, text: string) function, but implement it using the correct modern Adventure API for the target server versions. The most important requirement is SAFE FOLIA TELEPORTATION. The implementation must be genuinely Folia-compatible and must NOT use unsafe BukkitScheduler APIs, Bukkit.getScheduler(), runTask, runTaskLater, runTaskTimer, or assumptions that all worlds/players share one main server thread. Do not simply mark the plugin Folia-compatible in plugin.yml; actually implement the scheduling and teleportation correctly for Folia. Player-specific countdowns must run using the correct Folia scheduler/context, preferably the player's EntityScheduler or another officially supported Folia-safe scheduling mechanism, so each countdown executes in the correct region/thread context for that player. Every player interaction, ActionBar update, sound playback, food-level change and player teleport must occur from the correct player/entity context. Never access a player unsafely from an unrelated region thread. When teleporting between worlds on Folia, use the supported asynchronous/cross-region teleport API appropriate for the target Paper/Folia version rather than directly calling an unsafe synchronous teleport from an arbitrary region thread. The implementation must explicitly account for the fact that the destination spawn may be in a different world and therefore potentially a different region/thread. Use the modern Paper/Folia teleport mechanism and its returned future/result where applicable, and schedule any follow-up player actions only after the teleport has completed successfully and in the player's correct entity context. Do not assume that a cross-world teleport is an ordinary same-region operation. If the teleport fails because the destination world is unavailable, the location is invalid, or the player disconnects during the operation, gracefully cancel/handle it and never throw an uncaught exception. The countdown must also be cancelled automatically if the player disconnects, dies where appropriate, becomes invalid, or the plugin is disabled/reloaded. Never retain Player objects indefinitely; use UUID-based state and clean all countdown state when the operation ends. Avoid memory leaks. Make the countdown state thread-safe because multiple events can potentially interact with it. A player must never have two simultaneous /spawn countdowns. If /spawn is executed again while a countdown is active, handle it safely according to a configurable policy, with the default being to prevent duplicate countdowns rather than creating multiple teleport tasks. Movement detection must be Folia-safe: the countdown callback should inspect the player's current block position only while executing in the player's correct entity/region context. Store the original world UUID/name and block X/Y/Z rather than retaining a mutable Location/Player reference. Compare the current player's world and block coordinates against the stored starting position. If the player crosses to another block or world, cancel the countdown. Do not cancel because of yaw/pitch changes. All sounds must use modern valid sound constants for the supported Minecraft versions and must gracefully handle version-specific sound changes if necessary. Preserve the original intended sound behavior: experience-orb pickup at the start, experience-orb pickup during the countdown, shield-break on movement cancellation, player level-up after successful teleport, and the additional OP sounds in the same order as the original Skript. Validate sound names against the target API and do not use misspelled identifiers such as entity.experience_orb.pickaup; use the correct API constant for the intended experience-orb pickup sound. The player should receive the equivalent of the original five countdown iterations, with the countdown number matching the original intended values and timing. Avoid an off-by-one error where the displayed number and actual wait duration do not match. Make this behavior configurable but preserve the original 5-second default. /setspawn must save the player's exact current location including world, XYZ, yaw and pitch. If the spawn world is later unloaded or deleted, /spawn must fail gracefully with a configurable message instead of crashing. Add /starspawn reload or /spawn reload only if it does not conflict with the original /spawn command, and protect it with an admin permission such as starspawn.admin; however, do not change the normal /spawn and /setspawn behavior. Add tab completion where appropriate. Use permissions spawn.set for /setspawn exactly as the original and configurable admin permissions for reload/management. The plugin must include a proper plugin.yml, Maven pom.xml, configuration files and complete source code. Make the configuration highly configurable while keeping the original Skript behavior as the default: countdown duration, movement cancellation, spawn location storage, messages, ActionBar text, colors, sounds, first-join teleport, respawn fallback behavior, OP behavior, food level, permissions and teleport failure messages. Do not introduce unnecessary gameplay features that change the original plugin's purpose. The plugin should be lightweight and optimized, with no global repeating task that scans every online player. Only schedule a countdown for players who actually use /spawn, and cancel that state immediately when finished or cancelled. Do not use blocking operations during player events. The plugin must be safe on PaperMC, Purpur and Folia and should detect the platform/environment where necessary without using fragile version-specific NMS. Prefer Bukkit/Paper public APIs and Adventure APIs. Ensure reload does not create duplicate listeners or duplicate scheduled tasks. On shutdown, cleanly cancel active countdown state and persist configuration. Include a professional startup console ASCII banner saying StarStudio, followed by StarSpawn, author StarOG__, plugin version and supported Minecraft/server platforms. The final implementation must compile successfully with Maven and contain no TODOs, placeholder methods, fake Folia support, unsafe scheduler calls, unsafe cross-world teleports, memory leaks or unfinished features. Thoroughly verify these scenarios before considering the plugin complete: normal /spawn, moving one block during countdown, rotating without moving, changing worlds during countdown, disconnecting during countdown, repeated /spawn, first join, respawn with valid bed location, respawn without bed location, missing/invalid configured spawn, /setspawn, server restart, reload, Paper same-world teleport, Paper cross-world teleport, Purpur teleport, Folia same-region teleport, Folia cross-region teleport, Folia cross-world teleport, player disconnecting during a Folia teleport future, plugin shutdown during countdown, OP behavior, ActionBar updates, sound playback, and concurrent countdowns for many players. The final result must behave like the provided Skript but be implemented as a clean, reliable Java plugin with genuinely correct Folia world/cross-region teleport handling.