irmplayz_
📎 1 file 2,240 chars
📄
pasted-code-1787059550843.txt
txt 101 lines
▶
Create a complete Minecraft Java plugin called **SMPStart** for **Paper 1.21.x**.

The main command must be:

`/smp start`

When an authorized player runs `/smp start`, start an SMP launch sequence for all online players.

## 1. SMP START SEQUENCE

The sequence should be:

**3 → 2 → 1 → SMP STARTED**

For each countdown number:

* Display a large title in the center/top of the Minecraft screen.
* Use configurable colors for 3, 2 and 1.
* Play a configurable sound for each number.
* Countdown should normally be 1 second per number.
* Make the countdown duration configurable.

After `1`:

* Play a configurable start sound.
* Display a large configurable title such as:
  `&a&lSMP STARTED!`
* Display a configurable subtitle.
* Create a lightning visual effect at every online player's location.
* Do NOT damage players with the lightning.
* Launch every player upward.
* Give players a configurable glide/fall effect.
* Players should be able to glide through the air similar to Elytra-style movement without actually requiring an Elytra.
* Automatically stop the glide after the configured duration.

## 2. ADMIN INVENTORY GUI

Create a INVENTORY GUI opened with:

`/smp INVENTORY GUI`

Only players with the permission `smp.admin` can open it.

The INVENTORY GUI should be a professional Minecraft inventory INVENTORY GUI.

Title:

`&8&lSMP START SETTINGS`

Use clickable items for settings.

The INVENTORY GUI must allow administrators to change:

### Countdown Settings

* Enable/disable countdown
* Countdown duration
* Countdown numbers
* Color for 3
* Color for 2
* Color for 1
* Countdown sound
* Countdown sound volume
* Countdown sound pitch

### Start Settings

* SMP Started title
* SMP Started subtitle
* Start sound
* Start sound volume
* Start sound pitch

### Lightning Settings

* Enable/disable lightning
* Lightning visual effect
* Lightning damage ON/OFF

### Launch Settings

* Enable/disable launch
* Launch Y velocity
* Horizontal launch velocity

### Glide Settings

* Enable/disable glide
* Glide duration
* Glide speed
* Allow horizontal movement
* Automatically stop glide

### Cooldown Settings

Create a configurable cooldown system.

INVENTORY GUI options:

* Enable/disable cooldown
... (180 lines left)
Kodari AI
KodariAug 18 at 1:34 pm 2
SMPStart
An SMP launch sequence plugin for Paper 1.21.x with a full admin settings GUI. Features a configurable 3-2-1 countdown with titles, sounds, and timing, followed by a dramatic start sequence with lightning visuals, player launch, and Elytra-style gliding. Includes an interactive admin inventory GUI for customizing countdown colors/sounds, start titles, lightning effects, launch velocities, glide mechanics, and cooldown system. All settings persist to config and are permission-protected.
  1. Create the Paper 1.21.x Gradle project and plugin descriptor.

  2. Implement configurable SMP launch sequencing, safe lightning, launch, glide, and cooldown handling.

  3. Add the admin settings inventory GUI, chat-based text editing, persistence, and command registration.

  1. Created the Paper 1.21.x SMPStart Gradle project with plugin.yml and configurable defaults.

  2. Implemented /smp start with:

    • 3 → 2 → 1 countdown

    • Configurable titles, sounds, colors, timing, volume, and pitch

    • Safe lightning visual effects

    • Configurable player launch

    • Elytra-style gliding without an Elytra

    • Automatic glide duration handling

    • Cooldown enforcement

  3. Added /smp inventory gui, restricted to smp.admin.

  4. Added a 54-slot settings GUI covering countdown, start, lightning, launch, glide, and cooldown options.

  5. Added click-to-toggle/increment controls and chat-based editing for titles, subtitles, colors, and sounds.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
12 711
src/main/java/com/kodari/smpstart/SMPStart.java
package com.kodari.smpstart;

import com.kodari.smpstart.command.SMPCommand;
import com.kodari.smpstart.config.ConfigManager;
import com.kodari.smpstart.gui.SettingsGUI;
import com.kodari.smpstart.launch.GlideManager;
import com.kodari.smpstart.launch.LaunchManager;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

public final class SMPStart extends JavaPlugin {
    private ConfigManager configManager;
    private GlideManager glideManager;
    private LaunchManager launchManager;
    private SettingsGUI settingsGUI;

    @Override
    public void onEnable() {
        saveDefaultConfig();

        configManager = new ConfigManager(this);
        glideManager = new GlideManager(this);
        launchManager = new LaunchManager(this, configManager, glideManager);
        settingsGUI = new SettingsGUI(this, configManager);

        SMPCommand command = new SMPCommand(this, launchManager, settingsGUI, configManager);
        getCommand("smp").setExecutor(command);
        getCommand("smp").setTabCompleter(command);

        Bukkit.getPluginManager().registerEvents(launchManager, this);
        Bukkit.getPluginManager().registerEvents(settingsGUI, this);
    }

    @Override
    public void onDisable() {
        if (glideManager != null) {
            glideManager.stopAll();
        }
        if (launchManager != null) {
            launchManager.cancel();
        }
    }
}