abir04052

Create a Minecraft plugin using Java (Spigot/Paper API 1.21+).

Plugin Name: BloodyCoreSMP

Main Features:

  1. Command: /titlescreen <text>
  • Permission: bloodycore.titlescreen
  • When executed, ALL online players will see a BIG title on their screen.
  • The title text should be exactly what the user types.
  • Use color codes with '&' support.
  • Example: /titlescreen &c&lHELLO → shows big red bold HELLO

-----------------------------------

  1. First Join & Rejoin Titles:
  • When a player joins for the FIRST time:

Show these titles in sequence: 1. "Welcome to &4&lBloodyCoreSMP!" 2. "The most chaotic SMP" 3. "Stay careful"

  • Each title should stay for 1 second.
  • When a player joins AGAIN (not first time):

Show: 1. "&a&lWelcome back" 2. "&4&lBloodyCoreSMP"

-----------------------------------

  1. Command: /bounty <player> <time>
  • Permission: bloodycore.bounty
  • When executed:

Open a INVENTORY GUI (inventory based)

INVENTORY GUI 1:

  • Player (who runs command) can put ANY item in the INVENTORY GUI as bounty reward.
  • Bottom row:

- Green Stained Glass Pane = Confirm - Red Stained Glass Pane = Cancel/Back

  • On clicking GREEN:

Open INVENTORY GUI 2

INVENTORY GUI 2:

  • Show target player's HEAD (use player skull)
  • Show:

- Green Pane = Confirm bounty - Red Pane = Cancel

  • After confirming:

- Bounty is active for the given time. - If ANY player kills the target player within the time: → Killer receives the reward item from INVENTORY GUI.

  • If time expires → bounty disappears.

-----------------------------------

  1. Command: /smpcontrol help
  • Shows ALL commands in chat with colors:

/titlescreen <text> /bounty <player> <time> /smpcontrol help

-----------------------------------

Technical Requirements:

  • Use clean OOP structure
  • Use Listener for join events and player kill events
  • Store first join data using config or player data file
  • Store active bounties using HashMap or similar
  • Use BukkitRunnable for countdown timers
  • Support color codes (& → ChatColor)

-----------------------------------

Output:

  • Full plugin source code
  • plugin.yml
  • Main class
  • All commands & listeners
  • INVENTORY GUI handling classes
  • Clear folder structure
Kodari AI
KodariApr 9 at 2:47 pm 15,432 (v2)

I’ll create a comprehensive SMP plugin with title broadcasts, sequential join titles, and a GUI-based bounty system.

BloodyCoreSMP
A chaotic SMP core plugin featuring broadcast title commands, sequential welcome/rejoin title animations, and a complete GUI-based bounty system where players can place rewards on other players. Includes inventory-based bounty creation with item rewards, timed bounty expiration, automatic reward distribution on kill, and color-coded command help system. Perfect for competitive survival multiplayer servers.

Let me plan the architecture before coding:

Class Structure:

  • Main plugin with GUIManager, BountyManager, PlayerDataManager

  • Inventory GUI framework (handler, button, base GUI, manager, listener)

  • Two bounty GUIs (reward placement → confirmation)

  • Three commands (titlescreen, bounty, smpcontrol)

  • Two listeners (join titles, death bounty check)

  • Data classes for Bounty and PlayerData

Key Methods to Verify:

  • plugin.getGuiManager(), getBountyManager(), getPlayerDataManager()

  • All GUIs will extend InventoryGUI

  • BountyManager will track active bounties with timers

  • PlayerDataManager stores first join status

All files created successfully! Here’s what was implemented:

Core Features:

  • /titlescreen <text> - Broadcasts titles to all players with & color code support

  • Sequential join titles (3 for first join, 2 for returning players) with 1-second intervals

  • /bounty <player> <time> - Complete GUI-based bounty system with item rewards

  • /smpcontrol help - Color-coded command list

Technical Implementation:

  • Clean inventory GUI framework with button handlers and lazy initialization

  • Two-stage bounty creation: reward placement GUI → confirmation GUI with player skull

  • BountyManager tracks active bounties with automatic expiry timers

  • PlayerDataManager persists first join status across restarts

  • XSeries for cross-version compatibility (materials, player heads)

  • Lombok for clean data classes

