confide213

Create a professional Minecraft plugin called Prophecy for Paper/Spigot (latest Minecraft version). The plugin combines a chat prophecy system + blessing system.

Core Features

  1. /prophecy <text>

Broadcasts a mystical prophecy message to all online players Plays a global sound to all players:

Default: ENTITY_WITHER_SPAWN Message uses a compact mystical smallcaps font style

Example:

✧ ᴘʀᴏᴘʜᴇᴄʏ ꜱᴘᴇᴀᴋꜱ: “ᴛʜᴇ ꜱʜᴀᴅᴏᴡꜱ ᴡɪʟʟ ʀɪꜱᴇ ᴀɢᴀɪɴ”

  1. /prophecy start blessing

Activates a random blessing for players (or target if implemented later) Random selection from:

Speed Strength Hero of the Village Health Boost Regeneration Disable natural healing temporarily Broadcasts a prophecy activation message using compact mystical font Plays the same global wither spawn sound

Example:

✧ ᴘʀᴏᴘʜᴇᴄʏ ꜱᴘᴇᴀᴋꜱ: “ʙʟᴇꜱꜱɪɴɢ ᴏꜰ ꜱᴛʀᴇɴɢᴛʜ ʜᴀꜱ ʙᴇᴇɴ ɢʀᴀɴᴛᴇᴅ” Operator Only Access Only OPs can use all /prophecy commands

Non-OP message:

§cYou do not have permission to use Prophecy.

Blessing System Duration configurable in config.yml Effect amplifiers fully configurable in console/config

Example:

blessings: speed: amplifier: 2 duration: 600 strength: amplifier: 1 duration: 300 regeneration: amplifier: 3 duration: 200 Supports live reload via /prophecy reload Optional particles + sounds on activation Can be expanded later (but currently single global system) Global Sound System Every /prophecy command triggers a global sound Default: ENTITY_WITHER_SPAWN Configurable in config.yml sound: type: ENTITY_WITHER_SPAWN volume: 1.0 pitch: 1.0 Sound plays to all online players simultaneously Falls back safely if invalid sound name is provided Command Structure /prophecy <text> /prophecy start blessing /prophecy end /prophecy reload /prophecy info /prophecy end Immediately removes active blessing Clears all applied potion effects Restores natural healing if disabled Broadcasts ending prophecy message Plays global sound

Kodari AI
KodariMay 27 at 1:44 am 12,429 (v2)
Prophecy
A mystical Minecraft plugin combining a chat prophecy broadcast system with a global blessing system. Operators can broadcast smallcaps-styled prophecy messages to all players with a global wither spawn sound. Includes a configurable blessing system with randomized potion effects (Speed, Strength, Hero of the Village, Health Boost, Regeneration), live config reload, global sound broadcasting, and full blessing lifecycle management via /prophecy commands.

Planning the class structure before writing:

  • Prophecy — main plugin class, holds managers

  • ConfigManager — wraps config.yml access

  • BlessingManager — handles active blessing state, applies/removes effects

  • ProphecyCommand — handles all /prophecy subcommands

  • MessageUtil — smallcaps conversion + broadcast helpers

The plugin is complete. Here’s a summary of what was built:

  • Prophecy — main class, initializes managers and registers the command

  • ConfigManager — reads sound settings and per-blessing amplifier/duration from config.yml

  • BlessingManager — randomly selects from 5 blessings, applies potion effects to all online players, tracks active state, and handles clean removal

  • MessageUtil — converts text to Unicode smallcaps and broadcasts the styled prophecy header + body to all players

  • SoundUtil — plays the configured sound to all online players via XSound for cross-version safety

  • ProphecyCommand — handles all subcommands (start blessing, end, reload, info, and the default text broadcast), OP-gated

Kodari can make mistakes. Review important code before using.
Files
src
Code
8 350
src/main/java/com/prophecy/Prophecy.java
package com.prophecy;

import com.prophecy.command.ProphecyCommand;
import com.prophecy.manager.BlessingManager;
import com.prophecy.manager.ConfigManager;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

public class Prophecy extends JavaPlugin {

    @Getter private ConfigManager configManager;
    @Getter private BlessingManager blessingManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        this.configManager = new ConfigManager(this);
        this.blessingManager = new BlessingManager(this);

        getCommand("prophecy").setExecutor(new ProphecyCommand(this));
    }

    @Override
    public void onDisable() {
        if (this.blessingManager != null) {
            this.blessingManager.endBlessing(false);
        }
    }
}