redz213

Static Command Start Static /static <seconds>

Triggers a server-wide static event.

Effects:

Static overlay INVENTORY GUI.

Chosen sound plays every 5 ticks.

Screen darkens slightly.

Optional hidden message.

Example:

/static 10 Static for One Player /static <player> <seconds>

Example:

/static Honour 15 Static Message /static message <text>

Example:

/static message THE SIGNAL IS ACTIVE Prophecies Create /arg prophecy create <id> Edit /arg prophecy edit <id>

Opens a book INVENTORY GUI to write multiple lines and pages.

Example:

PROPHECY VII

When the final bell rings, the forgotten path shall open.

The seeker who walks alone will find what was buried.

Do not follow the red light.

Set Reading Sound /arg prophecy sound <id> <minecraft_sound>

Examples:

/arg prophecy sound prophecy7 minecraft:block.amethyst_block.chime

/arg prophecy sound prophecy7 minecraft:block.bell.use

/arg prophecy sound prophecy7 minecraft:entity.wither.spawn Release /arg prophecy release <id> Prophecy Release Sequence

When released:

Static starts.

Reading sound plays.

Lines appear one by one.

Full prophecy remains visible.

Static ends.

Kodari AI
KodariJun 10 at 5:41 am 40
StaticArg
A cinematic immersion plugin featuring server-wide &quot;static&quot; events and prophecy sequences. Admins can trigger a flickering TV-static inventory overlay with looping sounds for all players or individuals. The prophecy system lets staff craft multi-page lore entries via a book editor, assign ambient reading sounds, and release them with a dramatic reveal: static builds, the reading sound plays, and prophecy lines appear one by one before the static clears.

Plan:

  1. build.gradle + plugin.yml + config.yml

  2. Prophecy model

  3. StaticManager — sessions, flicker/sound tasks, start/stop

  4. ProphecyManager — CRUD, persistence, release sequence

  5. StaticListener + BookEditListener

  6. StaticCommand + ArgCommand

  7. StaticArg main class


11 files created. Here’s what each piece does:

File
Role
StaticArg.java
Main plugin class — wires managers, commands, listeners
StaticManager.java
Session lifecycle: creates flickering 6-row inventory, 3-tick flicker task, 5-tick sound loop, timed end task
ProphecyManager.java
CRUD + YAML persistence;
releaseProphecy()
orchestrates the full timed sequence
StaticListener.java
Cancels clicks inside static GUI; reopens it next-tick if player tries to close; cleans up on quit
BookEditListener.java
Intercepts
PlayerEditBookEvent
, maps it to the editing player’s prophecy ID, saves pages, removes book from hand
StaticCommand.java
Parses all three forms:
/static <s>
,
/static <player> <s>
,
/static message <text>
ArgCommand.java
Routes
create / edit / sound / release
with tab-complete for IDs

Prophecy release flow:

  1. Static starts for all online players (auto-timed to sequence length)

  2. After prophecy-lead-in ticks → reading sound plays

  3. Lines reveal one by one (title + chat) every prophecy-line-delay ticks

  4. Full prophecy summary dumps to chat in a bordered block

  5. Static auto-ends via its timed session

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
11 905
src/main/java/com/kodari/staticarg/StaticArg.java
package com.kodari.staticarg;

import com.kodari.staticarg.commands.ArgCommand;
import com.kodari.staticarg.commands.StaticCommand;
import com.kodari.staticarg.listeners.BookEditListener;
import com.kodari.staticarg.listeners.StaticListener;
import com.kodari.staticarg.managers.ProphecyManager;
import com.kodari.staticarg.managers.StaticManager;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

public class StaticArg extends JavaPlugin {

    @Getter private StaticManager staticManager;
    @Getter private ProphecyManager prophecyManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();

        staticManager = new StaticManager(this);
        prophecyManager = new ProphecyManager(this);
        prophecyManager.loadProphecies();

        getCommand("static").setExecutor(new StaticCommand(this));
        getCommand("static").setTabCompleter(new StaticCommand(this));
        getCommand("arg").setExecutor(new ArgCommand(this));
        getCommand("arg").setTabCompleter(new ArgCommand(this));

        getServer().getPluginManager().registerEvents(new StaticListener(this), this);
        getServer().getPluginManager().registerEvents(new BookEditListener(this), this);

        getLogger().info("StaticArg enabled.");
    }

    @Override
    public void onDisable() {
        staticManager.stopStaticAll();
        getLogger().info("StaticArg disabled.");
    }
}