unknown012647

COMPLETE MINECRAFT PLUGIN DEVELOPMENT PROMPT Project: AirDrop by Developer — Version 26.2

Act as a professional Minecraft Java plugin developer. Create a complete, fully functional Minecraft Paper plugin named AirDrop by Developer, version 26.2.

The plugin must implement a randomized airdrop system with physical chest drops, random survival-obtainable loot, rare airdrops, unique codes, Title announcements, BossBar integration, automatic spawning, and configurable timers.

Do not provide pseudocode or incomplete implementations. Generate the complete working source code and all required project files.

  1. Plugin Information Plugin name: AirDrop by Developer Plugin version: 26.2 Main platform: Minecraft Paper Minecraft compatibility: Paper 1.21.x, including compatibility with the specific API version selected for the build Programming language: Java Build system: Maven Main command: /ad Additional command: /airdrop Configuration file: config.yml Plugin descriptor: plugin.yml Output JAR: AirDrop-by-Developer-26.2.jar

The plugin version must be 26.2. Do not confuse the plugin version with the Minecraft version.

Use a valid Java package name and a compatible Paper API dependency. Ensure that the final project compiles successfully.

  1. Operator-Only Commands

Create an administrative command system that only server operators (OPs) can use by default.

Commands:

/ad /ad airdrop /ad airdrop spawn /ad airdrop cancel /airdrop /airdrop cancel

Requirements:

/ad must display available commands and usage information. /ad airdrop spawn must start automatic airdrop spawning. /airdrop must provide an alternative way to start the same automatic system. /airdrop cancel must stop automatic spawning. /ad airdrop cancel must also stop automatic spawning. /ad airdrop must display relevant airdrop controls or status information. Implement complete tab completion for valid subcommands. Only show administrative suggestions to authorized users. Prevent non-OP players from using administrative commands. Display configurable permission-denied and command-status messages. Console execution may be supported for administrative commands.

Do not create separate schedulers when different start commands are used. Both start commands must control the same airdrop system.

  1. Automatic Airdrop Spawn Timer

Add this setting to config.yml:

airdrop: drop-spawn-minutes: 15

Requirements:

The configuration key must be named exactly drop-spawn-minutes. The default interval must be 15 minutes. The administrator must be able to change the interval using whole minutes only. Examples: 5 means every 5 minutes, 15 means every 15 minutes, and 30 means every 30 minutes. Do not require the administrator to configure seconds or milliseconds. Internally convert minutes to scheduler ticks using 1 minute = 1,200 ticks. Validate the value at startup. If it is invalid or less than 1, log a warning and use the default of 15 minutes. Read this setting from config.yml; do not hardcode the interval in Java. Use one scheduler only, preventing duplicate automatic spawning. The first automatic airdrop should spawn after the configured interval unless an immediate spawn is explicitly requested. Continue spawning airdrops at the configured interval while the system is active. When automatic spawning is cancelled, no future scheduled airdrops may appear. Starting the system again must work without restarting the server.

The interval must be configurable in minutes only.

  1. Airdrop Start and Cancel Behaviour

When an OP executes /ad airdrop spawn or /airdrop:

Start the automatic airdrop scheduler. Confirm that the system has started. Wait for the configured number of minutes. Spawn an airdrop at a randomly selected valid location. Generate a new random code and randomized loot. Continue spawning subsequent airdrops at the configured interval.

If the system is already running, do not start another scheduler. Send an appropriate message.

When an OP executes /airdrop cancel or /ad airdrop cancel:

Stop the automatic scheduler immediately. Prevent all future scheduled spawns. Cancel pending spawn tasks. Remove the active airdrop's BossBar. Clear its displayed code. Remove the active airdrop container and clean up its tracking state. Handle any remaining loot safely, without duplication or accidental deletion. Confirm that automatic spawning has been cancelled.

Cancelling the scheduler must not delete or modify config.yml.

  1. Random Airdrop Locations

Airdrops must spawn at random locations within configurable boundaries.

Add these options to config.yml:

airdrop: world: world random-location: enabled: true min-x: -1000 max-x: 1000 min-z: -1000 max-z: 1000

Requirements:

