pixelmctitan

A highly detailed, production-ready specification for a Spigot/Paper Minecraft plugin tailored for the "Red Moon SMP". Target Environment: Latest Minecraft Version (Java).

========================================================================================== PLUGIN NAME: Red Moon SMP - Event & Tournament System (Module 3 - Deep Specification) ==========================================================================================

[GENERAL SYSTEM ARCHITECTURE]

  • This module must interlink with Module 1 & Module 2, reading player clans from the config.yml.
  • It controls a custom server-wide world event called the "Red Moon Event" which happens automatically or via admin command.

==========================================================================================

  1. AUTOMATED "RED MOON NIGHT" EVENT MECHANICS

==========================================================================================

  • Trigger Frequency: Automatically triggers every X Minecraft days (configurable in config.yml, default: every 5 days) precisely at sunset (world time 13000 ticks).
  • Event Duration: Lasts the entire night until sunrise (world time 23000 ticks).
  • Visual & Atmosphere Changes (Global):

* When the event starts, send a massive glowing title to ALL players: Title -> "&c&lRED MOON HAS RISEN", Subtitle -> "&7The night of blood and fury begins..." * Play a terrifying sound effect (Sound.ENTITY_WITHER_SPAWN or Sound.ENTITY_ENDER_DRAGON_GROWL) to everyone. * Continuously send a custom action bar message to all online players while the event is active: "&c&lRed Moon Event Active | Time Remaining: %time_left%" * (Optional Hook) If possible via the latest Paper API, temporarily change the world environment light color or send a fake visual packet to mimic a dark red sky.

  • Clan Attribute Multipliers (During Red Moon Night Only):

1. VAMPIRES: * Permanent Speed II and Strength II (replaces their normal Night buffs). * Blood Drain ability cooldown is cut in half (from 45s to 22s). * Health regeneration increased slightly when dealing damage to humans or werewolves. 2. WEREWOLVES: * Permanent Speed III, Jump Boost III, and Strength II. * Alpha Roar radius increased from 7 blocks to 15 blocks. * Rupture/Leap height and speed multiplier increased by 1.5x.

  • Custom Event Hostile Mobs (The "Red Moon Horde"):

* During this night, standard mob spawning is modified. The plugin must spawn special custom entities near players: 1. "Blood Thrall" (Zombies with Speed II, holding iron swords, and immune to sunlight debuffs). 2. "Corrupted Hound" (Aggressive Wolves with Strength I and permanent glowing effect). * These custom mobs drop unique items or currency ("Red Moon Shards") defined in the config.

==========================================================================================

  1. WORLD-WIDE TOURNAMENT / BOUNTY SYSTEM

==========================================================================================

  • Mid-Event Challenge: 4 minutes into the Red Moon Night, an automated server tournament/objective starts.
  • Objective: "King of the Hill" or "Most Clan Kills". The plugin must track which clan gets the most kills against the opposing clan during this specific night.
  • Live Leaderboard: Display a temporary scoreboard sidebar to all players showing:

* Vampire Clan Kills: X * Werewolf Clan Kills: Y

  • Event Rewards: When sunrise hits (23000 ticks), the winning clan is announced via global chat and screen titles. All online members of the winning clan automatically receive a configurable set of rewards (e.g., items, potion effects, or custom economy currency).

========================================================================================== ADMIN EVENT TESTING & CONTROL OVERRIDES ========================================================================================== Critical Rule: Admins with 'redmoon.admin' permission must have absolute authority to force-start, stop, or tweak this event in both Creative and Survival modes for smooth testing. [22-05-2026 09:15 AM] Yash: Implement the following precise admin commands:

  1. /redmoon event start

- Instantly forces the world time to 13000 (Night), triggers the global title, applies all clan buffs/multipliers, and starts the Red Moon event manually.

  1. /redmoon event stop

- Instantly ends the event, clears the custom mobs, removes the scoreboard leaderboard, sets the world time to sunrise (0 ticks), and restores normal clan modifiers.

  1. /redmoon event spawnmob <thrall|hound> <amount>

- Spawns the custom Red Moon event mobs at the admin's crosshair location for immediate combat and balance testing.

  1. /redmoon event addscore <vampire|werewolf> <amount>

- Manually injects score/kills into the live tournament leaderboard to test the winning rewards system without needing real players.

