errorx.net

Create a complete, production-ready Minecraft Paper plugin named "NxCore", designed as an all-in-one Essentials + Server Core plugin.

Target:

  • Minecraft/Paper 1.21.x
  • Java
  • Maven/Gradle project with all required dependencies
  • Clean, modular, optimized architecture
  • No unnecessary external dependencies unless absolutely required
  • Every feature must actually work, not just be registered as a command.
  1. Main Goal

NxCore should replace the need for multiple basic Essentials/Core plugins.

It should include:

  • Spawn system
  • Warp system
  • Player Warp system
  • RTP
  • Kits
  • Economy
  • Teleport requests
  • Gamemode
  • Moderation/punishment
  • MOTD
  • Player list/online count formatting
  • Utility commands
  • Fully configurable messages
  • Permissions
  • GUI support where useful
  • Persistent YAML data

Everything should be modular so features can be enabled/disabled from config.

---

  1. File Structure

When NxCore starts for the first time, automatically create:

NxCore/ ├── config.yml ├── messages.yml ├── economy/<economyname.yml> ├── motd.yml ├── spawn.yml ├── warps/<warpsname.yml> ├── playerwarps/<playerwarpsname.yml> └── kits/<kitname.yml> Do NOT store everything in one config.

Each major system must have its own configuration/data file.

Required files

"config.yml"

  • General settings
  • Feature toggles
  • Debug mode
  • Teleport settings
  • RTP settings
  • Permission settings
  • General plugin options

"messages.yml"

  • Every player-facing message
  • Prefix
  • Command errors
  • Permission errors
  • Success messages
  • Teleport messages
  • Economy messages
  • Kit messages
  • Warp messages
  • Spawn messages
  • Moderation messages
  • TPA messages
  • MOTD-related messages where appropriate

"money.yml"

  • Player balances
  • Economy settings
  • Starting balance
  • Maximum balance if configured
  • Currency name
  • Currency symbol
  • Economy formatting

"motd.yml"

  • Join MOTD
  • Two configurable MOTD lines
  • First join MOTD
  • Player count display
  • Server list MOTD
  • Configurable online/max-online format
  • Enable/disable individual lines

"spawn.yml"

  • Spawn location
  • Spawn settings
  • Teleport delay
  • Movement cancellation
  • Spawn-related options

"warps.yml"

  • Normal warp locations
  • Warp settings/data

"playerwarps.yml"

  • Player warp locations
  • Owner
  • Name
  • Location
  • Visibility/settings

"kits/"

  • Every kit must have its own ".yml"
  • Example:

- "starter.yml" - "vip.yml" - "mvp.yml"

  • Kit file must contain:

- Kit name - Display name - Permission - Cooldown - One-time/claimable setting - Auto-claim option - Items - Armor - Offhand - Commands if configured

Automatically create the "kits" folder and kit files when needed.

---

  1. Message System

The message system must be extremely configurable.

Default prefix:

"&#FF2A2A&lNXCORE &7▶"

Every player-facing NxCore message should automatically use the configured prefix unless explicitly configured otherwise.

Support:

Legacy colors

  • "&c"
  • "&a"
  • "&7"
  • etc.

Hex colors

Support formats such as:

"&#FF2A2A"

and also:

"<#FF2A2A>"

MiniMessage

Support MiniMessage formatting including:

  • Colors
  • Gradients
  • Bold
  • Italic
  • Underline
  • Hover
  • Click events where appropriate

The message parser should safely support mixed formatting.

Allow placeholders in messages.

Examples:

  • "%player%"
  • "%target%"
  • "%amount%"
  • "%balance%"
  • "%warp%"
  • "%kit%"
  • "%time%"
  • "%online%"
  • "%max_players%"

Add appropriate placeholders for every feature.

Add:

"/nxcore reload"

which reloads all safe configuration files and messages without requiring a server restart.

---

  1. SPAWN SYSTEM

Commands:

"/spawn" "/setspawn" "/delspawn"

Features:

  • Set spawn
  • Delete spawn
  • Teleport to spawn
  • Configurable teleport delay
  • Cancel teleport when player moves
  • Optional sound
  • Optional title/subtitle
  • Optional actionbar
  • Configurable messages
  • Permission support

Permissions:

"nxcore.spawn" "nxcore.setspawn" "nxcore.delspawn"

and appropriate admin permission.

---

  1. WARP SYSTEM

Commands:

"/warp <name>" "/setwarp <name>" "/delwarp <name>" "/warps"