Allow the administrator to specify the target world. Randomize X and Z coordinates within the configured boundaries. Find a safe, valid surface on which to place the airdrop. Avoid lava, unsafe terrain, invalid block locations, and inaccessible positions. Ensure the container is not placed inside solid terrain. Handle missing worlds and invalid coordinates gracefully. Retry a reasonable number of times when a location is unsuitable. If no safe location can be found, log a clear warning and skip that spawn rather than placing the drop somewhere dangerous. Keep the location logic compatible with the server's actual Minecraft version.

Do not generate fake coordinates or claim a drop spawned when its location is invalid.

  1. Physical Airdrop Container

Every airdrop must appear in the world as a real Minecraft chest or an appropriate physical supply-drop container.

Requirements:

Place a real chest at the selected random location. Fill the chest with the generated loot. Ensure that players can see and interact with it normally. Associate each container with its own unique airdrop ID, code, location, rarity, and loot state. Do not use a visual-only chest that cannot be opened. Prevent players from duplicating the loot. Track the active airdrop and its lifecycle correctly.

The container must be a real, functional Minecraft object.

  1. Random Survival-Obtainable Loot

Implement a dynamic loot generator that supports legitimate survival-obtainable Minecraft items and blocks.

Use the server's native Minecraft Material registry rather than a tiny hardcoded loot list.

Include all applicable categories of survival-obtainable items, such as:

Building and decorative blocks Ores, minerals, and raw materials Weapons, tools, and armor Food and farming items Redstone components Brewing ingredients and potions Enchanted books Enchanted tools, weapons, and armor Mob drops Nether and End materials Rare survival items Other legitimate survival-obtainable items supported by the running Minecraft version Forbidden items

Never generate unobtainable or admin-only items, including:

Bedrock Barrier Command Blocks Chain Command Blocks Repeating Command Blocks Structure Blocks Jigsaw Blocks Light Blocks Other technical or restricted items that cannot legitimately be obtained in normal Survival mode

Use an explicit blacklist alongside proper Material validation. Do not exclude legitimate survival items simply because they are rare.

Randomization

Every airdrop must generate its own randomized loot.

Randomize item types. Randomize stack amounts within valid item limits. Include a chance for enchanted books and enchanted equipment. Allow valuable items to appear occasionally. Avoid repeating the exact same loot combination whenever possible. Ensure every generated item is valid for the running server version. Generate loot independently for every new airdrop. Do not reuse a fixed loot list for every drop.

The loot must be generated once per airdrop and must not be regenerated when the chest is opened or interacted with.

  1. Normal and Rare Airdrops

Implement two rarity categories: Normal and Rare.

Normal Airdrop Must contain at least 6 distinct loot entries by default. Default maximum: 10 distinct loot entries. Can contain common, uncommon, and occasionally valuable items. May contain multiple stacks of the same item. Must have randomized loot for each spawn. Rare Airdrop Must contain 2–3 distinct loot entries. Must contain more valuable or rarer survival-obtainable items. May include rare enchanted books, valuable equipment, and other legitimate rare items. Must have a lower spawn probability than a normal airdrop. Must use a separate rare loot selection system. Must never include forbidden items.

Use the following configurable settings:

airdrop: loot: enabled: true normal: min-items: 6 max-items: 10 rare: enabled: true chance-percent: 10 min-items: 2 max-items: 3 random-stack-amounts: true allow-enchanted-books: true allow-enchanted-equipment: true blacklist: - BEDROCK - BARRIER - COMMAND_BLOCK - CHAIN_COMMAND_BLOCK - REPEATING_COMMAND_BLOCK - STRUCTURE_BLOCK - JIGSAW - LIGHT

The rare chance must be configurable. A value of 10 means a 10% chance of generating a rare airdrop.

The configured item counts represent distinct loot entries, not the total number of individual items in the stacks.

Validate all loot settings to avoid invalid ranges or impossible configurations.

  1. Airdrop Code Generation

Every airdrop must have its own randomly generated code.

Example codes:

A7K9P2 X4M8Q1 R9B3T6

Requirements:

Generate a new code for each airdrop. Use configurable code length and permitted characters. Default code length must be 6 characters. Use uppercase letters and digits by default. Avoid accidental duplicate codes among active or recently generated airdrops whenever possible. Associate each code with the correct airdrop. Never display a stale code for an expired, cancelled, or claimed drop.

Configuration:

