pho4n4ix.exe
📎 1 file 1,242 chars
📄
pastedplugins.txt
txt 67 lines
▶
🎴 Core System

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

Each card gives the player a unique permanent ability.

A player can only have one card at a time.

Cards must save permanently (even after relog or server restart).

Cards should not be tradable (unless enabled in config).

💥 Example Cards

Jump Card → Permanent High Jump (Jump Boost II or custom jump power).

Speed Card → Permanent Speed I.

Tank Card → +4 extra hearts.

Vampire Card → Gain 1 heart on killing a player.

Fire Card → Fire and lava immunity.

Ender Card → Right-click teleport ability (20s cooldown).

🔒 Permission & Security System

The /plugins command should be blocked for all normal players.

Only players with OP can use:

/plugins

/card give

/card remove

/card reload

Any admin command

Non-OP players trying to use restricted commands should see:

“Unknown command.”

🛠 Admin Commands

/card give  

/card remove 

/card list

/card reload

⚙ Config Options

Enable/disable specific cards.

Set ability strength.

Set cooldown times.

Option to re-roll card.

Option to allow card stealing on kill (optional mode).
Kodari AI
KodariMar 5 at 3:46 pm 14,177 (v2)

I’ll create a card-based ability system plugin where new players receive random permanent abilities.

AbilityCards
A unique card-based ability system where players receive permanent abilities from randomly assigned cards. Features include jump boost, speed, health increase, vampire healing, fire immunity, and teleportation. Includes admin commands for card management, configurable ability strengths, and optional PvP card stealing mechanics. Cards persist across server restarts and are secured with permission-based command blocking.

Now I’ll create the complete plugin structure with all necessary files:

Complete plugin created! All core systems implemented:

Features:

  • New players receive random cards on first join with persistent storage

  • 6 unique card abilities: Jump, Speed, Tank, Vampire, Fire, Ender

  • OP-only commands with “Unknown command” message for non-OP players

  • /plugins command blocked for non-OP players

  • Configurable ability strengths, cooldowns, and steal-on-kill mechanics

  • Ender card teleportation with cooldown tracking

  • Vampire card healing on kill

  • Fire card immunity to fire/lava damage

  • Tank card using XAttribute for health modification

  • Jump/Speed cards using XPotion for permanent effects

All data persists across restarts via YAML storage and the plugin is ready to compile.

pho4n4ix.exe

which version it is

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
19 761
src/main/java/com/example/abilitycard/AbilityCardPlugin.java
package com.example.abilitycard;

import com.example.abilitycard.command.CardCommand;
import com.example.abilitycard.config.ConfigManager;
import com.example.abilitycard.data.PlayerDataManager;
import com.example.abilitycard.listener.AbilityListener;
import com.example.abilitycard.listener.CommandBlockListener;
import com.example.abilitycard.listener.PlayerJoinListener;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class AbilityCardPlugin extends JavaPlugin {
    private ConfigManager configManager;
    private PlayerDataManager playerDataManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        
        this.configManager = new ConfigManager(this);
        this.playerDataManager = new PlayerDataManager(this);
        this.playerDataManager.loadData();
        
        getServer().getPluginManager().registerEvents(new PlayerJoinListener(this), this);
        getServer().getPluginManager().registerEvents(new AbilityListener(this), this);
        getServer().getPluginManager().registerEvents(new CommandBlockListener(), this);
        
        getCommand("card").setExecutor(new CardCommand(this));
        
        getLogger().info("AbilityCards enabled!");
    }

    @Override
    public void onDisable() {
        if (this.playerDataManager != null) {
            this.playerDataManager.saveData();
        }
        getLogger().info("AbilityCards disabled!");
    }
}