Y
📎 1 file 6,332 chars
📄
pasted-code-1779357687081.txt
txt 55 lines
▶
Create a highly optimized, single master Spigot/Paper plugin for the latest version of Minecraft, called 'Eclipse Syndicate Core'. The plugin must be entirely automated, requiring only ONE initial command from the Host to trigger the opening sequence. No further admin intervention should be required for the gameplay loop. All data must autosave to a config.yml file.
Please implement the following modules in absolute, production-ready detail:
--- MODULE 1: THE OPENING SEQUENCE ---
 * Command: /serversync start (Executable only by OP / Admins).
 * Action: As soon as it is executed, all online players are instantly launched into the air (Apply Levitation X for 3 seconds) with color-changing firework effects bursting around them.
 * Protection: Give all players permanent Fall Damage Immunity for the next 15 seconds so no one dies upon landing.
 * Clan Assignment: The moment players touch the ground, the plugin must randomly split the entire player base 50/50 into two clans: 'Vampire Syndicate' and 'Werewolf Brood'.
 * Visuals: Display a massive cinematic Title/Subtitle on their screens: Title: "ECLIPSE SYNDICATE", Subtitle: "You are a VAMPIRE" (in dark red) or "You are a WEREWOLF" (in dark aqua). Save this clan data permanently.
--- MODULE 2: CLAN PASSIVES & DAY/NIGHT CYCLES ---
A dynamic loop must check every player's clan and the world time every 1 second:
 * Vampire Syndicate:
   * Nighttime: Gain permanent Speed II, Strength I, and Night Vision.
   * Daytime: Gain permanent Weakness I and Slowness I. If they stand under direct sunlight (sky light level > 10, no blocks above them), they catch fire for 3 seconds repeatedly.
 * Werewolf Brood:
   * Normal Day/Night: Standard vanilla stats (no debuffs).
   * The Eclipse Night (Every 3rd Minecraft Night): A server-wide message broadcasts: "The Eclipse has arrived... The Brood awakens!". During this specific night, Werewolves gain Strength II, Resistance II, Jump Boost II, and their base attack damage is multiplied by 1.5x.
--- MODULE 3: BLOOD-DRINKING & SOUL-CONSUMING SYSTEM ---
Completely remove the heart-stealing mechanic. Replace it with this Custom Item drops system upon player-vs-player death:
 * When a Werewolf kills a Vampire: The Vampire drops a custom item named "Vampire Blood Vial" (Red Dye with Enchantment Glint and Lore: "Drink to absorb Syndicate speed"). When the Werewolf right-clicks (consumes) it, they get Speed II and Regeneration II for 2 minutes.
 * When a Vampire kills a Werewolf: The Werewolf drops a custom item named "Werewolf Heart Essence" (Magma Cream with Enchantment Glint and Lore: "Consume to absorb Brood strength"). When the Vampire right-clicks (consumes) it, they get Strength II and Resistance I for 2 minutes.
 * Constraint: If a player kills a teammate from their own clan, no custom items drop.
--- MODULE 4: CLAN-SPECIFIC CUSTOM GEAR & TOOLS ---
Introduce custom crafting recipes or reward items specific to each clan. If a player from the wrong clan tries to hold/wear them, they receive a 'Rejection' effect (Blindness and Slowness III) until they drop it.
 * Vampire Gear:
   * "Syndicate Cloak" (Custom Nethedite Chestplate): Provides permanent Invisibility while sneaking during the night.
   * "Sanguine Dagger" (Custom Netherite Sword): Gives 15% Lifesteal on attack.
 * Werewolf Gear:
   * "Brood Hide" (Custom Netherite Chestplate): Gives permanent Knockback Resistance I and increases max health by +4 Hearts while worn.
   * "Fenrir's Claw" (Custom Netherite Axe): Has a 10% chance on hit to disable the opponent's shield for 4 seconds and inflict Bleeding (Poison I) for 5 seconds.
