climboart_
๐Ÿ“Ž 1 file 1,470 chars
๐Ÿ“„
pasted-code-1774243785850.txt
txt 71 lines
โ–ถ
Create a Minecraft Paper / Spigot plugin (Java, latest API)

Plugin name: CubeSMP
Main command: /cubesmp start

Rules for command:

* Only operators (OP) can use the command
* Non-OP players cannot use it
* If non-OP tries, show message:
  "Only operator can use this command"
* Do NOT use permission nodes
* Check with player.isOp()

When `/cubesmp start` is executed:

1. Start a 5 second countdown.

2. During countdown:

   * All online players levitate for 5 seconds

   * Show title:

     SMP STARTING IN 5
     SMP STARTING IN 4
     SMP STARTING IN 3
     SMP STARTING IN 2
     SMP STARTING IN 1

   * Add circle particle effects around players

   * Add rotating flame particles around players

   * Each player should have different particle color / type

   * Smooth circle animation

3. While levitating:

   * Players must NOT take fall damage
   * Cancel fall damage event

4. After countdown:

   * Stop levitation
   * Remove fall damage protection
   * Show title:

     CUBE (Blue color)
     SMP (White color)
     STARTED (Gold color)

5. World Border:

   * Start shrinking when SMP starts
   * Final size = 4000 x 4000
   * Shrink slowly
   * Duration = 5 minutes
   * Use WorldBorder API

6. Requirements:

   * Latest Paper / Spigot API
   * Include plugin.yml
   * Include main class
   * Use BukkitRunnable / Scheduler
   * Optimized code

Output full plugin source code.
Kodari AI
KodariMar 23 at 5:32 am 16,820 (v2)

Iโ€™ll create a Paper/Spigot plugin with countdown, levitation, particle effects, and world border shrinking.

CubeSMP
A competitive SMP plugin that starts a countdown sequence with levitation effects, colorful particle animations around players, fall damage protection, and automatic world border shrinking when operators initiate the SMP start sequence using the /cubesmp start command.

Iโ€™ll create a comprehensive SMP countdown plugin with particle effects, levitation, and world border shrinking.

Plugin created successfully! Hereโ€™s what was implemented:

Features:

  • โœ… /cubesmp start command (OP-only with isOp() check)

  • โœ… 5-second countdown with title displays

  • โœ… Levitation effect for all players during countdown

  • โœ… Colorful circle particles (each player gets unique color)

  • โœ… Rotating flame particles around players

  • โœ… Fall damage protection during and after levitation

  • โœ… Final title: โ€œCUBE SMP STARTEDโ€ (Blue/White/Gold)

  • โœ… World border shrinks to 4000ร—4000 over 5 minutes

Technical Implementation:

  • XSeries for cross-version particle/potion compatibility

  • BukkitRunnable for smooth animations (particles spawn every tick)

  • Protected players tracked via UUID set for fall damage immunity

  • 10 different particle colors cycle through players

  • Particles run for exactly 5 seconds (100 ticks)

  • 2-second buffer after levitation ends before removing fall protection

The plugin will work on Paper/Spigot 1.8-1.20+ with smooth particle animations and proper operator permission handling.

climboart_
๐Ÿ“Ž 1 file 1,518 chars
๐Ÿ“„
pasted-code-1774244168831.txt
txt 102 lines
โ–ถ
Create a Minecraft Paper / Spigot plugin (Java, latest API)

Plugin name: CubeSMP
Main command: /cubesmp start

Command rules:

* Only operator (OP) can use the command
* Do NOT use permission nodes
* Use player.isOp()
* Non-OP players cannot use the command

When `/cubesmp start` is executed:

---

## COUNTDOWN SYSTEM

Start a 5 second countdown.

During countdown all players:

* Levitate for 5 seconds
* No fall damage
* Have circle particle effects around them
* Flame particles rotating in circle
* Each player should have different particle effect
* Smooth animation using scheduler

Title format MUST be exactly like this:

Title:
SMP STARTING IN

Subtitle:
5

Then 4, 3, 2, 1

The number must be centered under the text.

Use big title for text and big number for subtitle.

---

## START TITLE

After countdown ends:

Stop levitation
Remove fall damage protection

Show title:

Title:
CUBE SMP

Subtitle:
STARTED

Color rules:

CUBE = CYAN
SMP = WHITE
STARTED = GOLD

Size rules:

CUBE SMP โ†’ big title
STARTED โ†’ smaller subtitle

---

## WORLD BORDER

When SMP starts:

Shrink world border slowly

Final size:
4000 x 4000

Shrink time:
5 minutes

Use WorldBorder API
Must shrink smoothly

---

## OTHER REQUIREMENTS

Use latest Paper / Spigot API
Include plugin.yml
Include main class
Use BukkitRunnable
Optimized code
Use particles in circle math
Cancel fall damage event

Output full plugin source code.
Kodari AI
KodariMar 23 at 5:37 am 11,332 (v2)

Iโ€™ll read the existing project files first to understand the current structure, then implement the complete plugin.