Features:

  • Create warp
  • Delete warp
  • Teleport to warp
  • Warp list
  • Permission per warp if configured
  • Optional GUI
  • Optional teleport delay
  • Movement cancellation
  • Sounds
  • Titles/actionbar
  • Fully configurable messages

Store normal warps inside "warps.yml".

---

  1. PLAYER WARPS

Commands:

"/setpw <name>" "/pw <name>" "/delpw <name>" "/pwarps"

Player warps should belong to individual players.

Features:

  • Players can create their own warps
  • Players can delete their own warps
  • Teleport to another player's warp
  • Warp list
  • Owner information
  • Optional public/private setting
  • Optional GUI
  • Configurable maximum number of player warps
  • Permission-based limits if desired

Store data in "playerwarps.yml".

Prevent players from deleting another player's warp unless they have an admin permission.

---

  1. RTP

Add a complete random teleport system.

Command:

"/rtp"

Optional:

"/rtp <player>"

Features:

  • Random safe location
  • Configurable worlds
  • Configurable minimum/maximum radius
  • Avoid lava
  • Avoid water if configured
  • Avoid dangerous blocks
  • Find safe ground
  • Configurable cooldown
  • Teleport delay
  • Movement cancellation
  • Configurable messages
  • Permission support

Avoid causing server lag by using an efficient location-search system.

---

  1. KIT SYSTEM

Commands:

"/kit" "/kit <name>" "/kit create <name>" "/kit edit <name>" "/kit delete <name>" "/kit claim <name>" "/kits"

Features:

  • Create kits
  • Delete kits
  • Edit kits
  • Claim kits
  • Kit GUI
  • Kit cooldown
  • Permission requirements
  • One-time kits
  • Repeatable kits
  • Auto kit claim
  • First-join kit
  • Kit commands
  • Kit items
  • Armor
  • Offhand
  • Item metadata
  • Enchantments
  • Custom names/lore
  • Amounts

Every kit must have a separate file inside:

"kits/"

Example:

"kits/starter.yml"

Automatically create the file when a kit is created.

Add configurable kit permissions, for example:

"nxcore.kit.starter"

Support custom permission names from the kit configuration.

Auto-claim must be configurable.

Example settings:

  • "auto-claim: true"
  • "one-time: true"
  • "cooldown: 86400"
  • "permission: nxcore.kit.starter"

---

  1. ECONOMY

Create a built-in economy system.

Commands:

"/money" "/bal" "/balance" "/pay <player> <amount>" "/baltop" "/eco give <player> <amount>" "/eco take <player> <amount>" "/eco set <player> <amount>" "/eco reset <player>"

Features:

  • Player balances
  • Give money
  • Take money
  • Set balance
  • Reset balance
  • Pay players
  • Balance checking
  • Baltop
  • Starting money
  • Maximum balance
  • Negative balance prevention
  • Decimal support
  • Economy formatting
  • Configurable currency name
  • Configurable currency symbol

Store economy data in "money.yml".

Make the economy API internally accessible so future NxCore modules or other plugins can hook into it.

If Vault integration is practical, add optional Vault economy support.

---

  1. TPA SYSTEM

Commands:

"/tpa <player>" "/tpahere <player>" "/tpaccept" "/tpdeny"

Features:

  • TPA request
  • TPAHere request
  • Accept
  • Deny
  • Request timeout
  • Configurable timeout
  • Cooldown
  • Teleport delay
  • Movement cancellation where appropriate
  • Prevent self requests
  • Prevent duplicate requests
  • Configurable messages

---

  1. TELEPORT / UTILITY COMMANDS

Add common Essentials-style commands such as:

"/tp" "/tphere" "/tpall" "/back" "/top" "/suicide"

"/gamemode" "/gmc" "/gms" "/gmsp" "/gmadventure"

"/fly" "/heal" "/feed" "/clear" "/invsee"

Use proper permission checks.

---

  1. MODERATION

Add:

"/kick" "/mute" "/unmute" "/ban" "/unban" "/tempban" "/tempmute" "/banip" "/unbanip"

Features:

  • Player bans
  • IP bans
  • Temporary bans
  • Permanent bans
  • Mutes
  • Temporary mutes
  • Unmute
  • Unban
  • IP unban
  • Kick
  • Reasons
  • Duration
  • Offline-player support where applicable
  • Configurable messages
  • Permission checks
  • Persistent punishment data

Punishments should survive server restarts.

---

  1. MOTD

Create a dedicated "motd.yml".

Allow exactly/configurably formatted MOTD lines.

Example concept:

Line 1:

NxCore Server

Line 2:

Welcome! Online: %online%/%max_players%

