brennanw1lls735-cell

can you make me a plugin that is suitable for scriptedSMP's

Kodari AI
KodariAug 12 at 4:26 am 2
ScriptedSMPCore
A Minecraft plugin designed for scripted SMPs, providing automated event management, storyline progression, and player-driven narrative tools. Features include a quest system with configurable objectives and rewards, scheduled scripted events with broadcast announcements, a player progression tracker storing individual story milestones, and an admin command interface for triggering narrative beats. Includes YAML-based configuration for defining custom storylines, event timers, and reward tables, plus placeholder support for dynamic messaging. Integrates with Vault for economy rewards and provides a lightweight API for other plugins to hook into scripted content.

Created a Maven-based ScriptedSMP plugin framework featuring:

  • Configurable story scripts with messages, titles, subtitles, sounds, delays, and console commands.

  • Automatic triggers for:

    • First join

    • First death

    • First player kill

  • Persistent player progress stored in data.yml.

  • Commands:

    • /scriptedsmp list

    • /scriptedsmp progress

    • /scriptedsmp next

    • /scriptedsmp start <script> [player]

    • /scriptedsmp stop [player]

    • /scriptedsmp reload

  • Cross-version sound support through XSeries.

  • Example “Awakening,” “The First Fall,” and “Hunter’s Mark” scripts in config.yml.

  • Maven project setup with Spigot API, Lombok, and XSeries dependencies.

Kodari can make mistakes. Review important code before using.
Files
src
pom.xml
Code
12 816
src/main/java/com/kodari/scriptedsmp/ScriptedSmpPlugin.java
package com.kodari.scriptedsmp;

import com.kodari.scriptedsmp.command.ScriptCommand;
import com.kodari.scriptedsmp.listener.ScriptListener;
import com.kodari.scriptedsmp.script.ScriptManager;
import com.kodari.scriptedsmp.storage.ProgressStore;
import org.bukkit.command.PluginCommand;
import org.bukkit.plugin.java.JavaPlugin;

public final class ScriptedSmpPlugin extends JavaPlugin {

    private ProgressStore progressStore;
    private ScriptManager scriptManager;

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

        progressStore = new ProgressStore(this);
        scriptManager = new ScriptManager(this, progressStore);
        scriptManager.reload();

        getServer().getPluginManager().registerEvents(new ScriptListener(scriptManager), this);

        PluginCommand command = getCommand("scriptedsmp");
        if (command != null) {
            ScriptCommand scriptCommand = new ScriptCommand(this, scriptManager);
            command.setExecutor(scriptCommand);
            command.setTabCompleter(scriptCommand);
        }
    }

    @Override
    public void onDisable() {
        if (progressStore != null) {
            progressStore.save();
        }
    }
}