--- MODULE 5: UNPREDICTABLE AUTOMATED SUNDAY EVENTS ---
The plugin must track real-world time or have an internal 7-day Minecraft timer. Alternatively, provide an admin command syndicate event trigger to simulate the automated Sunday event. When triggered, the plugin must randomly select ONE of these unique events:
[21-05-2026 03:30 PM] Yash: Event Option A: "The Purge of No-Man's Land"
 * Announcement: "EVENT STARTED: The Purge! Clan passives are inverted for 30 minutes!"
 * Rule: For 30 minutes, Vampires become strong during the day and weak at night, while Werewolves get Weakness I during the Eclipse. A random coordinate drops a "Syndicate Supply Crate" containing 1 piece of the custom gear.
Event Option B: "Blood Altar Hunt"
 * Announcement: "EVENT STARTED: A Blood Altar has spawned at random coordinates! Protect it or Destroy it!"
 * Rule: A glowing structure spawns randomly. The clan that stands closest to it for a total of 5 minutes cumulative wins. Reward: 5x "Blood Vials" or "Heart Essences".
Event Option C: "The Curse of the Ancients"
 * Announcement: "EVENT STARTED: The Ancient Curse! Warden's blindness has infected the server!"
 * Rule: For 15 minutes, all players get permanent Darkness. However, a buffed boss spawns at 0,0. The player who gets the final blow drops a "Master Key" which grants their entire clan 3 extra temporary hearts for 24 hours.
--- MODULE 6: COMPREHENSIVE ADMIN & TESTING COMMANDS ---
All these commands require the permission 'eclipse.admin':
 1. /syndicate givegear [player] [vampire_cloak/vampire_dagger/werewolf_hide/werewolf_claw]
   * Directly gives the specified custom item/gear piece to the target player's inventory for debugging and setup.
 2. /syndicate giveessence [player] [blood_vial/heart_essence] [amount]
   * Spawns the specified custom consumable items directly into the player's inventory.
 3. /syndicate setclan [player] [vampire/werewolf/none]
   * Forcefully changes or resets a player's clan instantly at any time to test passives and armor rejection.
 4. /syndicate equip [player] [vampire/werewolf]
   * Forcefully equips the target player with the full custom gear set of that specific clan directly into their armor/hand slots.
 5. /syndicate event trigger
   * Instantly forces the automated Sunday event engine to pick and run a random event for testing.
 6. /syndicate forceday / forceeclipse
   * Manipulates the plugin's internal timers to instantly switch between standard day mechanics and the 3rd-night Eclipse mechanics.
Ensure all code handles null checks, player logging out safely, and resets all attributes cleanly when gear is unequipped or clans are reset."
Kodari AI
KodariMay 21 at 10:09 am 20,188 (v2)

I’ll create Eclipse Syndicate Core, a comprehensive vampire vs werewolf clan warfare plugin with automated events and dynamic passives.

EclipseSyndicateCore
A fully automated PvP clan warfare plugin featuring Vampires vs Werewolves. Includes cinematic opening sequences, dynamic day/night passive abilities, custom gear with clan restrictions, consumable essence drops, Eclipse night mechanics, automated random events, and comprehensive admin controls. All gameplay triggers from a single command with zero further intervention required.

Architecture Plan

Core Systems:

  1. Opening sequence (levitation launch + clan assignment)

  2. Passive effects engine (day/night + eclipse cycles)

  3. Custom drops system (essences on PvP kills)

  4. Gear system with clan restrictions & special abilities

  5. Event engine (3 randomized Sunday events)

  6. Admin command suite

File Structure:

Plain Text
managers/ - ClanManager, PassiveManager, GearManager, EventManager
listeners/ - PlayerListener, CombatListener, GearListener
commands/ - ServerSyncCommand, SyndicateCommand
data/ - PlayerData, Clan enum
items/ - CustomItemRegistry
Y

The compilation failed with this error:

code
Compilation failed with 6 error(s):

ERROR in src/main/java/com/eclipsesyndicate/core/EclipseSyndicateCore.java at line 3: package com.eclipsesyndicate.core.commands does not exist
import com.eclipsesyndicate.core.commands.ServerSyncCommand;
                                         ^