airdrop: code: length: 6 characters: "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789" 10. Full-Screen Title Announcement

When an airdrop spawns:

Generate its code. Immediately display the code as a large Minecraft title on every online player's screen. Keep the title visible for approximately 1–2 seconds. After the title disappears, show the same code in the BossBar. Keep the BossBar visible while the airdrop remains available.

Use Paper/Bukkit's native Title API.

The code displayed in the title and BossBar must match exactly.

Do not show the opening player's IGN to everyone by default; the opener's personal title is a separate event.

  1. BossBar System

Use the native Paper/Bukkit BossBar API.

Requirements:

Show the active airdrop code in the BossBar for all online players. Use a configurable BossBar color and style. Keep the code visible while the airdrop is available. Remove the BossBar immediately when the airdrop is opened. Remove the BossBar when the active drop is cancelled or cleaned up. Do not leave old BossBars attached to players. Prevent duplicate BossBars from being created for the same active airdrop. Handle players joining or leaving while an airdrop is active.

Configuration:

airdrop: display: title-duration-seconds: 1 bossbar-enabled: true bossbar-color: PURPLE bossbar-style: SOLID

If a new airdrop replaces the active one, ensure the old code and BossBar are cleaned up correctly.

  1. One-Time Airdrop Opening Mechanic

This is a critical feature.

Each airdrop can be opened only once. The first player who opens it triggers the entire claim sequence immediately.

When a player opens the airdrop chest:

Identify the player who opened it. Atomically mark the airdrop as claimed before processing its loot. Display the player's actual Minecraft IGN as a large title on that player's screen for approximately 2 seconds. Immediately remove the airdrop code from the BossBar for all online players. Copy all non-empty item stacks from the chest inventory into a safe temporary collection. Remove the chest container from the world. Clear the chest inventory and prevent further interactions. Drop every copied item stack naturally onto the ground at the chest's location. Ensure that all remaining loot drops, even if the player did not take any items from the chest. Prevent all other players from opening or claiming the same airdrop. Ensure the loot is not duplicated if several players interact with the chest simultaneously. Clear the active airdrop's code and tracking state. Critical behaviour

The chest must disappear immediately after the first successful opening. Do not wait for the chest to become empty.

All contents must drop onto the ground, and the chest must not be accessible again.

The first player who successfully opens it triggers the sequence. Subsequent interactions must not create additional loot or announcements.

Use appropriate inventory and interaction events. Prevent the normal chest GUI from allowing players to take items before the plugin processes the opening sequence.

Copy the contents before removing the container, then remove the chest, clear its inventory, and drop the copied stacks exactly once.

  1. Player IGN Title and Claim Announcement

When an airdrop is opened:

Display the opener's real Minecraft IGN as a large title only on that player's screen. Keep the title visible for approximately 2 seconds. Do not use a placeholder in place of the actual username. Ensure that this title appears only once per airdrop. Remove the active airdrop's BossBar immediately.

Optionally broadcast a configurable chat announcement such as:

&5&lAIRDROP &7claimed by &d%player%&7!

If a rare airdrop is claimed, its announcement may include the rarity.

The player's personal IGN title and the global airdrop code title must be handled as separate events.

  1. Airdrop Lifecycle and Scheduler Integration

Implement the complete lifecycle:

Start system → Wait configured minutes → Generate location, code, and loot → Spawn chest → Show code title → Display BossBar → First player opens chest → Show opener's IGN → Remove BossBar → Drop all loot → Remove chest → Continue scheduled spawning.

Requirements:

Keep the automatic scheduler active after an airdrop is opened. Spawn the next airdrop according to drop-spawn-minutes. Generate new loot and a new code for every drop. Track only one active airdrop by default. Never duplicate scheduled tasks. Handle simultaneous chest interactions safely. Clean up temporary state and scheduled tasks on plugin disable. If a spawn fails because no safe location exists, log the failure and allow the scheduler to recover. Do not let a failed spawn permanently stop the automatic system.

If /airdrop cancel is used, stop future spawns and safely remove the active airdrop. Ensure any remaining loot is handled according to the configured cleanup policy and is never duplicated or silently destroyed.

  1. Complete Configuration File

Generate a complete, valid config.yml containing all relevant settings, including:

