acris_playz

Create a premium Minecraft (Paper/Spigot 1.21+) Welcome Plugin. Show a colorful animated welcome title, player's name, smooth effects, and a pleasant sound when joining. Use gradient HEX colors, MiniMessage support, customizable config.yml, optimized performance, and a modern professional design inspired by premium Minecraft servers.

Kodari AI
KodariJun 12 at 6:49 pm 31
WelcomePlugin
A premium Minecraft welcome plugin for Paper/Spigot 1.21+ that greets players with a 3-frame animated gradient title sequence, MiniMessage-formatted chat message, particle burst, and sound effect on join. Features separate first-join handling, color-cycling actionbar animation, configurable broadcast, and a /welcome reload command. Everything is fully customizable through a clean config.yml with HEX gradient support.

Here’s a breakdown of every system in the plugin:


🎬 Title Animation

Three build-up frames fire (dark β†’ medium β†’ bright) before the final configured title plays, creating a cinematic reveal effect. Each stage is a hardcoded gradient step, and the final frame uses your exact config.yml colors and timing.

🌈 Actionbar Cycle

After the title, a color-cycling bar runs for duration-ticks. The gradient rotates through 6 states (redβ†’gold β†’ goldβ†’teal β†’ tealβ†’blue β†’ …) every 15 ticks, creating a smooth rainbow shimmer.

πŸŽ‰ First Join

Uses !player.hasPlayedBefore() (reliable in Paper 1.21 β€” player data isn’t written yet when PlayerJoinEvent fires). First-join gets its own title, chat block, and sound (UI_TOAST_CHALLENGE_COMPLETE by default).

πŸ“’ Broadcast

Replaces the vanilla β€œX joined the game” message entirely with a custom MiniMessage broadcast, configurable via broadcast.suppress-default.

βš™οΈ Reload

/welcome reload (permission: welcomeplugin.reload, default: op) hot-reloads config.yml with no restart needed.

Kodari can make mistakes. Review important code before using.
Files
src
Code
8 626
src/main/java/com/kodari/welcome/WelcomePlugin.java
package com.kodari.welcome;

import com.kodari.welcome.command.WelcomeCommand;
import com.kodari.welcome.config.ConfigManager;
import com.kodari.welcome.listener.PlayerJoinListener;
import com.kodari.welcome.manager.WelcomeManager;
import org.bukkit.plugin.java.JavaPlugin;

public class WelcomePlugin extends JavaPlugin {

    private ConfigManager configManager;
    private WelcomeManager welcomeManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        configManager = new ConfigManager(this);
        welcomeManager = new WelcomeManager(this, configManager);

        getServer().getPluginManager().registerEvents(new PlayerJoinListener(this, welcomeManager), this);

        WelcomeCommand welcomeCommand = new WelcomeCommand(this);
        getCommand("welcome").setExecutor(welcomeCommand);
        getCommand("welcome").setTabCompleter(welcomeCommand);

        getLogger().info("WelcomePlugin v" + getDescription().getVersion() + " enabled!");
    }

    @Override
    public void onDisable() {
        getLogger().info("WelcomePlugin disabled.");
    }

    public ConfigManager getConfigManager() {
        return configManager;
    }

    public WelcomeManager getWelcomeManager() {
        return welcomeManager;
    }

    public void reload() {
        reloadConfig();
        configManager.reload();
    }
}