kallumadari0263

SN Smp Essentials Plugin – FULL AI GENERATION PROMPT

Create a Minecraft Paper plugin for version 1.21.8 using Java 21.

--------------------------------------------------

PLUGIN INFORMATION

Plugin Name: SN Smp Essentials Author: SickarchNowhere Minecraft Version: Paper 1.21.8 Language: Java API: Paper API

Purpose:

Create an SMP management plugin that adds cinematic server start animations, announcements, automatic world border expansion, bossbar timers, and screen shake effects.

--------------------------------------------------

  1. SMP START COMMAND

Command: /snstartsmp

Permission: sn.admin.start

Function:

When an admin runs /snstartsmp the plugin should:

  1. Trigger a cinematic countdown visible to all players
  2. Play a custom totem pop logo animation
  3. Start the world border expansion system
  4. Start the world border bossbar countdown

The command cannot be executed again if the SMP has already started.

--------------------------------------------------

  1. COUNTDOWN ANIMATION

Display a center-screen title animation for every player.

Countdown sequence:

3 2 1

Requirements:

• Large bold numbers • Smooth fade-in and fade-out • Each number visible for exactly 1 second • Fully synchronized for all players • After countdown finishes trigger the totem logo animation

--------------------------------------------------

  1. CUSTOM TOTEM LOGO ANIMATION

After the countdown finishes:

A Totem of Undying pop animation appears for every player.

Instead of the normal totem texture, the plugin should support a custom server logo texture.

LOGO SYSTEM

When the plugin first runs it should create this folder:

/plugins/SNSmpEssentials/logo/

Inside the folder:

logo.png

Requirements:

• Server owner can place logo.png inside this folder • Plugin automatically loads the texture • If the logo does not exist fallback to the normal totem texture

Implementation Suggestions:

• Resource pack injection • CustomModelData • Temporary invisible item used to trigger totem animation packet

--------------------------------------------------

  1. WORLD BORDER EXPANSION SYSTEM

When /snstartsmp is executed:

  1. The world border begins at 10x10 centered at world spawn
  2. The border expands automatically every 10 minutes

Border expansion stages:

10 x 10 250 x 250 550 x 550 1500 x 1500 3500 x 3500 6000 x 6000 Default Minecraft world border size

Example timeline:

0 minutes → 10 x 10 10 minutes → 250 x 250 20 minutes → 550 x 550 30 minutes → 1500 x 1500 40 minutes → 3500 x 3500 50 minutes → 6000 x 6000 60 minutes → Default border

Requirements:

• Border expansion must be smooth • Use WorldBorder#setSize(size, time) • Expansion automatically starts when SMP begins • Prevent /snstartsmp from running twice • Save the current stage in config so progress persists after restart

--------------------------------------------------

  1. WORLD BORDER BOSSBAR TIMER

Create a bossbar visible to all players that displays the time remaining until the next border expansion.

Example text:

World Border Expanding In: 10:00

Behavior:

• Appears for all players when SMP starts • Shows a countdown timer • Timer updates every second • Bossbar progress decreases gradually • When timer reaches 0 the border expands • Timer resets to 10 minutes for the next stage

Additional Requirements:

• New players joining the server automatically see the bossbar • Bossbar remains synchronized for all players • Bossbar disappears after the final border stage

Bossbar Style:

Color: RED or PURPLE Style: SOLID or SEGMENTED

--------------------------------------------------

  1. WORLD BORDER EXPANSION SCREEN SHAKE

When the border expands to the next stage trigger a short screen shake effect for all players.

Behavior:

• Trigger when border expansion begins • Affect all online players • Duration: about 1–2 seconds • Intensity: mild to medium

Implementation ideas:

• Small camera jitter • Very small teleport offsets • Slight velocity shake • Optional rumble sound

Effect flow:

  1. Border begins expanding
  2. Screen shake triggers
  3. Optional rumble sound plays
  4. Bossbar resets for next timer

Requirements:

• Players can still move normally • Effect stops automatically • No extreme camera movement