drop-spawn-minutes Target world Random location boundaries Code length and allowed characters Title duration BossBar color and style Normal loot range Rare loot range and chance Enchanted book and equipment settings Forbidden item blacklist Configurable messages Optional claim announcements

Use this timer setting as the single source of truth:

airdrop: drop-spawn-minutes: 15

The administrator must only need to edit the number of minutes to control the automatic spawn interval.

Include sensible defaults and comments in config.yml. Do not require editing Java source code to change the timer.

  1. Messages and Customization

Allow important messages to be configured, including:

Automatic spawning started Automatic spawning already running Automatic spawning cancelled Automatic spawning not running No permission Normal airdrop spawned Rare airdrop spawned Airdrop claimed Invalid configuration Missing world or unavailable safe location

Support standard Minecraft color codes using &.

Ensure the messages do not interfere with the title and BossBar displays.

  1. Performance, Compatibility, and Security Use the native Paper API. Avoid unnecessary external dependencies. Perform world modifications, player interactions, inventory operations, and entity/item spawning safely on the main server thread. Do not block the server while searching for a location. Validate configuration values. Prevent duplicate loot, duplicate codes where practical, and duplicate scheduler tasks. Handle player logout, death, server shutdown, and plugin reloads safely. Remove BossBars and cancel plugin tasks when the plugin disables. Do not allow non-OP players to access administrative commands. Use the actual server version's available materials and APIs. Do not generate technical blocks or restricted items. Do not silently swallow exceptions; log useful error messages. Ensure the plugin works on a Paper server rather than requiring Spigot-specific alternatives or unsupported APIs. 18. Required Deliverables

Provide all of the following:

Complete Java source code for every required class. Complete pom.xml. Complete plugin.yml. Complete default config.yml. Correct command registration and tab completion. Working scheduler and cancellation logic. Working random location generator. Working survival-only randomized loot generator. Working Normal and Rare airdrop systems. Working chest opening, one-time claim, and loot-drop mechanism. Working Title and BossBar integration. Instructions for building the plugin with Maven. Instructions for installing the JAR into the Paper server's plugins folder. Instructions for configuring the timer in minutes. Instructions for testing all commands and airdrop behaviours.

The final output must be a complete, compilable plugin project, not just an explanation or a few code snippets.

Final Acceptance Tests

Before declaring the plugin complete, verify that:

The plugin version is exactly 26.2. The plugin name is AirDrop by Developer. Only OPs can use the administrative commands. /ad airdrop spawn starts automatic spawning. /airdrop starts the same system without creating a duplicate timer. /airdrop cancel and /ad airdrop cancel stop automatic spawning. drop-spawn-minutes controls the spawn interval using minutes only. Airdrops spawn at safe random locations. Every drop receives a new code and randomized survival-obtainable loot. Normal drops contain at least 6 distinct loot entries by default. Rare drops contain 2–3 distinct loot entries by default. The code appears as a title and then in the BossBar. The first chest opening displays the opener's IGN as a title. The chest disappears immediately after its first opening. All remaining chest contents drop onto the ground exactly once. The BossBar disappears immediately when the drop is opened. Automatic spawning continues according to the configured interval. No forbidden items are generated. No duplicated loot, duplicate schedulers, or stale BossBars remain. The plugin builds successfully and loads correctly on the selected Paper version.

Deliver the complete project and verify the implementation against these acceptance tests before calling it finished.

Kodari AI
KodariOct 10 at 10:37 pm 2
AirDropByDeveloper
A comprehensive Paper plugin implementing a randomized airdrop system with physical chest drops, survival-obtainable loot generation, rare airdrops, unique codes, Title announcements, BossBar integration, and configurable automatic spawning timers. Features operator-only commands with tab completion, one-time chest opening mechanics, safe random location selection, and complete lifecycle management. Includes Normal and Rare rarity tiers, configurable loot ranges, enchanted item support, and forbidden item blacklist validation. Provides full configuration via config.yml with drop-spawn-minutes timer control, world boundaries, code generation settings, and customizable messages. Ensures safe main-thread operations, prevents duplicate schedulers, and handles player logout, server shutdown, and plugin reloads gracefully.
  1. Create the Maven project and Paper plugin descriptor for version 26.2.

  2. Implement one shared automatic scheduler, commands, and validated configuration.

  3. Add asynchronous safe-location selection, survival-filtered loot, and rare-drop generation.

  4. Implement the chest claim lifecycle, titles, BossBar cleanup, and default config.