========================================================================================== CONFIG.YML EVENTS TEMPLATE STRUCTURE REQUIRED ========================================================================================== Append or include the following keys in the main config: `yaml events: red-moon: auto-trigger-days: 5 mobs: blood-thrall-health: 30.0 corrupted-hound-damage: 4.0 rewards: winning-clan-commands: - "give %player% diamond 3" - "xp add %player% 500"

Kodari AI
KodariMay 22 at 3:49 am 16,211 (v2)

I’ll build this Red Moon SMP Event & Tournament System (Module 3) from scratch. Let me plan the architecture first:

  • RedMoonPlugin - Main plugin class with managers

  • RedMoonEvent - Core event state/scheduler (auto-trigger + duration tracking)

  • HordeManager - Custom mob spawning (Blood Thrall, Corrupted Hound)

  • TournamentManager - Kill tracking + scoreboard leaderboard

  • ClanBuffManager - Applies/removes clan-specific potion effects during the event

  • RedMoonCommand - Admin commands (/redmoon event ...)

  • EventListener - Entity death tracking for kill scoring

  • GUI framework - Inventory system as per docs

  • Config - All configurable values

RedMoonSMP
A Spigot/Paper plugin for Red Moon SMP implementing a server-wide "Red Moon Night" event system. Features automated nightly triggers at sunset, clan-specific buffs (Vampires/Werewolves), custom hostile mob hordes (Blood Thralls & Corrupted Hounds), a live kill-tracking tournament with sidebar leaderboard, and configurable clan victory rewards. Includes full admin command suite for force-start, stop, mob spawning, and score injection.

Here’s a summary of everything built:

Architecture (7 core classes + GUI framework):

  • RedMoonEventManager — Heart of the system. Runs a 100-tick polling scheduler that checks world time against the configured day interval. On trigger: sets time to 13000, broadcasts title/sound, starts action bar task (updates every second with countdown), schedules the tournament 4 minutes in, and watches for sunrise at 23000 to auto-stop.

  • ClanBuffManager — Reads clan membership via clan.vampire / clan.werewolf permission nodes (compatible with Module 1/2 LuckPerms setup). Applies Speed II + Strength II to Vampires, Speed III + Jump III + Strength II to Werewolves for the full night duration.

  • HordeManager — Spawns Blood Thralls (Zombies with Speed II, iron swords, custom health/damage) and Corrupted Hounds (angry Wolves with Strength I + permanent Glowing) near players every 30 seconds. Tracks all horde mobs by UUID for clean removal on event end.

  • TournamentManager — Activates 4 minutes into the event. Maintains a live sidebar scoreboard showing clan kill counts. On sunrise, announces the winner, broadcasts an end title, and dispatches configurable console commands as rewards to all online winning-clan members.

  • EventListener — Handles EntityDeathEvent: tracks player-vs-player kills between opposing clans for the tournament, drops Red Moon Shards (Nether Stars with custom name/lore) from horde mobs at the configured drop chance.

  • RedMoonCommand — Full /redmoon event <start|stop|spawnmob|addscore> suite with tab completion. spawnmob uses ray-trace to find the admin’s crosshair block. All subcommands gate on redmoon.admin permission.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
15 1,198
src/main/java/com/redmoon/smp/RedMoonPlugin.java
package com.redmoon.smp;

import com.redmoon.smp.command.RedMoonCommand;
import com.redmoon.smp.event.RedMoonEventManager;
import com.redmoon.smp.horde.HordeManager;
import com.redmoon.smp.listener.EventListener;
import com.redmoon.smp.tournament.TournamentManager;
import com.redmoon.smp.buff.ClanBuffManager;
import com.redmoon.smp.inventory.gui.GUIListener;
import com.redmoon.smp.inventory.gui.GUIManager;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

public class RedMoonPlugin extends JavaPlugin {

    @Getter private static RedMoonPlugin instance;

    @Getter private GUIManager guiManager;
    @Getter private RedMoonEventManager redMoonEventManager;
    @Getter private HordeManager hordeManager;
    @Getter private TournamentManager tournamentManager;
    @Getter private ClanBuffManager clanBuffManager;

    @Override
    public void onEnable() {
        instance = this;
        saveDefaultConfig();

        guiManager = new GUIManager();
        clanBuffManager = new ClanBuffManager(this);
        hordeManager = new HordeManager(this);
        tournamentManager = new TournamentManager(this);
        redMoonEventManager = new RedMoonEventManager(this);

        getServer().getPluginManager().registerEvents(new GUIListener(guiManager), this);
        getServer().getPluginManager().registerEvents(new EventListener(this), this);

        RedMoonCommand redMoonCommand = new RedMoonCommand(this);
        getCommand("redmoon").setExecutor(redMoonCommand);
        getCommand("redmoon").setTabCompleter(redMoonCommand);

        redMoonEventManager.startAutoTriggerScheduler();
        getLogger().info("Red Moon SMP - Event & Tournament System enabled.");
    }

    @Override
    public void onDisable() {
        if (redMoonEventManager != null && redMoonEventManager.isEventActive()) {
            redMoonEventManager.stopEvent(false);
        }
        getLogger().info("Red Moon SMP - Event & Tournament System disabled.");
    }
}