--------------------------------------------------

  1. ANNOUNCEMENT COMMAND

Command: /snannounce <message>

Permission: sn.admin.announce

Function:

Displays a large animated announcement to all players.

Display style:

• Center screen title • Bold text • Smooth fade-in • Smooth fade-out • Message automatically converted to uppercase

Example:

/snannounce Welcome to Season 2

Players see:

WELCOME TO SEASON 2

--------------------------------------------------

  1. CONFIG FILE

Location:

plugins/SNSmpEssentials/config.yml

Example config:

countdown-seconds: 3

border: interval-minutes: 10 stages: - 10 - 250 - 550 - 1500 - 3500 - 6000 - 29999984

title: fade-in: 10 stay: 40 fade-out: 10

logo: file: logo/logo.png

--------------------------------------------------

  1. PLUGIN STRUCTURE

SNSmpEssentials │ ├ commands │ ├ StartSMPCommand.java │ ├ AnnounceCommand.java │ ├ border │ ├ BorderManager.java │ ├ BorderBossbar.java │ ├ animation │ ├ CountdownAnimation.java │ ├ TotemLogoAnimation.java │ ├ effects │ ├ ScreenShakeEffect.java │ ├ config │ ├ ConfigManager.java │ └ SNSmpEssentials.java

--------------------------------------------------

  1. plugin.yml

name: SNSmpEssentials version: 1.0 author: SickarchNowhere main: com.sn.smp.SNSmpEssentials api-version: 1.21

commands: snstartsmp: permission: sn.admin.start

snannounce: permission: sn.admin.announce

--------------------------------------------------

EXPECTED RESULT

When admin runs:

/snstartsmp

All players see:

3 2 1

Then:

• Custom logo totem pop animation • World border starts at 10x10 • Bossbar countdown begins • Border expands every 10 minutes • Screen shake happens when border expands

Kodari AI
KodariMar 13 at 9:04 pm 16,207 (v2)

I’ll create a comprehensive SMP management plugin with cinematic animations, world border expansion, and screen effects.

SNSmpEssentials
An SMP management plugin featuring cinematic server start sequences with countdown animations, custom totem logo displays, automatic world border expansion system with visual bossbar timers, screen shake effects during expansions, and administrative announcement tools. Designed for Paper 1.21.8 servers to create engaging seasonal SMP experiences with synchronized player events.

Plugin created successfully with all cinematic features, world border expansion system, and screen effects implemented. The logo folder will be auto-created on first run for custom totem textures.

kallumadari0263

Bro I meant was that when plugin is installed servers default world border gets 11*11 blocks and after typing /snsmpstarts then it expands

Kodari AI
KodariMar 14 at 5:20 am 8,016 (v2)

I’ll read the existing files to modify the border expansion logic properly.

Now I understand! Set border to 11x11 on plugin install, then expand when /snstartsmp is executed. Let me update the files:

Done! Now the world border is automatically set to 11x11 when the plugin loads, and when /snstartsmp is executed, it expands through the stages (starting from 11 → 250 → 550 → etc.).

kallumadari0263

Bro I meant that when admins types /snstartsmp then countdown begins and world border gets to 250 blocks and then it expands and also add this --------------------------------------------------

  1. GLOBAL CAMERA SET COMMAND

Command: /snsetcamera

Permission: sn.admin.camera

Function:

When an admin runs this command, the camera of every player on the server temporarily moves to a position 1 block in front of the admin.

This allows the admin to force all players to look at a specific place for cinematic moments, announcements, or events.

--------------------------------------------------

Behavior

• When the command is executed an invisible camera anchor is created exactly 1 block in front of the admin's facing direction

• All online players' cameras switch to this camera position

• Players themselves DO NOT teleport or move

• Players only see from the camera perspective

• The camera stays there for exactly 3 seconds

• After 3 seconds all players automatically return to their normal camera perspective

--------------------------------------------------

Example

Admin types:

/snsetcamera

Result:

• All players instantly see the view from 1 block in front of the admin • The camera stays there for 3 seconds • After 3 seconds players regain their own view automatically