Created the complete AirDrop by Developer 26.2 project, targeting Paper 1.21.4 and Java 21. It includes the shared minute-based scheduler, operator-only commands, asynchronous safe-location search, randomized normal and rare loot, unique codes, title/BossBar announcements, and one-time chest claims with remaining loot dropped exactly once.

Build and install

  1. In Kodari, click Compile → Compile, then download the build. The configured JAR name is AirDrop-by-Developer-26.2.jar.

  2. Put the JAR in the Paper server’s plugins folder and restart the server.

  3. To change the interval, edit airdrop.drop-spawn-minutes in plugins/AirDrop by Developer/config.yml—for example, 5 means five minutes—then restart.

Test

  • As an OP, run /ad and /ad airdrop to see help and status.

  • Run /ad airdrop spawn or /airdrop; both start the same timer. Try the other start command while running to confirm it does not create a second timer.

  • Wait for the configured interval, open the spawned chest, and confirm it disappears, the opener sees their IGN title, the BossBar clears, and remaining loot drops.

  • Run /airdrop cancel or /ad airdrop cancel to stop spawning and safely clean up any active drop.

Kodari can make mistakes. Review important code before using.
Files
src
pom.xml
Code
8 1,055
src/main/java/com/developer/airdrop/AirDropPlugin.java
package com.developer.airdrop;

import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.Location;
import org.bukkit.World;
import org.bukkit.boss.BarColor;
import org.bukkit.boss.BarStyle;
import org.bukkit.boss.BossBar;
import org.bukkit.command.CommandSender;
import org.bukkit.command.PluginCommand;
import org.bukkit.entity.Player;
import org.bukkit.event.HandlerList;
import org.bukkit.inventory.ItemStack;
import org.bukkit.plugin.java.JavaPlugin;
import org.bukkit.scheduler.BukkitTask;

import java.util.ArrayList;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.Set;
import java.util.UUID;
import java.util.concurrent.ThreadLocalRandom;

public final class AirDropPlugin extends JavaPlugin {
    private static final int DEFAULT_INTERVAL_MINUTES = 15;

    private BukkitTask automaticTask;
    private BukkitTask bossBarTask;
    private long intervalTicks;
    private long spawnRequestId;
    private boolean spawnSearchInProgress;
    private ActiveAirdrop activeAirdrop;
    private BossBar bossBar;
    private AirdropLocationFinder locationFinder;
    private LootGenerator lootGenerator;
    private final Set<String> recentCodes = new LinkedHashSet<>();

    @Override
    public void onEnable() {
        saveDefaultConfig();
        loadSettings();
        locationFinder = new AirdropLocationFinder(this);
        lootGenerator = new LootGenerator(this);

        AirdropListener listener = new AirdropListener(this);
        Bukkit.getPluginManager().registerEvents(listener, this);
        registerCommand("ad", new AirdropCommand(this));
        registerCommand("airdrop", new AirdropCommand(this));
        getLogger().info("AirDrop by Developer 26.2 enabled; automatic spawning is stopped until started by an operator.");
    }

    @Override
    public void onDisable() {
        if (automaticTask != null) {
            automaticTask.cancel();
            automaticTask = null;
        }
        spawnRequestId++;
        spawnSearchInProgress = false;
        removeBossBar();
        if (activeAirdrop != null) {
            removeAndDropContents(activeAirdrop);
            activeAirdrop = null;
        }
        HandlerList.unregisterAll(this);
    }

    private void registerCommand(String name, AirdropCommand executor) {
        PluginCommand command = getCommand(name);
        if (command == null) {
            getLogger().severe("Command '" + name + "' is missing from plugin.yml.");
            return;
        }
        command.setExecutor(executor);
        command.setTabCompleter(executor);
    }

    private void loadSettings() {
        int minutes = getConfig().getInt("airdrop.drop-spawn-minutes", DEFAULT_INTERVAL_MINUTES);
        if (minutes < 1) {
            getLogger().warning("airdrop.drop-spawn-minutes must be at least 1; using 15 minutes.");
            minutes = DEFAULT_INTERVAL_MINUTES;
            broadcastConfigured("invalid-configuration", Map.of());
        }
        intervalTicks = minutes * 1200L;
    }