ERROR in src/main/java/com/eclipsesyndicate/core/EclipseSyndicateCore.java at line 4: package com.eclipsesyndicate.core.commands does not exist
import com.eclipsesyndicate.core.commands.SyndicateCommand;
                                         ^

ERROR in src/main/java/com/eclipsesyndicate/core/EclipseSyndicateCore.java at line 6: cannot find symbol
import com.eclipsesyndicate.core.listeners.GearListener;
                                          ^
  symbol: class GearListener
  location: package com.eclipsesyndicate.core.listeners

ERROR in src/main/java/com/eclipsesyndicate/core/EclipseSyndicateCore.java at line 9: cannot find symbol
import com.eclipsesyndicate.core.managers.ConfigManager;
                                         ^
  symbol: class ConfigManager
  location: package com.eclipsesyndicate.core.managers

ERROR in src/main/java/com/eclipsesyndicate/core/EclipseSyndicateCore.java at line 20: cannot find symbol
    private ConfigManager configManager;
            ^
  symbol: class ConfigManager
  location: class EclipseSyndicateCore

ERROR in src/main/java/com/eclipsesyndicate/core/EclipseSyndicateCore.java at line 20: cannot find symbol
    private ConfigManager configManager;
                          ^
  symbol: class ConfigManager
  location: class EclipseSyndicateCore


=== COMPILATION ERROR ANALYSIS ===

MISSING CLASSES:
  - GearListener
  - ConfigManager
ACTION: Create these classes or check imports

FILES TO INVESTIGATE:
  - src/main/java/com/eclipsesyndicate/core/EclipseSyndicateCore.java

Please fix this error by creating a new artifact with the corrected code.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
13 1,166
src/main/java/com/eclipsesyndicate/core/EclipseSyndicateCore.java
package com.eclipsesyndicate.core;

import com.eclipsesyndicate.core.commands.ServerSyncCommand;
import com.eclipsesyndicate.core.commands.SyndicateCommand;
import com.eclipsesyndicate.core.listeners.CombatListener;
import com.eclipsesyndicate.core.listeners.GearListener;
import com.eclipsesyndicate.core.listeners.PlayerListener;
import com.eclipsesyndicate.core.managers.ClanManager;
import com.eclipsesyndicate.core.managers.ConfigManager;
import com.eclipsesyndicate.core.managers.EventManager;
import com.eclipsesyndicate.core.managers.GearManager;
import com.eclipsesyndicate.core.managers.PassiveManager;
import lombok.Getter;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class EclipseSyndicateCore extends JavaPlugin {
    
    private ConfigManager configManager;
    private ClanManager clanManager;
    private PassiveManager passiveManager;
    private GearManager gearManager;
    private EventManager eventManager;
    
    @Override
    public void onEnable() {
        saveDefaultConfig();
        
        this.configManager = new ConfigManager(this);
        this.clanManager = new ClanManager(this);
        this.gearManager = new GearManager(this);
        this.passiveManager = new PassiveManager(this);
        this.eventManager = new EventManager(this);
        
        registerCommands();
        registerListeners();
        
        this.passiveManager.startPassiveLoop();
        
        getLogger().info("Eclipse Syndicate Core has been enabled!");
    }
    
    @Override
    public void onDisable() {
        if (this.passiveManager != null) {
            this.passiveManager.stopPassiveLoop();
        }
        if (this.clanManager != null) {
            this.clanManager.saveAllData();
        }
        getLogger().info("Eclipse Syndicate Core has been disabled!");
    }
    
    private void registerCommands() {
        getCommand("serversync").setExecutor(new ServerSyncCommand(this));
        getCommand("syndicate").setExecutor(new SyndicateCommand(this));
    }
    
    private void registerListeners() {
        Bukkit.getPluginManager().registerEvents(new PlayerListener(this), this);
        Bukkit.getPluginManager().registerEvents(new CombatListener(this), this);
        Bukkit.getPluginManager().registerEvents(new GearListener(this), this);
    }
}