skite_gamerr
📎 1 file 1,289 chars
📄
pasted-code-1772447846241.txt
txt 51 lines
▶
I want a Minecraft Paper/Spigot plugin called "CardSMP".

Core Requirements:

1. The plugin must have exactly 10 unique cards:
   - Zombie Card
   - Creeper Card
   - Herobrine Card
   - Skeleton Card
   - Lightning Card
   - Warden Card
   - Enderman Card
   - Ghost Card
   - Wither Card
   - Horse Card

2. When a player joins the server for the first time, they must automatically receive one random card.

3. If a player dies due to:
   - Mob
   - Fall damage
   - Lava
   - Void
   - Any natural causes

   Their card should NOT be lost.

4. If a player is killed by another player (PvP death):
   - Their card must drop.
   - The killer should be able to pick up and obtain the victim's card.
   - The victim should lose their card.

5. Each card must have unique abilities based on its name theme.

6. Abilities must only activate when:
   - The player is sneaking (holding Shift)
   - And using either:
     - Shift + Left Click
     - Shift + Right Click

7. Each ability must have its own cooldown.

8. The plugin must include:
   - Configurable cooldowns
   - Configurable messages
   - Ability to enable/disable individual cards
   - Physical card item representation (PAPER material recommended)
   - Prevent card stacking


Kodari AI
KodariMar 2 at 10:41 am 32,644 (v2)

I’ll create a comprehensive CardSMP plugin with 10 unique cards, PvP-based card dropping, and ability mechanics.

CardSMP
A unique survival multiplayer plugin featuring 10 collectible cards with special abilities. Players receive a random card on first join and can acquire more through PvP combat. Each card grants unique powers activated via sneaking and clicking, with configurable cooldowns. Cards drop only on PvP deaths, creating strategic gameplay where players must balance using their abilities and risking card loss in combat.

Now I’ll create the complete plugin structure:

Complete! I’ve created the CardSMP plugin with all features:

Core Features:

  • 10 unique cards (Zombie, Creeper, Herobrine, Skeleton, Lightning, Warden, Enderman, Ghost, Wither, Horse)

  • New players receive a random card on first join

  • Cards ONLY drop on PvP deaths (not natural deaths)

  • Abilities activate with Sneak + Right Click

  • Individual cooldowns per card (configurable)

  • Cards use PAPER material with unique PDC tags (prevent stacking)

Abilities:

  • Zombie: Spawn 3 temporary zombies

  • Creeper: Create explosion at target

  • Herobrine: Speed II + Strength II

  • Skeleton: Rapid-fire 5 arrows

  • Lightning: Strike lightning

  • Warden: Inflict Darkness on nearby players

  • Enderman: Teleport to target block

  • Ghost: Invisibility + Night Vision

  • Wither: Apply Wither to nearby entities

  • Horse: Speed III for 30 seconds

Commands:

  • /card give <player> <cardtype> - Give cards

  • /card check [player] - Check cards

  • /card reload - Reload config

All configs, cooldowns, and messages are customizable in config.yml. Data persists across restarts.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
26 1,199
src/main/java/com/cardsmp/CardSMP.java
package com.cardsmp;

import com.cardsmp.commands.CardCommand;
import com.cardsmp.listeners.CardPickupListener;
import com.cardsmp.listeners.PlayerDeathListener;
import com.cardsmp.listeners.PlayerInteractListener;
import com.cardsmp.listeners.PlayerJoinListener;
import com.cardsmp.managers.CardManager;
import com.cardsmp.managers.ConfigManager;
import com.cardsmp.managers.CooldownManager;
import com.cardsmp.managers.DataManager;
import com.cardsmp.managers.PlayerCardManager;
import lombok.Getter;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class CardSMP extends JavaPlugin {
    private ConfigManager configManager;
    private CardManager cardManager;
    private PlayerCardManager playerCardManager;
    private CooldownManager cooldownManager;
    private DataManager dataManager;
    
    @Override
    public void onEnable() {
        saveDefaultConfig();
        
        this.configManager = new ConfigManager(this);
        this.playerCardManager = new PlayerCardManager();
        this.cooldownManager = new CooldownManager();
        this.cardManager = new CardManager(this);
        this.dataManager = new DataManager(this);
        
        this.dataManager.loadData();
        
        registerListeners();
        registerCommands();
        
        getLogger().info("CardSMP has been enabled!");
    }
    
    @Override
    public void onDisable() {
        this.dataManager.saveData();
        getLogger().info("CardSMP has been disabled!");
    }
    
    private void registerListeners() {
        Bukkit.getPluginManager().registerEvents(new PlayerJoinListener(this), this);
        Bukkit.getPluginManager().registerEvents(new PlayerDeathListener(this), this);
        Bukkit.getPluginManager().registerEvents(new PlayerInteractListener(this), this);
        Bukkit.getPluginManager().registerEvents(new CardPickupListener(this), this);
    }
    
    private void registerCommands() {
        getCommand("card").setExecutor(new CardCommand(this));
        getCommand("card").setTabCompleter(new CardCommand(this));
    }
    
    public void reload() {
        reloadConfig();
        this.configManager = new ConfigManager(this);
        this.cardManager = new CardManager(this);
    }
}