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.
==========================================================================================
- 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.
==========================================================================================
- 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:
- /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.
- /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.
- /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.
- /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"