--------------------------------------------------

Additional Requirements

• Must affect all online players • Must work smoothly without teleporting players • Players should not be able to control the camera during the 3 seconds • Camera resets automatically even if players move

--------------------------------------------------

Suggested Implementation

Possible methods:

• Spectator camera packet • Temporary invisible marker entity (ArmorStand or Interaction entity)

Implementation Steps:

  1. Spawn invisible marker entity 1 block in front of the admin
  2. Force players to spectate that entity
  3. Wait 3 seconds
  4. Return players to their own camera
  5. Remove the temporary entity

--------------------------------------------------

Config Option

camera: duration-seconds: 3

Kodari AI
KodariMar 14 at 7:23 am 16,398 (v2)

I’ll read the existing files to understand the current implementation, then add the camera command and fix the border behavior.

I’ll update the border behavior and add the camera command.

Plan:

  • Modify StartSMPCommand to set border to 250 blocks when countdown begins

  • Update BorderManager to start expansion from 250 blocks (stage 1)

  • Create SetCameraCommand to force all players’ cameras for 3 seconds

  • Add camera configuration options

All changes applied. When /snstartsmp is executed, the border immediately expands to 250 blocks, then the countdown begins and expansion continues from stage 1 (250). The /snsetcamera command forces all players to view from 1 block in front of the admin for 3 seconds using spectator mode.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
manifest.kod
settings.gradle
Code
15 841
src/main/java/com/sn/smp/SNSmpEssentials.java
package com.sn.smp;

import com.sn.smp.animation.CountdownAnimation;
import com.sn.smp.animation.TotemLogoAnimation;
import com.sn.smp.border.BorderBossbar;
import com.sn.smp.border.BorderManager;
import com.sn.smp.commands.AnnounceCommand;
import com.sn.smp.commands.SetCameraCommand;
import com.sn.smp.commands.StartSMPCommand;
import com.sn.smp.config.ConfigManager;
import com.sn.smp.effects.ScreenShakeEffect;
import lombok.Getter;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class SNSmpEssentials extends JavaPlugin {
    
    @Getter
    private static SNSmpEssentials instance;
    
    private ConfigManager configManager;
    private BorderManager borderManager;
    private BorderBossbar borderBossbar;
    private CountdownAnimation countdownAnimation;
    private TotemLogoAnimation totemLogoAnimation;
    private ScreenShakeEffect screenShakeEffect;
    
    @Override
    public void onEnable() {
        instance = this;
        
        this.configManager = new ConfigManager(this);
        this.borderManager = new BorderManager(this);
        this.borderBossbar = new BorderBossbar(this);
        this.countdownAnimation = new CountdownAnimation(this);
        this.totemLogoAnimation = new TotemLogoAnimation(this);
        this.screenShakeEffect = new ScreenShakeEffect(this);
        
        registerCommands();
        
        createLogoFolder();
        
        if (configManager.isSmpStarted()) {
            borderManager.resumeBorderExpansion();
        }
        
        getLogger().info("SNSmpEssentials has been enabled!");
    }
    
    @Override
    public void onDisable() {
        if (borderBossbar != null) {
            borderBossbar.removeBossbar();
        }
        
        if (borderManager != null) {
            borderManager.cancelTasks();
        }
        
        getLogger().info("SNSmpEssentials has been disabled!");
    }
    
    private void registerCommands() {
        getCommand("snstartsmp").setExecutor(new StartSMPCommand(this));
        getCommand("snannounce").setExecutor(new AnnounceCommand(this));
        getCommand("snsetcamera").setExecutor(new SetCameraCommand(this));
    }
    
    private void createLogoFolder() {
        java.io.File logoFolder = new java.io.File(getDataFolder(), "logo");
        if (!logoFolder.exists()) {
            logoFolder.mkdirs();
            getLogger().info("Created logo folder at: " + logoFolder.getAbsolutePath());
            getLogger().info("Place your custom logo.png file in this folder for the totem animation.");
        }
    }
}