they_spammer

Develop a Paper/Spigot plugin that grants new players a custom totem upon their first join, featuring a dynamic cinematic sequence that lifts them into the air while showcasing an informative overlay about the totem's abilities. Include configurable options for the totem's appearance, cinematic duration, and information displayed, along with permission nodes for server admins to manage the feature.

Kodari AI
KodariFeb 24 at 7:09 am 11,828 (v2)

I’ll create a comprehensive plugin that gives new players a custom totem with a cinematic welcome sequence.

TotemWelcome
An immersive first-join experience plugin that grants new players a custom totem with unique abilities. Features a dramatic cinematic sequence that lifts players into the air while displaying detailed information about their new totem through titles and particle effects. Includes full configuration for totem appearance, cinematic duration, lift height, particle effects, and admin management commands with permission-based controls.

I’ll create a plugin that delivers an immersive first-join experience with a custom totem and cinematic sequence.

Plugin complete! The TotemWelcome plugin features:

Core Features:

  • Custom totem given to first-time players with configurable appearance, name, lore, and glow effect

  • Cinematic sequence that smoothly lifts players with easing animation and 360° rotation

  • Sequential title/subtitle messages displaying totem abilities at specific timestamps

  • Particle effects surrounding the player during the cinematic

  • Sound effects at start and end of sequence

  • Action bar messages throughout the experience

Configuration:

  • Totem material, name, lore, custom model data, and glow toggle

  • Cinematic duration, lift height, particle type/count/spread

  • Message sequence with timestamps for titles/subtitles

  • Sound effects and freeze player toggle

  • All messages customizable with color codes

Permissions:

  • totemwelcome.receive - Receive totem on first join (default: true)

  • totemwelcome.admin - Access admin commands (default: op)

  • totemwelcome.bypass - Skip cinematic sequence (default: false)

Commands:

  • /totemwelcome reload - Reload configuration

  • /totemwelcome give <player> - Give totem to any player

  • /totemwelcome cinematic <player> - Trigger cinematic for any player

The plugin uses XSeries for cross-version compatibility, Paper’s Adventure API for modern text components, and includes smooth easing animations for a professional cinematic experience.

Kodari can make mistakes. Review important code before using.
Files
src
Code
10 848
src/main/java/com/totemwelcome/TotemWelcome.java
package com.totemwelcome;

import com.totemwelcome.commands.TotemWelcomeCommand;
import com.totemwelcome.listeners.PlayerJoinListener;
import com.totemwelcome.listeners.TotemUseListener;
import com.totemwelcome.managers.CinematicManager;
import com.totemwelcome.managers.ConfigManager;
import com.totemwelcome.managers.PlayerDataManager;
import com.totemwelcome.managers.TotemManager;
import lombok.Getter;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class TotemWelcome extends JavaPlugin {
    
    private ConfigManager configManager;
    private PlayerDataManager playerDataManager;
    private TotemManager totemManager;
    private CinematicManager cinematicManager;
    
    @Override
    public void onEnable() {
        this.configManager = new ConfigManager(this);
        this.playerDataManager = new PlayerDataManager(this);
        this.totemManager = new TotemManager(this);
        this.cinematicManager = new CinematicManager(this);
        
        registerCommands();
        registerListeners();
        
        getLogger().info("TotemWelcome has been enabled!");
    }
    
    @Override
    public void onDisable() {
        if (this.cinematicManager != null) {
            this.cinematicManager.cancelAllCinematics();
        }
        
        if (this.playerDataManager != null) {
            this.playerDataManager.saveAll();
        }
        
        getLogger().info("TotemWelcome has been disabled!");
    }
    
    private void registerCommands() {
        getCommand("totemwelcome").setExecutor(new TotemWelcomeCommand(this));
    }
    
    private void registerListeners() {
        Bukkit.getPluginManager().registerEvents(new PlayerJoinListener(this), this);
        Bukkit.getPluginManager().registerEvents(new TotemUseListener(this), this);
    }
    
    public void reload() {
        this.configManager.reload();
        this.playerDataManager.reload();
        this.totemManager.reload();
    }
}