62id

Сделай плагин на AIRDROP как у сервера ReallyWorld

Kodari AI
KodariJun 26 at 3:18 pm 17

I’ll create an airdrop plugin similar to ReallyWorld’s system with random supply drops, visual effects, and configurable loot.

AirdropPlugin
An immersive airdrop system that spawns random supply crates across the world. Features include beacon markers with particle effects, customizable loot tables, automatic scheduling, broadcast announcements, and admin commands. Players compete to reach airdrops first and claim valuable rewards. Includes configurable spawn intervals, allowed worlds, and protection mechanics.

I’ve created a comprehensive airdrop plugin inspired by ReallyWorld with the following features:

Core Features:

  • Automatic random spawning with configurable intervals and variance

  • Falling mechanics with smoke trail effects

  • Beacon marker with hologram label

  • Particle effects around landed airdrops

  • Protected opening with delay timer

  • Explosion-proof chests

  • Weighted loot system with enchanted items

  • Broadcast announcements in Russian

  • Multi-world support with distance restrictions

Commands:

  • /airdrop spawn - Manually spawn at your location

  • /airdrop reload - Reload configuration

  • /airdrop list - View active airdrops

Configuration Highlights:

  • 10-minute spawn intervals with 5-minute variance

  • Spawns between 500-3000 blocks from spawn at height 200

  • 10-second protection delay before opening

  • Rich loot table including diamonds, netherite, enchanted gear, totems

  • Customizable particle effects and beacon duration

  • Auto-removal after 10 minutes if unclaimed

The plugin uses XSeries for 1.8-1.21+ compatibility and includes visual effects like falling smoke, flame particles, and floating holograms to create an immersive supply drop experience.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
7 863
src/main/java/com/airdrop/AirdropPlugin.java
package com.airdrop;

import com.airdrop.commands.AirdropCommand;
import com.airdrop.managers.AirdropManager;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class AirdropPlugin extends JavaPlugin {
    
    private AirdropManager airdropManager;
    
    @Override
    public void onEnable() {
        saveDefaultConfig();
        
        this.airdropManager = new AirdropManager(this);
        
        getCommand("airdrop").setExecutor(new AirdropCommand(this));
        
        if (getConfig().getBoolean("auto-spawn.enabled")) {
            airdropManager.startAutoSpawn();
        }
        
        getLogger().info("AirdropPlugin has been enabled!");
    }
    
    @Override
    public void onDisable() {
        if (airdropManager != null) {
            airdropManager.cleanup();
        }
        getLogger().info("AirdropPlugin has been disabled!");
    }
    
    public void reloadPluginConfig() {
        reloadConfig();
        airdropManager.reload();
    }
    
    public String getMessage(String path) {
        String prefix = getConfig().getString("messages.prefix", "&8[&6Airdrop&8] &7");
        String message = getConfig().getString("messages." + path, path);
        return colorize(prefix + message);
    }
    
    public String getMessageRaw(String path) {
        String message = getConfig().getString("messages." + path, path);
        return colorize(message);
    }
    
    public String colorize(String text) {
        return text.replace("&", "§");
    }
}