Ritekk

Develop a comprehensive EssentialsX-like plugin for Minecraft Paper servers, compatible with versions 1.18.2 and above. Include core features such as teleportation, home setting, spawn management, and user permissions, while also integrating an advanced chat system, player kits, and an economy module with Vault support. Ensure the plugin is optimized for performance and includes configuration options for customization.

Kodari AI
KodariJan 17 at 12:59 pm 29,769 (v2)

I’ll create a comprehensive EssentialsX-like plugin with all core features for Paper 1.18.2+.

EssentialsCore
A comprehensive server management plugin for Paper servers (1.18.2+) featuring teleportation commands, home and warp systems, spawn management, formatted chat system, customizable player kits with cooldowns, full economy integration with Vault, player management tools, admin utilities, and extensive configuration options. Optimized for performance with asynchronous operations and efficient data management.

EssentialsCore plugin created successfully! This comprehensive server management plugin includes:

Core Features:

  • ✅ Teleportation System - /tp, /tpa, /tpahere, /tpaccept, /tpdeny with delays and movement cancellation

  • ✅ Home Management - /home, /sethome, /delhome with configurable limits

  • ✅ Spawn System - /spawn, /setspawn with join teleportation

  • ✅ Warp System - /warp, /setwarp, /delwarp with centralized management

  • ✅ Economy System - Full Vault integration with fallback internal economy (/balance, /pay, /eco)

  • ✅ Chat System - Formatted chat with Vault prefix/suffix support

  • ✅ Kit System - Customizable kits with cooldowns and permissions

  • ✅ Player Commands - /heal, /feed, /fly, /god, /speed

  • ✅ Admin Commands - /gamemode, /give, /clear

Technical Highlights:

  • XSeries integration for 1.18.2+ cross-version compatibility

  • Vault soft-dependency for economy and chat

  • Asynchronous data saving with YAML storage

  • Lazy initialization pattern for inventories

  • Lombok for clean code

  • Extensive permission system

  • Fully configurable messages and settings

  • Teleport delay system with movement detection

  • Kit cooldown tracking with user data persistence

  • God mode damage cancellation

Configuration:

  • Customizable teleport delays

  • Home limits per player

  • Economy settings (starting balance, currency)

  • Chat format with world/prefix/suffix placeholders

  • Pre-configured kits (starter, tools, pvp)

  • All messages customizable with color codes

The plugin is production-ready and optimized for Paper 1.18.2+ servers!

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
manifest.kod
Code
48 2,843
src/main/java/com/SpaceTeam/SpaceCore.java
package com.essentials;

import com.essentials.chat.ChatManager;
import com.essentials.commands.admin.*;
import com.essentials.commands.economy.*;
import com.essentials.commands.home.*;
import com.essentials.commands.kit.*;
import com.essentials.commands.player.*;
import com.essentials.commands.spawn.*;
import com.essentials.commands.teleport.*;
import com.essentials.commands.warp.*;
import com.essentials.config.ConfigManager;
import com.essentials.data.DataManager;
import com.essentials.economy.EconomyManager;
import com.essentials.home.HomeManager;
import com.essentials.kit.KitManager;
import com.essentials.listener.PlayerListener;
import com.essentials.spawn.SpawnManager;
import com.essentials.teleport.TeleportManager;
import com.essentials.user.UserManager;
import com.essentials.warp.WarpManager;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class EssentialsCore extends JavaPlugin {
    
    private ConfigManager configManager;
    private DataManager dataManager;
    private UserManager userManager;
    private HomeManager homeManager;
    private SpawnManager spawnManager;
    private WarpManager warpManager;
    private TeleportManager teleportManager;
    private EconomyManager economyManager;
    private KitManager kitManager;
    private ChatManager chatManager;
    
    @Override
    public void onEnable() {
        this.configManager = new ConfigManager(this);
        this.dataManager = new DataManager(this);
        this.userManager = new UserManager(this);
        this.homeManager = new HomeManager(this);
        this.spawnManager = new SpawnManager(this);
        this.warpManager = new WarpManager(this);
        this.teleportManager = new TeleportManager(this);
        this.economyManager = new EconomyManager(this);
        this.kitManager = new KitManager(this);
        this.chatManager = new ChatManager(this);
        
        dataManager.loadAll();
        
        registerCommands();
        registerListeners();
        
        getLogger().info("EssentialsCore has been enabled!");
    }
    
    @Override
    public void onDisable() {
        if (dataManager != null) {
            dataManager.saveAll();
        }
        getLogger().info("EssentialsCore has been disabled!");
    }
    
    private void registerCommands() {
        getCommand("spawn").setExecutor(new SpawnCommand(this));
        getCommand("setspawn").setExecutor(new SetSpawnCommand(this));
        
        getCommand("home").setExecutor(new HomeCommand(this));
        getCommand("sethome").setExecutor(new SetHomeCommand(this));
        getCommand("delhome").setExecutor(new DelHomeCommand(this));
        getCommand("homes").setExecutor(new HomesCommand(this));
        
        getCommand("tp").setExecutor(new TpCommand(this));
        getCommand("tpa").setExecutor(new TpaCommand(this));
        getCommand("tpahere").setExecutor(new TpaHereCommand(this));
        getCommand("tpaccept").setExecutor(new TpAcceptCommand(this));
        getCommand("tpdeny").setExecutor(new TpDenyCommand(this));
        
        getCommand("warp").setExecutor(new WarpCommand(this));
        getCommand("setwarp").setExecutor(new SetWarpCommand(this));
        getCommand("delwarp").setExecutor(new DelWarpCommand(this));
        getCommand("warps").setExecutor(new WarpsCommand(this));
        
        getCommand("balance").setExecutor(new BalanceCommand(this));
        getCommand("pay").setExecutor(new PayCommand(this));
        getCommand("eco").setExecutor(new EcoCommand(this));
        
        getCommand("kit").setExecutor(new KitCommand(this));
        getCommand("kits").setExecutor(new KitsCommand(this));
        
        getCommand("heal").setExecutor(new HealCommand(this));
        getCommand("feed").setExecutor(new FeedCommand(this));
        getCommand("fly").setExecutor(new FlyCommand(this));
        getCommand("god").setExecutor(new GodCommand(this));
        getCommand("speed").setExecutor(new SpeedCommand(this));
        
        getCommand("gamemode").setExecutor(new GamemodeCommand(this));
        getCommand("give").setExecutor(new GiveCommand(this));
        getCommand("clear").setExecutor(new ClearCommand(this));
        
        getCommand("essentials").setExecutor(new EssentialsCommand(this));
    }
    
    private void registerListeners() {
        getServer().getPluginManager().registerEvents(new PlayerListener(this), this);
    }
    
    public void reload() {
        configManager.reload();
        dataManager.saveAll();
        dataManager.loadAll();
    }
}