    public boolean isAutomaticRunning() {
        return automaticTask != null && !automaticTask.isCancelled();
    }

    public int getIntervalMinutes() {
        return (int) (intervalTicks / 1200L);
    }

    public void startAutomatic(CommandSender sender) {
        if (isAutomaticRunning()) {
            sendConfigured(sender, "already-running", Map.of());
            return;
        }
        automaticTask = Bukkit.getScheduler().runTaskTimer(this, this::beginScheduledSpawn,
                intervalTicks, intervalTicks);
        sendConfigured(sender, "started", Map.of("minutes", String.valueOf(getIntervalMinutes())));
    }

    public void cancelAutomatic(CommandSender sender) {
        boolean wasRunning = isAutomaticRunning();
        if (automaticTask != null) {
            automaticTask.cancel();
            automaticTask = null;
        }
        spawnRequestId++;
        spawnSearchInProgress = false;
        if (activeAirdrop != null) {
            ActiveAirdrop previous = activeAirdrop;
            activeAirdrop = null;
            removeBossBar();
            removeAndDropContents(previous);
        } else {
            removeBossBar();
        }
        sendConfigured(sender, wasRunning ? "cancelled" : "not-running", Map.of());
    }

    public void sendStatus(CommandSender sender) {
        String key = isAutomaticRunning() ? "status-running" : "status-stopped";
        sendConfigured(sender, key, Map.of(
                "minutes", String.valueOf(getIntervalMinutes()),
                "world", getConfig().getString("airdrop.world", "world")
        ));
    }

    private void beginScheduledSpawn() {
        if (spawnSearchInProgress) {
            return;
        }
        String worldName = getConfig().getString("airdrop.world", "world");
        World world = worldName == null ? null : Bukkit.getWorld(worldName);
        if (world == null) {
            getLogger().warning("Airdrop spawn skipped: configured world '" + worldName + "' is not loaded.");
            broadcastConfigured("missing-world", Map.of());
            return;
        }

        int minX = getConfig().getInt("airdrop.random-location.min-x", -1000);
        int maxX = getConfig().getInt("airdrop.random-location.max-x", 1000);
        int minZ = getConfig().getInt("airdrop.random-location.min-z", -1000);
        int maxZ = getConfig().getInt("airdrop.random-location.max-z", 1000);
        boolean randomLocations = getConfig().getBoolean("airdrop.random-location.enabled", true);
        if (!randomLocations) {
            Location spawn = world.getSpawnLocation();
            minX = spawn.getBlockX();
            maxX = minX;
            minZ = spawn.getBlockZ();
            maxZ = minZ;
        }
        if (minX > maxX || minZ > maxZ) {
            getLogger().warning("Airdrop spawn skipped: random-location minimum coordinates exceed maximum coordinates.");
            broadcastConfigured("invalid-configuration", Map.of());
            return;
        }

        int attempts = getConfig().getInt("airdrop.random-location.attempts", 25);
        if (attempts < 1 || attempts > 100) {
            getLogger().warning("airdrop.random-location.attempts must be between 1 and 100; using 25.");
            attempts = 25;
        }
        if (!randomLocations) {
            attempts = 1;
        }
        final int searchAttempts = attempts;
        final long requestId = ++spawnRequestId;
        spawnSearchInProgress = true;
        locationFinder.findSafeLocation(world, minX, maxX, minZ, maxZ, searchAttempts,
                () -> requestId == spawnRequestId && isAutomaticRunning(), location -> {
                    if (requestId != spawnRequestId || !isAutomaticRunning()) {
                        return;
                    }
                    spawnSearchInProgress = false;
                    if (location == null) {
                        getLogger().warning("Airdrop spawn skipped: no safe location found after " + searchAttempts + " attempts.");
                        broadcastConfigured("no-safe-location", Map.of());
                        return;
                    }
                    createAirdrop(location);
                });
    }

    private void createAirdrop(Location location) {
        boolean rare = isRareDrop();
        String code = generateCode();
        List<ItemStack> loot = lootGenerator.generate(rare);
        World world = location.getWorld();
        if (world == null) {
            getLogger().warning("Airdrop spawn skipped because the selected world became unavailable.");
            return;
        }