Bounty System Flow:

  1. Place items in GUI 1 (54 slots)

  2. Confirm → Opens GUI 2 with target’s head

  3. Confirm again → Bounty activates with countdown

  4. If target is killed → Killer receives all reward items

  5. Timer expires → Bounty auto-cancels with broadcast

Build with ./gradlew build and test on Spigot/Paper 1.21+!

abir04052

./grandlew build

Kodari AI
KodariApr 9 at 2:52 pm 9,672 (v2)

I’ll read all the project files to check for compilation issues before building.

I’ve reviewed all the project files. The code looks correct and ready to compile!

However, I noticed you have a typo in your command. You wrote:

Plain Text
./grandlew build

It should be:

Shell
./gradlew build

The project structure is solid:

  • All managers properly registered in main plugin with @Getter

  • Data classes have @Data annotations

  • XSeries usage is correct (auto-included by the build system)

  • All imports are present

  • Cross-file references are consistent

You can now run ./gradlew build and it should compile successfully!

abir04052

Link? Hiw to downloaf the plugin?

Kodari AI
KodariApr 9 at 2:54 pm 1,457 (v2)

This is the source code of your plugin, not a downloadable JAR file. To get a working plugin file, you need to build it:

How to Build

  1. Open terminal/command prompt in the project root directory (where build.gradle is located)

  2. Run the build command:

    Shell
    ./gradlew build
    

    On Windows:

    Shell
    gradlew.bat build
    
  3. Find your plugin JAR:

    • The built plugin will be in: build/libs/

    • Look for a file like BloodyCoreSMP-1.0.jar (name depends on your build.gradle settings)

  4. Use the plugin:

    • Copy the JAR file from build/libs/ to your Minecraft server’s plugins/ folder

    • Restart the server

Requirements to Build

  • Java Development Kit (JDK) 17 or higher installed

  • Gradle (usually included via the gradlew wrapper)


If you just want to download a pre-built plugin without building it yourself, you would typically:

  • Ask the developer to provide a compiled JAR

  • Or use a CI/CD service (like GitHub Actions) to automatically build releases

Would you like me to help you set up automatic builds, or do you need help with the build process itself?

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
20 959
src/main/java/com/bloodycore/BloodyCoreSMP.java
package com.bloodycore;

import com.bloodycore.command.BountyCommand;
import com.bloodycore.command.SMPControlCommand;
import com.bloodycore.command.TitleScreenCommand;
import com.bloodycore.inventory.gui.GUIListener;
import com.bloodycore.inventory.gui.GUIManager;
import com.bloodycore.listener.JoinListener;
import com.bloodycore.listener.PlayerDeathListener;
import com.bloodycore.manager.BountyManager;
import com.bloodycore.manager.PlayerDataManager;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class BloodyCoreSMP extends JavaPlugin {
    private GUIManager guiManager;
    private BountyManager bountyManager;
    private PlayerDataManager playerDataManager;
    
    @Override
    public void onEnable() {
        saveDefaultConfig();
        
        this.guiManager = new GUIManager();
        this.bountyManager = new BountyManager(this);
        this.playerDataManager = new PlayerDataManager(this);
        
        registerCommands();
        registerListeners();
        
        getLogger().info("BloodyCoreSMP has been enabled!");
    }
    
    @Override
    public void onDisable() {
        if (bountyManager != null) {
            bountyManager.cancelAllBounties();
        }
        getLogger().info("BloodyCoreSMP has been disabled!");
    }
    
    private void registerCommands() {
        getCommand("titlescreen").setExecutor(new TitleScreenCommand(this));
        getCommand("bounty").setExecutor(new BountyCommand(this));
        getCommand("smpcontrol").setExecutor(new SMPControlCommand(this));
    }
    
    private void registerListeners() {
        getServer().getPluginManager().registerEvents(new GUIListener(guiManager), this);
        getServer().getPluginManager().registerEvents(new JoinListener(this), this);
        getServer().getPluginManager().registerEvents(new PlayerDeathListener(this), this);
    }
}