blazetogo

First, include an operator-only command /setadcobblestone. This command must save the player's current location (coordinates and world) as the center point for the future effect. Second, create a command /adcobblestone <servername> that can only be executed via the server console. When triggered, it must first check if a location has been set. If so, it should immediately display a title to every player on the server that reads &7&lJoin <servername>, using the argument provided in the command. Simultaneously, spawn a massive hurricane effect at the saved location that lasts for exactly 10 seconds. This hurricane must be composed of actual Cobblestone blocks (FallingBlock entities). The structure should be 45 blocks high and approximately 30 blocks wide. The blocks must swirl in a rotating, circular upward pattern. Crucially, after the 10-second duration, all spawned Cobblestone entities must be automatically removed to ensure the world remains unchanged and the server stays performant."

Kodari AI
KodariApr 9 at 6:20 pm 8,286 (v2)
AdCobblestoneEffect
A Minecraft plugin featuring two commands: /setadcobblestone (operator-only) saves the player's current location as the hurricane center. /adcobblestone <servername> (console-only) broadcasts a bold-gray "Join <servername>" title to all online players and simultaneously spawns a massive 45-block-tall, 30-block-wide cobblestone FallingBlock hurricane at the saved location. The hurricane swirls in a rotating helix pattern for exactly 10 seconds, then automatically removes all spawned entities.

Planning classes:

  • AdCobblestonePlugin — main plugin, holds LocationManager

  • LocationManager — stores/loads center location from config

  • SetAdCobblestoneCommand — op-only, saves location

  • AdCobblestoneCommand — console-only, triggers effect + title

  • HurricaneEffect — spawns and tracks FallingBlock helix, auto-cleans after 10s

Here’s a summary of what was built:

  • SetAdCobblestoneCommand — Op-only in-game command that saves the player’s exact XYZ + world to config.yml via LocationManager, which also reloads on startup so the location persists across restarts.

  • AdCobblestoneCommand — Checks for ConsoleCommandSender strictly (players cannot run it), verifies a location is saved, then broadcasts the §7§lJoin <servername> title to all online players and fires HurricaneEffect.

  • HurricaneEffect — Runs a repeating 1-tick task for exactly 200 ticks (10 seconds). Each tick it spawns 3 spiral arms of FallingBlock cobblestone entities across 16 height levels (0–45, step 3), with gravity disabled so they hold position while rotating. Radius tapers from 15 blocks at the base to 4 at the peak (classic hurricane cone). After 200 ticks, cleanup() cancels the task and calls .remove() on every tracked entity, leaving the world completely unchanged.

blazetogo

Fix the skript is says An unexpected erorror came when I do /setadcobblestone or /adcobblestone

Kodari AI
KodariApr 9 at 6:45 pm 2,371 (v2)

The root cause is clear: XSeries is used in HurricaneEffect.java but it’s never added as a dependency in build.gradle. At runtime the class com.cryptomorin.xseries.XMaterial doesn’t exist → NoClassDefFoundError → “unexpected error”. It needs to be an implementation dependency so it gets shaded into the jar.

Added XSeries as an implementation dependency — it will now be bundled into the output jar via the existing runtimeClasspath shading in the jar task, so XMaterial resolves at runtime and both commands work without errors.

blazetogo

