mr_games564

Create a Minecraft (Spigot/Paper) plugin with a cinematic SMP start system, configurable settings, and world border animation.

Command:

  • /smp start

Configuration (config.yml):

  • smp-name: "EXPLAIN SMP"
  • countdown: 10
  • start-border-size: 25
  • final-border-size: 1000

Features:

  1. Config Support:
  • Load SMP name from config (smp-name)
  • Load countdown time (countdown)
  • Load world border sizes:

- start-border-size (default: 25) - final-border-size (default: large value like 1000)

  • Support color codes using '&'
  1. World Border (Important Behavior):
  • The world border is already set at world spawn with start-border-size before the game starts
  • When /smp start is executed:

- Do NOT reset position - Only start expanding the border from current size

  • The border should be centered at world spawn
  • During the countdown, the border must smoothly expand from start-border-size to final-border-size
  • Expansion duration must match the countdown time
  1. Start Title:
  • When the command is executed, all players see:

Title: "<SMP-NAME>" Subtitle: "Get Ready..."

  1. Countdown System:
  • Start countdown using config value (default 10 seconds)
  • Update every 1 second
  • Show on BOTH:

- Screen (Title) - Chat

Example:

Screen: "Starting in..." "10s → 1s"

Chat: "<SMP-NAME> starts in 10 seconds" ...

  1. Final Start Message:
  • When countdown ends:

Show on screen: "<SMP-NAME> START"

  • Also send in chat:

"<SMP-NAME> START"

  1. Title Removal:
  • After the final "<SMP-NAME> START" appears:

- Wait 5 seconds - Then clear the title from the screen

  1. Requirements:
  • All players must see the same countdown
  • Use BukkitRunnable or scheduler
  • Use WorldBorder API (setSize with time parameter for smooth expansion)
  • Translate color codes from config
  • Clean, smooth, cinematic experience

Goal:

Create a fully customizable SMP start system with a pre-set world border at spawn that smoothly expands during countdown, along with titles, chat messages, and automatic title removal after the game starts.

Kodari AI
KodariMay 10 at 11:12 pm 9,730 (v2)

I’ll create a cinematic SMP start system with smooth world border expansion and synchronized announcements.

SMPStartSystem
A cinematic SMP start system with configurable countdown, world border expansion, and synchronized player notifications. Features smooth world border animation from a pre-set spawn border that expands during countdown, customizable SMP name, dual display on title screen and chat, and automatic title cleanup. Perfect for creating an engaging game start experience for SMP servers.

Created SMPStartSystem - a cinematic SMP start plugin with smooth world border expansion.

Features implemented:

  • ✅ /smp start command with permission check

  • ✅ Config with customizable SMP name (color codes supported), countdown time, and border sizes

  • ✅ World border pre-set at spawn with start size on plugin enable

  • ✅ Smooth border expansion from start to final size during countdown (doesn’t reset position)

  • ✅ Initial title showing SMP name + “Get Ready…”

  • ✅ Countdown displayed on both title screen and chat simultaneously

  • ✅ Final “START” message on both title and chat

  • ✅ Automatic title removal after 5 seconds

  • ✅ Prevents multiple countdowns running at once

The world border is automatically set up at world spawn when the plugin enables, then smoothly expands during the countdown without changing its center position. All timing is synchronized for a professional, cinematic experience.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
6 234
src/main/java/com/smpstart/SMPStartPlugin.java
package com.smpstart;

import com.smpstart.command.StartCommand;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.World;
import org.bukkit.WorldBorder;
import org.bukkit.plugin.java.JavaPlugin;

public class SMPStartPlugin extends JavaPlugin {
    
    private String smpName;
    private int countdown;
    private double startBorderSize;
    private double finalBorderSize;
    
    @Override
    public void onEnable() {
        saveDefaultConfig();
        loadConfig();
        
        setupWorldBorder();
        
        getCommand("smp").setExecutor(new StartCommand(this));
        
        getLogger().info("SMP Start System enabled!");
    }
    
    @Override
    public void onDisable() {
        getLogger().info("SMP Start System disabled!");
    }
    
    private void loadConfig() {
        smpName = ChatColor.translateAlternateColorCodes('&', getConfig().getString("smp-name", "&eEXPLAIN SMP"));
        countdown = getConfig().getInt("countdown", 10);
        startBorderSize = getConfig().getDouble("start-border-size", 25);
        finalBorderSize = getConfig().getDouble("final-border-size", 1000);
    }
    
    public void reloadConfiguration() {
        reloadConfig();
        loadConfig();
    }
    
    public String getSmpName() {
        return smpName;
    }
    
    public int getCountdown() {
        return countdown;
    }
    
    public double getStartBorderSize() {
        return startBorderSize;
    }
    
    public double getFinalBorderSize() {
        return finalBorderSize;
    }
    
    public void setupWorldBorder() {
        World world = Bukkit.getWorlds().get(0);
        WorldBorder border = world.getWorldBorder();
        border.setCenter(world.getSpawnLocation());
        border.setSize(startBorderSize);
        getLogger().info("World border set to " + startBorderSize + " blocks at spawn location");
    }
}