aceblade_lunawilhunntabbbbhi

Add support for:

  • PlaceholderAPI (%player_name%)
  • Custom commands:

/acex reload /acex testfestival

  • Titles and ActionBar messages
  • Sounds on join and festivals
📎 1 file 1,925 chars
📄
pasted-code-1775493297171.txt
txt 69 lines
▶
Create a Minecraft Spigot/Paper plugin for Java Edition version 1.21.11.

Plugin Name: AceXGreater  
Author: AceX  

Main Features:

1. Join Greeting System:
- When a player joins for the FIRST time:
  Send a colorful welcome message in chat.
  Example: "✨ Welcome to the server, %player%! ✨"

- When a player REJOINS:
  Send a "Welcome back" message.
  Example: "🔥 Welcome back, %player%! We missed you!"

- Messages must support HEX colors and gradients.

2. Random Server Promotion Messages:
- Occasionally (random intervals like every 10–20 minutes), send messages such as:
  - "💬 Join our Discord server!"
  - "📱 Download our server app!"
  - "⚡ Plugins are made by AceX"
- Messages should be colorful and configurable.

3. Festival System (IMPORTANT):
- Plugin must track real-world dates.
- Support festivals like:
  - Onam
  - Christmas
  - New Year
  - Diwali (optional)
- One day BEFORE each festival:
  Send a reminder message to all players online.
  Example: "🎉 Tomorrow is Onam! Get ready!"

- On the FESTIVAL DAY:
  Send a special greeting message.
  Example: "🌸 Happy Onam everyone!"

4. Player Data Storage:
- Store player UUIDs in a config or data file.
- Track whether a player has joined before.

5. Config System:
- All messages must be editable in config.yml
- Allow enabling/disabling:
  - Join messages
  - Festival messages
  - Promotion messages

6. Clean Code Requirements:
- Use Java (Spigot/Paper API)
- Use Listener for PlayerJoinEvent
- Use Scheduler for timed messages
- Use LocalDate or Calendar for date tracking
- Follow good plugin structure (Main class, listeners, utils)

7. Extras:
- Prefix all messages with:
  "&6[&eAceX&6] "
- Use MiniMessage or ChatColor for formatting
- Optimize performance (no lag)

Output:
- Full plugin source code
- plugin.yml file
- config.yml example
- Instructions to compile and use
Kodari AI
KodariApr 6 at 4:37 pm 11,741 (v2)

I’ll create a comprehensive server enhancement plugin with festival tracking, join greetings, and promotional broadcasts.

AceXGreater
A comprehensive server enhancement plugin featuring personalized join messages with first-time and returning player detection, automated festival celebrations with real-world date tracking (Onam, Christmas, New Year, Diwali), random promotional broadcasts, title/actionbar support, sound effects, full PlaceholderAPI integration, and MiniMessage gradient/hex color formatting. Includes admin commands for configuration reload and festival testing.

All files have been created successfully! Here’s what the plugin includes:

Core Features:

  • ✅ First-time vs returning player detection with personalized messages

  • ✅ Festival system with date tracking (Onam, Christmas, New Year, Diwali)

  • ✅ Random promotional broadcasts every 10-20 minutes

  • ✅ Full PlaceholderAPI support (%player_name%, etc.)

  • ✅ Title, subtitle, and action bar messages

  • ✅ Sound effects using XSound (cross-version compatible)

  • ✅ MiniMessage formatting with gradients and hex colors

Commands:

  • /acex reload - Reload all configurations

  • /acex testfestival <name> - Test festival effects (onam, christmas, newyear, diwali)

Configuration:

  • All messages, titles, sounds fully customizable in config.yml

  • Festival dates in MM-DD format

  • Automatic reminder messages 1 day before each festival

  • Player data stored in player-data.yml

Build Instructions:

  1. Run ./gradlew build (Linux/Mac) or gradlew.bat build (Windows)

  2. Find compiled JAR in build/libs/

  3. Place in server plugins/ folder

  4. Restart server

The plugin uses Paper’s Adventure API for MiniMessage support and XSeries for cross-version compatibility!

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
16 820
src/main/java/com/acex/acexgreater/AceXGreater.java
package com.acex.acexgreater;

import com.acex.acexgreater.command.AceXCommand;
import com.acex.acexgreater.listener.JoinListener;
import com.acex.acexgreater.manager.ConfigManager;
import com.acex.acexgreater.manager.FestivalManager;
import com.acex.acexgreater.manager.PlayerDataManager;
import com.acex.acexgreater.manager.PromotionManager;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public final class AceXGreater extends JavaPlugin {

    private ConfigManager configManager;
    private PlayerDataManager playerDataManager;
    private FestivalManager festivalManager;
    private PromotionManager promotionManager;

    @Override
    public void onEnable() {
        this.configManager = new ConfigManager(this);
        this.configManager.loadConfigs();
        
        this.playerDataManager = new PlayerDataManager(this);
        this.playerDataManager.load();
        
        this.festivalManager = new FestivalManager(this);
        this.festivalManager.startChecking();
        
        this.promotionManager = new PromotionManager(this);
        this.promotionManager.startScheduler();
        
        getServer().getPluginManager().registerEvents(new JoinListener(this), this);
        
        getCommand("acex").setExecutor(new AceXCommand(this));
        
        getLogger().info("AceXGreater has been enabled!");
    }

    @Override
    public void onDisable() {
        if (this.playerDataManager != null) {
            this.playerDataManager.save();
        }
        if (this.festivalManager != null) {
            this.festivalManager.stopChecking();
        }
        if (this.promotionManager != null) {
            this.promotionManager.stopScheduler();
        }
        getLogger().info("AceXGreater has been disabled!");
    }
}