Allow:

  • Hex
  • Legacy
  • MiniMessage
  • Placeholders
  • Player name
  • Online players
  • Maximum players

Also allow configuring the server-list MOTD and join MOTD separately if technically appropriate.

---

  1. PLAYER LIST / ONLINE DISPLAY

Allow the player-list-related display to be configured.

Configurable:

  • Online count
  • Maximum player count
  • Player list/header/footer if implemented
  • Join/leave display
  • Placeholder support

Example placeholders:

"%online%" "%max_players%"

Make formatting configurable rather than hardcoded.

---

  1. PERMISSIONS

Create a complete permission structure.

Examples:

"nxcore.admin"

"nxcore.spawn" "nxcore.setspawn" "nxcore.delspawn"

"nxcore.warp" "nxcore.setwarp" "nxcore.delwarp"

"nxcore.playerwarp" "nxcore.setpw" "nxcore.delpw"

"nxcore.rtp"

"nxcore.tpa" "nxcore.tpahere" "nxcore.tpaccept"

"nxcore.kit" "nxcore.kit.<kit>"

"nxcore.money" "nxcore.pay" "nxcore.eco"

"nxcore.mute" "nxcore.unmute" "nxcore.ban" "nxcore.unban" "nxcore.banip" "nxcore.unbanip"

"nxcore.gamemode" "nxcore.fly" "nxcore.heal" "nxcore.feed" "nxcore.invsee"

Use sensible permission inheritance where possible.

---

  1. COMMAND ALIASES

Add useful aliases where appropriate.

Examples:

"/balance" → "/bal" → "/money"

"/gm" → "/gamemode"

"/setplayerwarp" → "/setpw"

"/playerwarp" → "/pw"

Make aliases compatible with Paper's command system.

---

  1. GUI SYSTEM

Where useful, create GUIs for:

  • Kits
  • Warps
  • Player warps

GUI settings should be configurable.

Prevent item stealing/placing inside plugin GUIs.

Allow configurable:

  • Title
  • Size
  • Item
  • Name
  • Lore
  • Slots

---

  1. PLACEHOLDER SYSTEM

Create an internal placeholder system.

Every module should expose relevant placeholders.

Examples:

"%player%" "%target%" "%balance%" "%money%" "%online%" "%max_players%" "%warp%" "%kit%" "%cooldown%" "%time%"

If PlaceholderAPI is installed, provide optional PlaceholderAPI integration.

Do not make PlaceholderAPI mandatory.

---

  1. CONFIGURATION QUALITY

All messages and settings must be configurable.

Do not hardcode player-facing messages.

Do not hardcode the NxCore prefix inside individual messages.

Use:

"%prefix%"

or an equivalent internal prefix system.

Default prefix:

"&#FF2A2A&lNXCORE &7▶"

All messages should automatically receive this prefix by default.

Allow individual messages to disable the prefix if required.

---

  1. DATA SAFETY

Make sure:

  • YAML files are created automatically
  • Missing files regenerate safely
  • Existing user configuration is never unnecessarily overwritten
  • Invalid configuration does not crash the server
  • Errors are logged clearly
  • Economy data is saved safely
  • Kit data is saved safely
  • Warp data is saved safely
  • Player warp data is saved safely
  • Punishments persist after restart

Use efficient saving and avoid excessive disk writes.

---

  1. TAB-COMPLETE

Every command should have intelligent tab completion.

Examples:

"/warp <TAB>" → available warps

"/kit <TAB>" → available kits

"/pw <TAB>" → available player warps

"/eco <TAB>" → give/take/set/reset

"/gamemode <TAB>" → available gamemodes

Player arguments should suggest online players where appropriate.

---

  1. ERROR HANDLING

Create proper messages for:

  • No permission
  • Player not found
  • Invalid amount
  • Invalid player
  • Invalid warp
  • Invalid kit
  • Invalid command usage
  • No spawn set
  • No player warp
  • Already muted
  • Not muted
  • Already banned
  • Not banned
  • Insufficient balance
  • Cooldown active
  • Teleport cancelled
  • Invalid location
  • Invalid configuration

All must be configurable in "messages.yml".

---

  1. RELOAD

Command:

"/nxcore reload"

Permission:

"nxcore.admin"

Reload:

  • config.yml
  • messages.yml
  • money.yml
  • motd.yml
  • spawn.yml
  • warps.yml
  • playerwarps.yml
  • kits

Do not reload in a way that corrupts active player data.

---

  1. VERSION / COMPATIBILITY

Target modern Paper 1.21.x.

Use modern Paper/Bukkit APIs and avoid deprecated APIs whenever possible.

