shimpyofficial

Use this prompt for an AI/plugin/script generator:

> Create a Minecraft SMP Start System > > When an operator uses the command /smpstart: > > 1. Send a title to all online players showing a countdown: > > * "3" > * "2" > * "1" > * Each number displays for 1 second. > > 2. After the countdown ends: > > * Apply Levitation I to all players for 5 seconds. > * Display the title "SMP Started!" and subtitle "Good luck!". > > 3. Enable a 30-minute grace period: > > * During the grace period, PvP is disabled for all players. > * Broadcast a message every 5 minutes showing the remaining grace period time. > * Players attempting to attack another player should receive the message: > "PvP is disabled during the grace period." > > 4. When the 30-minute grace period ends: > > * Enable PvP automatically. > * Broadcast: > "Grace Period has ended! PvP is now enabled." > * Show a title: > "Grace Period Over" > > 5. Only players with operator permissions can use /smpstart. > > 6. Prevent the command from being used again while the SMP is already running unless an operator resets it.

Kodari AI
KodariJun 6 at 1:58 am 1
SMPStartPlugin
A plugin that provides a SMP start system with a visual countdown, levitation launch effect, and integrated PvP grace period. Features include a 3-2-1 title countdown for all players, levitation effect on start, automatic 30-minute PvP protection with periodic time-remaining broadcasts, and clean reset support for operators.

I’ll create 8 files for the SMP Start System.

SMP Start Plugin — 7 files from scratch

File
Purpose
build.gradle
Dependencies (Spigot API, XSeries)
settings.gradle
Project name
src/main/resources/plugin.yml
Plugin metadata + command registration
SMPStartPlugin.java
Main class — init manager, command, listener
GracePeriodManager.java
Countdown, levitation, 30-min grace timer, broadcasts
SMPStartCommand.java
/smpstart
— op check, start guard, delegate
SMPStartListener.java
EntityDamageByEntityEvent
— block PvP during grace

All 7 files created. Summary of what the plugin does:

  1. /smpstart — OP-only. Shows 3→2→1 title countdown to all players (1 sec each)

  2. After countdown — Applies Levitation I for 5 seconds, title “SMP Started!” / subtitle “Good luck!”

  3. Grace period — 30 minutes of PvP immunity. Broadcasts remaining time every 5 minutes. Attackers are told “PvP is disabled during the grace period.”

  4. Grace ends — Auto-enables PvP, broadcasts “Grace Period has ended!”, title “Grace Period Over”

  5. Re-use guard — /smpstart is blocked while SMP is running. /smpstart reset (OP) resets the state to allow restarting.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
7 222
src/main/java/com/example/smpstart/SMPStartPlugin.java
package com.example.smpstart;

import org.bukkit.plugin.java.JavaPlugin;

public class SMPStartPlugin extends JavaPlugin {

    private GracePeriodManager gracePeriodManager;

    @Override
    public void onEnable() {
        this.gracePeriodManager = new GracePeriodManager(this);

        getCommand("smpstart").setExecutor(new SMPStartCommand(this));
        getServer().getPluginManager().registerEvents(new SMPStartListener(this), this);
    }

    public GracePeriodManager getGracePeriodManager() {
        return gracePeriodManager;
    }
}