[18:47:31 INFO]: blazetogo issued server command: /setadcobblestone [18:47:31 ERROR]: Command exception: /setadcobblestone org.bukkit.command.CommandException: Cannot execute command 'setadcobblestone' in plugin AdCobblestoneEffect v1.0.0 - plugin is disabled. at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37) ~[paper-api-1.21.11-R0.1-SNAPSHOT.jar:?] at io.papermc.paper.command.brigadier.bukkit.BukkitCommandNode$BukkitBrigCommand.run(BukkitCommandNode.java:83) ~[paper-1.21.11.jar:1.21.11-69-94d0c97] at com.mojang.brigadier.context.ContextChain.runExecutable(ContextChain.java:73) ~[brigadier-1.3.10.jar:?] at net.minecraft.commands.execution.tasks.ExecuteCommand.execute(ExecuteCommand.java:30) ~[paper-1.21.11.jar:1.21.11-69-94d0c97] at net.minecraft.commands.execution.tasks.ExecuteCommand.execute(ExecuteCommand.java:13) ~[paper-1.21.11.jar:1.21.11-69-94d0c97] at net.minecraft.commands.execution.UnboundEntryAction.lambda$bind$0(UnboundEntryAction.java:8) ~[paper-1.21.11.jar:1.21.11-69-94d0c97] at net.minecraft.commands.execution.CommandQueueEntry.execute(CommandQueueEntry.java:5) ~[paper-1.21.11.jar:1.21.11-69-94d0c97] at net.minecraft.commands.execution.ExecutionContext.runCommandQueue(ExecutionContext.java:104) ~[paper-1.21.11.jar:1.21.11-69-94d0c97] at net.minecraft.commands.Commands.executeCommandInContext(Commands.java:469) ~[paper-1.21.11.jar:1.21.11-69-94d0c97] at net.minecraft.commands.Commands.performCommand(Commands.java:374) ~[paper-1.21.11.jar:1.21.11-69-94d0c97] at net.minecraft.commands.Commands.performCommand(Commands.java:362) ~[paper-1.21.11.jar:1.21.11-69-94d0c97] at net.minecraft.server.network.ServerGamePacketListenerImpl.performUnsignedChatCommand(ServerGamePacketListenerImpl.java:2369) ~[paper-1.21.11.jar:1.21.11-69-94d0c97] at net.minecraft.server.network.ServerGamePacketListenerImpl.lambda$handleChatCommand$12(ServerGamePacketListenerImpl.java:2342) ~[paper-1.21.11.jar:1.21.11-69-94d0c97] at net.minecraft.server.TickTask.run(TickTask.java:18) ~[paper-1.21.11.jar:1.21.11-69-94d0c97] at net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:177) ~[paper-1.21.11.jar:1.21.11-69-94d0c97] at net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:24) ~[paper-1.21.11.jar:1.21.11-69-94d0c97] at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:1527) ~[paper-1.21.11.jar:1.21.11-69-94d0c97] at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:188) ~[paper-1.21.11.jar:1.21.11-69-94d0c97] at net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:151) ~[paper-1.21.11.jar:1.21.11-69-94d0c97] at net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:1507) ~[paper-1.21.11.jar:1.21.11-69-94d0c97] at net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:1501) ~[paper-1.21.11.jar:1.21.11-69-94d0c97] at net.minecraft.server.MinecraftServer.recordTaskExecutionTimeWhileWaiting(MinecraftServer.java:1232) ~[paper-1.21.11.jar:1.21.11-69-94d0c97] at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1343) ~[paper-1.21.11.jar:1.21.11-69-94d0c97] at net.minecraft.server.MinecraftServer.lambda$spin$2(MinecraftServer.java:388) ~[paper-1.21.11.jar:1.21.11-69-94d0c97] at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]

Kodari AI
KodariApr 9 at 6:48 pm 6,326 (v2)

The root cause is clear:

  • api-version: 1.13 is treated as a legacy plugin by Paper 1.20.5+. Paper refuses to load it (or disables it immediately) with an “Outdated plugin” warning that appears earlier in the log — leaving the plugin in a disabled state by the time /setadcobblestone is invoked.

  • The jar block in build.gradle also needs to be a shadowJar-style fat jar properly, but your current approach works — the real fix is the api-version.

Updating api-version from 1.13 to 1.21 tells Paper this plugin is modern, preventing it from being rejected/disabled on startup, which was the sole cause of the “plugin is disabled” command error.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
7 315
src/main/java/com/adcobblestone/AdCobblestonePlugin.java
package com.adcobblestone;

import com.adcobblestone.command.AdCobblestoneCommand;
import com.adcobblestone.command.SetAdCobblestoneCommand;
import com.adcobblestone.manager.LocationManager;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

public class AdCobblestonePlugin extends JavaPlugin {

    @Getter
    private LocationManager locationManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        this.locationManager = new LocationManager(this);
        getCommand("setadcobblestone").setExecutor(new SetAdCobblestoneCommand(this));
        getCommand("adcobblestone").setExecutor(new AdCobblestoneCommand(this));
    }

    @Override
    public void onDisable() {
    }
}