Make the plugin compatible with the latest stable 1.21.x Paper version available during development.

---

  1. CODE QUALITY

Use a clean package structure such as:

  • core
  • commands
  • listeners
  • managers
  • economy
  • kits
  • warps
  • playerwarps
  • spawn
  • rtp
  • moderation
  • tpa
  • motd
  • messages
  • utilities

Use managers/services instead of putting everything inside one giant main class.

The plugin must be maintainable and easy to expand.

---

  1. FINAL REQUIREMENT

NxCore should feel like a complete professional server core, not a collection of unfinished commands.

Every advertised command must work.

Every configurable message must actually be read from "messages.yml".

Every major system must use its dedicated YAML file.

Kits must use individual files inside the "kits/" folder.

Spawn, warps, player warps, money, MOTD and messages must remain separated.

Support Legacy colors, Hex colors and MiniMessage.

Use the default prefix:

"&#FF2A2A&lNXCORE &7▶"

Make the plugin optimized, stable, secure and production-ready.

Do not leave TODOs, fake implementations, placeholder methods or non-functional commands.

At the end, provide:

  • Complete project
  • "plugin.yml"
  • Build configuration
  • Default configuration files
  • Default messages.yml
  • Default money.yml
  • Default motd.yml
  • Default spawn.yml
  • Default warps.yml
  • Default playerwarps.yml
  • Example starter kit
  • Permission list
  • Command list
  • Installation instructions
  • Configuration document
Kodari AI
KodariSep 8 at 3:55 pm 4
NxCore
A comprehensive all-in-one Essentials and Server Core plugin for Paper 1.21.x. Features include spawn/warp/player warp systems, random teleportation, kit management, economy with persistent YAML storage, TPA requests, moderation tools, configurable MOTD, and utility commands. Modular architecture with per-system YAML files, full message customization supporting legacy/hex/MiniMessage formats, permission hierarchy, GUI interfaces, and a reload command. Includes placeholder system with optional PlaceholderAPI integration.
  1. Create the Maven/Paper project and separated default YAML configuration files.

  2. Add the core services: messages, teleportation, economy, spawn, warps, player warps, kits, RTP, TPA, moderation, MOTD, and GUIs.

  3. Register functional commands, aliases, permissions, tab completion, listeners, persistence, and reload handling.

Created NxCore as a modular Paper 1.21.x Maven plugin targeting Java 21.

Included systems

  • Spawn management with delay and movement cancellation

  • Normal warps

  • Player warps with public/private support

  • Random teleportation with safety checks

  • Individual YAML kit files

  • Economy with balances, payments, admin controls, and baltop

  • TPA and TPAHere requests

  • Teleport utilities and /back

  • Gamemode, flight, heal, feed, clear, invsee

  • Kick, mute, ban, temporary punishments, and IP bans

  • Configurable join MOTD and server-list MOTD

  • Player list formatting

  • Internal placeholder processing

  • Legacy colors, hex colors, and MiniMessage

  • Optional PlaceholderAPI support through reflection

  • Configurable GUIs for kits, warps, and player warps

  • Persistent YAML storage

  • Reload command

  • Tab completion

  • Permissions and command aliases

Project files

  • pom.xml

  • src/main/resources/plugin.yml

  • config.yml

  • messages.yml

  • money.yml

  • motd.yml

  • spawn.yml

  • warps.yml

  • playerwarps.yml

  • punishments.yml

  • kits/starter.yml

Main commands

Plain Text
/nxcore reload

/spawn
/setspawn
/delspawn

/warp
/setwarp
/delwarp
/warps

/setpw
/pw
/delpw
/pwarps

/rtp

/kit
/kits
/kit create
/kit edit
/kit delete
/kit claim

/money
/bal
/balance
/pay
/baltop
/eco

/tpa
/tpahere
/tpaccept
/tpdeny

/tp
/tphere
/tpall
/back
/top
/suicide

/gamemode
/gm
/gmc
/gms
/gmsp
/gmadventure

/fly
/heal
/feed
/clear
/invsee

/kick
/mute
/unmute
/ban
/unban
/tempban
/tempmute
/banip
/unbanip

Installation

  1. Build the project with:

Shell
mvn package
  1. Copy the generated NxCore.jar from target/ into the server’s plugins/ folder.

  2. Start the Paper server once.

  3. Edit files under:

Plain Text
plugins/NxCore/
  1. Restart the server or run:

Plain Text
/nxcore reload

NxCore automatically creates its separated data files and the kits/ directory on first startup.