I can see the plugin structure is already in place, but the title formatting needs to be corrected according to the requirements. Let me fix the CountdownTask to properly display:

  • Title: โ€œSMP STARTING INโ€ with subtitle showing the countdown number

  • Final title: โ€œCUBE SMPโ€ (CUBE=cyan, SMP=white) with subtitle โ€œSTARTEDโ€ (gold)

All files updated! The plugin now correctly:

โœ… Countdown titles - Title shows โ€œSMP STARTING INโ€, subtitle shows the countdown number (5, 4, 3, 2, 1)
โœ… Final title - โ€œCUBE SMPโ€ (CUBE=cyan, SMP=white) as title, โ€œSTARTEDโ€ (gold) as subtitle
โœ… OP-only command - Uses player.isOp() check, no permission nodes
โœ… Levitation + fall damage protection - Applied during countdown, removed after
โœ… Circular particles - Each player gets unique colored circle particles + rotating flame particles
โœ… World border - Shrinks to 4000x4000 over 300 seconds (5 minutes)
โœ… Smooth animations - Particle effects run on 1-tick intervals for smooth rotation

climboart_
๐Ÿ“Ž 1 file 1,845 chars
๐Ÿ“„
pasted-code-1774244539223.txt
txt 127 lines
โ–ถ
Create a Minecraft Paper / Spigot plugin (Java, latest API)

Plugin name: CubeSMP
Main command: /cubesmp start

Command rules:

* Only operator (OP) can use command
* Do NOT use permission nodes
* Use player.isOp()
* Non-OP players cannot use command

---

## PLUGIN FOLDER + CONFIG

Plugin must create folder:

plugins/CubeSMP/

Inside it create:

config.yml

Config must be generated automatically on first start.

Config options:

countdown-time: 5
border-final-size: 4000
border-shrink-time: 300
levitate-time: 5

title-starting: "SMP STARTING IN"
title-started-main: "CUBE SMP"
title-started-sub: "STARTED"

cube-color: AQUA
smp-color: WHITE
started-color: GOLD

particles-enabled: true
flame-particles: true
circle-particles: true

All values must be changeable from config.

---

## COUNTDOWN SYSTEM

When `/cubesmp start`:

Start countdown using config value.

During countdown:

All players levitate
No fall damage
Circle particles around player
Rotating flame particles
Different particles per player
Smooth animation

Title format:

Title:
SMP STARTING IN

Subtitle:
5

Then 4 3 2 1

Number must be centered.

---

## START TITLE

After countdown:

Stop levitation
Remove fall damage protection

Show title:

CUBE SMP
STARTED

Color rules from config

CUBE = cyan (default)
SMP = white
STARTED = gold

STARTED must be smaller subtitle.

---

## WORLD BORDER

When SMP starts:

World border shrinks slowly

Final size from config
Time from config

Use WorldBorder API
Smooth shrinking

---

## OTHER REQUIREMENTS

Use latest Paper API
Include plugin.yml
Include main class
Use BukkitRunnable
Use scheduler
Cancel fall damage event
Optimized code
Use math for circle particles

Output full plugin source code.
Kodari AI
KodariMar 23 at 5:43 am 12,860 (v2)

Iโ€™ll read the existing files to understand the current project state, then implement all the required features.

Iโ€™ll now implement the complete plugin with config support and all required features.

Complete CubeSMP plugin implemented with all requirements:

โœ… Command System: /cubesmp start with OP-only access โœ… Config Management: Auto-generates plugins/CubeSMP/config.yml with all options โœ… Countdown System: Configurable countdown with levitation and particle effects โœ… Particle Effects: Circle particles (colored per player) and rotating flames โœ… Title Display: Customizable titles during countdown and start with configurable colors โœ… World Border: Smooth shrinking based on config values โœ… Fall Damage Protection: Active during countdown, removed after delay โœ… Optimized: Uses BukkitRunnable, scheduler, math for particles, XSeries for cross-version compatibility

All values are configurable through config.yml including colors, timings, particle toggles, and text messages.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
8 447
src/main/java/com/example/cubesmp/CubeSMP.java
package com.example.cubesmp;

import com.example.cubesmp.commands.CubeSMPCommand;
import com.example.cubesmp.listeners.FallDamageListener;
import com.example.cubesmp.managers.ParticleManager;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

import java.io.File;

@Getter
public class CubeSMP extends JavaPlugin {
    private ParticleManager particleManager;
    private FallDamageListener fallDamageListener;
    private boolean countdownActive = false;

    @Override
    public void onEnable() {
        setupConfig();
        
        this.particleManager = new ParticleManager(this);
        this.fallDamageListener = new FallDamageListener();
        
        getServer().getPluginManager().registerEvents(fallDamageListener, this);
        getCommand("cubesmp").setExecutor(new CubeSMPCommand(this));
        
        getLogger().info("CubeSMP has been enabled!");
    }

    @Override
    public void onDisable() {
        getLogger().info("CubeSMP has been disabled!");
    }

    private void setupConfig() {
        File configFile = new File(getDataFolder(), "config.yml");
        if (!configFile.exists()) {
            saveDefaultConfig();
            getLogger().info("Config file created at plugins/CubeSMP/config.yml");
        } else {
            reloadConfig();
        }
    }

    public void setCountdownActive(boolean active) {
        this.countdownActive = active;
    }
}