Kodari can make mistakes. Review important code before using.
Files
src
pom.xml
Code
29 1,022
src/main/java/com/nxcore/NxCore.java
package com.nxcore;

import com.nxcore.commands.CoreCommand;
import com.nxcore.config.ConfigManager;
import com.nxcore.economy.EconomyManager;
import com.nxcore.gui.GuiManager;
import com.nxcore.kits.KitManager;
import com.nxcore.messages.MessageManager;
import com.nxcore.moderation.ModerationManager;
import com.nxcore.playerwarps.PlayerWarpManager;
import com.nxcore.rtp.RtpManager;
import com.nxcore.spawn.SpawnManager;
import com.nxcore.teleport.TeleportManager;
import com.nxcore.tpa.TpaManager;
import com.nxcore.listeners.CoreListener;
import com.nxcore.motd.MotdManager;
import com.nxcore.warps.WarpManager;
import org.bukkit.Bukkit;
import org.bukkit.command.PluginCommand;
import org.bukkit.plugin.java.JavaPlugin;

public final class NxCore extends JavaPlugin {
    private ConfigManager configManager;
    private MessageManager messages;
    private EconomyManager economy;
    private SpawnManager spawn;
    private WarpManager warps;
    private PlayerWarpManager playerWarps;
    private KitManager kits;
    private TeleportManager teleport;
    private RtpManager rtp;
    private TpaManager tpa;
    private ModerationManager moderation;
    private MotdManager motd;
    private GuiManager gui;

    @Override
    public void onEnable() {
        configManager = new ConfigManager(this);
        configManager.loadAll();
        messages = new MessageManager(this, configManager);
        economy = new EconomyManager(this, configManager);
        spawn = new SpawnManager(this, configManager);
        warps = new WarpManager(this, configManager);
        playerWarps = new PlayerWarpManager(this, configManager);
        kits = new KitManager(this, configManager);
        teleport = new TeleportManager(this, configManager, messages);
        rtp = new RtpManager(this, configManager, messages, teleport);
        tpa = new TpaManager(this, configManager, messages, teleport);
        moderation = new ModerationManager(this, configManager, messages);
        motd = new MotdManager(this, configManager, messages);
        gui = new GuiManager(this, configManager, messages, kits, warps, playerWarps);

        CoreCommand command = new CoreCommand(this);
        String[] names = {"nxcore", "spawn", "setspawn", "delspawn", "warp", "setwarp", "delwarp", "warps", "setpw", "pw", "delpw", "pwarps", "rtp", "kit", "kits", "money", "pay", "baltop", "eco", "tpa", "tpahere", "tpaccept", "tpdeny", "tp", "tphere", "tpall", "back", "top", "suicide", "gamemode", "gmc", "gms", "gmsp", "gmadventure", "fly", "heal", "feed", "clear", "invsee", "kick", "mute", "unmute", "ban", "unban", "tempban", "tempmute", "banip", "unbanip"};
        for (String name : names) {
            PluginCommand pluginCommand = getCommand(name);
            if (pluginCommand != null) {
                pluginCommand.setExecutor(command);
                pluginCommand.setTabCompleter(command);
            }
        }
        Bukkit.getPluginManager().registerEvents(new CoreListener(this), this);
        Bukkit.getPluginManager().registerEvents(gui, this);
        getLogger().info("NxCore enabled with " + kits.getKitNames().size() + " kits and " + warps.getWarpNames().size() + " warps.");
    }

    @Override
    public void onDisable() {
        if (economy != null) economy.save();
        if (spawn != null) spawn.save();
        if (warps != null) warps.save();
        if (playerWarps != null) playerWarps.save();
        if (kits != null) kits.save();
        if (moderation != null) moderation.save();
    }

    public void reloadAll() {
        configManager.reloadAll();
        messages.reload();
        economy.reload();
        spawn.reload();
        warps.reload();
        playerWarps.reload();
        kits.reload();
        moderation.reload();
    }

    public ConfigManager getConfigManager() { return configManager; }
    public MessageManager getMessages() { return messages; }
    public EconomyManager getEconomy() { return economy; }
    public SpawnManager getSpawn() { return spawn; }
    public WarpManager getWarps() { return warps; }
    public PlayerWarpManager getPlayerWarps() { return playerWarps; }
    public KitManager getKits() { return kits; }
    public TeleportManager getTeleport() { return teleport; }
    public RtpManager getRtp() { return rtp; }
    public TpaManager getTpa() { return tpa; }
    public ModerationManager getModeration() { return moderation; }
    public MotdManager getMotd() { return motd; }
    public GuiManager getGui() { return gui; }
}