hexcartshoppy-ai

Professional Prompt: Advanced Paper Minecraft Warp Plugin

You are an expert Java developer specializing in PaperMC plugins.

Create a production-ready, fully complete Minecraft Paper plugin called AdvancedWarp.

Requirements

  • Java 21
  • Latest Paper API
  • Maven project
  • No placeholder code
  • No TODO comments
  • Clean, modular architecture
  • Well-documented code
  • Optimized for large servers
  • No memory leaks
  • Async where appropriate
  • Fully configurable
  • Support Minecraft 1.21+

---

Main Command

/warp

When a player executes "/warp", open a fully configurable INVENTORY GUI instead of listing commands.

---

Warp INVENTORY GUI

The INVENTORY GUI must support:

  • Configurable title
  • Configurable size (9–54 slots)
  • Configurable filler items
  • Configurable border
  • Configurable background
  • Configurable slot positions
  • Configurable item materials
  • Custom model data support
  • Item name
  • Item lore
  • Item glow
  • Item flags
  • Custom head textures
  • Sounds
  • Click actions

Each warp is represented by an item.

Example:

  • Grass Block → Survival
  • Diamond Block → Spawn
  • End Portal Frame → End
  • Nether Star → Hub

When clicked:

  • Close INVENTORY GUI
  • Play configurable sound
  • Teleport player safely
  • Send configurable message
  • Execute optional configured console/player commands

---

Warp Management

Admin-only commands:

/warp set <name>

Creates or updates a warp at the player's current location.

/warp delete <name>

Deletes a warp.

/warp reload

Reloads every configuration file.

/warp list

Lists all warps.

/warp info <name>

Shows warp information.

/warp tp <player> <warp>

Teleports another player.

/warp move <name>

Updates an existing warp location.

/warp rename <old> <new>

Renames a warp.

---

Permissions

Integrate perfectly with LuckPerms.

Permissions:

advancedwarp.use advancedwarp.admin advancedwarp.reload advancedwarp.set advancedwarp.delete advancedwarp.list advancedwarp.info advancedwarp.tp advancedwarp.move advancedwarp.rename advancedwarp.warp.<warpname>

A player must have:

advancedwarp.warp.spawn

to use the Spawn warp.

Warps without permission should:

  • Be hidden from the INVENTORY GUI (configurable), or
  • Display as locked (configurable)

---

Configuration

Everything must be configurable.

config.yml

  • INVENTORY GUI title
  • INVENTORY GUI size
  • INVENTORY GUI rows
  • Sounds
  • Messages
  • Teleport delay
  • Teleport cooldown
  • Animation
  • Safe teleport
  • Economy hook (future-ready)
  • Hide locked warps
  • Close INVENTORY GUI after teleport
  • Open sound
  • Click sound
  • Border
  • Fillers
  • Update checker
  • Metrics toggle

---

INVENTORY GUI.yml

Every INVENTORY GUI item must be configurable.

Each warp should support:

  • Slot
  • Material
  • Display name
  • Lore
  • Glow
  • Enchantments
  • Item flags
  • Custom model data
  • Skull texture
  • Click sound
  • Required permission

Example:

spawn: slot: 13 material: GRASS_BLOCK name: "&aSpawn" lore: - "&7Teleport to Spawn"

---

warps.yml

Stores all warp locations.

Each warp stores:

  • World
  • X
  • Y
  • Z
  • Yaw
  • Pitch

Automatically generated.

---

Features

  • Safe teleport
  • Chunk preload before teleport
  • Teleport delay
  • Cancel teleport on movement
  • Cooldowns
  • Permission checks
  • World existence checks
  • INVENTORY GUI animations
  • Shift-click prevention
  • Inventory exploit protection
  • Hot reload support
  • Color code support
  • MiniMessage support
  • PlaceholderAPI support
  • LuckPerms support
  • Adventure API
  • Sounds
  • Titles
  • Action bars
  • Tab completion

---

Performance

  • Async config loading
  • No blocking main thread
  • Efficient caching
  • Minimal allocations
  • Proper listener cleanup
  • Thread-safe design
  • Production-ready optimization

---

Error Handling

Handle all edge cases gracefully:

  • Missing worlds
  • Deleted worlds
  • Invalid configs
  • Invalid materials
  • Missing permissions
  • Missing warps
  • Invalid commands
  • Offline players
  • Duplicate warp names

No console errors should occur during normal usage.

---

Deliverables

Generate the complete Maven project, including:

  • pom.xml
  • plugin.yml
  • config.yml
  • INVENTORY GUI.yml
  • warps.yml
  • Complete Java source code
  • Package structure
  • Utility classes
  • Managers
  • Commands
  • INVENTORY GUI system
  • Listeners
  • Configuration manager
  • Warp manager
  • Teleport manager
  • LuckPerms integration
  • PlaceholderAPI integration
  • Adventure API implementation

The plugin must compile successfully without modifications and be immediately usable on a production Paper server.

Kodari AI
KodariJul 12 at 7:09 am 14
AdvancedWarp
AdvancedWarp is a configurable Paper plugin that provides an interactive warp inventory GUI for Minecraft 1.21+. It supports permission-based warp visibility, safe teleportation, chunk preloading, teleport delays, cooldowns, movement cancellation, customizable items, sounds, animations, titles, commands, PlaceholderAPI placeholders, LuckPerms-compatible permissions, administrator warp management, hot reloads, metrics, and robust handling for missing worlds or invalid configuration values.
hexcartshoppy-ai

Tell about this plugin

Kodari AI
KodariJul 12 at 7:10 am 2

AdvancedWarp is a production-focused Paper plugin for Minecraft 1.21+ that replaces the standard /warp command list with an interactive inventory GUI.

Main features

  • Opens a configurable warp menu with /warp

  • Displays each warp as a customizable inventory item

  • Supports custom names, lore, materials, glow, enchantments, flags, model data, and head textures

  • Allows configurable GUI size, title, borders, fillers, backgrounds, slots, sounds, animations, and click behavior

  • Supports permission-based warp access

  • Can either hide unavailable warps or show them as locked

  • Uses permissions such as:

    • advancedwarp.use

    • advancedwarp.admin

    • advancedwarp.warp.<warpname>

Warp administration

Administrators can manage warps using:

  • /warp set <name>

  • /warp delete <name>

  • /warp reload

  • /warp list

  • /warp info <name>

  • /warp tp <player> <warp>

  • /warp move <name>

  • /warp rename <old> <new>

Warp locations are stored in warps.yml, including the world, coordinates, yaw, and pitch.

Teleportation system

The plugin is designed to provide safer teleportation through:

  • Optional teleport delays

  • Movement cancellation

  • Teleport cooldowns

  • Chunk preloading

  • Safe-location checks

  • World-existence validation

  • Configurable teleport messages, sounds, titles, action bars, and commands

Integrations

AdvancedWarp is designed to work with:

  • Adventure API for modern text, titles, and action bars

  • PlaceholderAPI for dynamic placeholders

  • LuckPerms-compatible permission management

  • Optional metrics and update checking

Configuration

The plugin separates configuration into:

  • config.yml — general behavior, messages, sounds, cooldowns, delays, safety, and integrations

  • INVENTORY GUI.yml — GUI layout and individual warp-item settings

  • warps.yml — saved warp locations

It also includes protections against shift-clicking, invalid inventory interactions, missing worlds, invalid materials, unavailable players, duplicate names, and malformed settings.

hexcartshoppy-ai

Make the plugin AUTHOR Name NotSammy and change plugin named to WASDWarp

Kodari AI
KodariJul 12 at 7:10 am 3
  1. Update the plugin metadata to WASDWarp and author NotSammy.

  2. Update user-facing plugin name references where required.

Updated:

  • Plugin name: WASDWarp

  • Author: NotSammy

  • Startup log now displays WASDWarp enabled

  • Java package and main class remain unchanged for compatibility: com.kodari.advancedwarp.AdvancedWarpPlugin

hexcartshoppy-ai

Its not extracting and making a plugin folder

Kodari AI
KodariJul 12 at 7:43 am 4

The plugin descriptor contains an invalid trailing backtick, so Paper cannot parse plugin.yml and never creates the WASDWarp data folder.

Fixed plugin.yml. The trailing invalid backtick was preventing Paper from loading the plugin, so it could not create the WASDWarp plugin folder.

Restart the server and check:

Plain Text
plugins/WASDWarp/

It should contain:

Plain Text
config.yml
INVENTORY GUI.yml
warps.yml

If the folder still does not appear, check the server console for the next startup error.

hexcartshoppy-ai

No folder and plugin not loading

Kodari AI
KodariJul 12 at 7:45 am 8

Fixed the plugin loading dependency.

plugin.yml now includes:

YAML
libraries:
  - com.github.cryptomorin:XSeries:13.0.0

Paper will download XSeries automatically when loading WASDWarp, preventing the missing-class startup failure.

Rebuild and install the newly generated JAR:

Shell
mvn clean package

Then copy:

Plain Text
target/advancedwarp-1.0.0.jar

to:

Plain Text
plugins/

Restart the server completely. The folder should then be created at:

Plain Text
plugins/WASDWarp/

Do not use an older JAR from a previous build. If it still fails, the exact server console error from the Failed to load plugin section is required to identify the remaining issue.

hexcartshoppy-ai

The plugin is fully broken No Eoor msg full black and when I tried to do /warps and open warp its showing an error equried and when I set wap no msg saying warp set and I cant tp to warp everything is broken fix everything use all token and everything fix

Kodari AI
KodariJul 12 at 8:07 am 44
  1. Repair plugin loading, command registration, and startup initialization.

  2. Fix warp creation, persistence, lookup, and teleport behavior.

  3. Repair the GUI opening, item interactions, permissions, and error handling.

  4. Validate configuration/resource packaging and compile the Maven project.

The failures are coming from three concrete issues: invalid trailing characters in both YAML files, the command executor being registered without a null check, and the GUI requiring warp permissions even for administrators while click handling ignores each item’s configured permission.

The project-side repairs now target the actual runtime paths: valid YAML resources, safe command registration, administrator access to every warp, and click permission matching the configured GUI item rather than a hard-coded permission.

  1. Replace the malformed packaged YAML files and rename the Maven artifact to wasdwarp so the rebuilt JAR is unambiguous.5. Make reload resilient to old malformed files already present in plugins/WASDWarp/, so installing the fixed JAR does not leave the server stuck using broken YAML.

Fixed the main causes of the plugin being completely broken:

  • Removed invalid trailing backticks from config.yml and INVENTORY GUI.yml

  • Changed warps.yml to valid YAML

  • Added safe command registration for /warp and /warps

  • Added automatic repair of malformed existing configuration files

  • Fixed administrator access to warps

  • Fixed GUI click permissions to respect each item’s required-permission

  • Added Lombok to Maven dependencies

  • Changed the build artifact name to wasdwarp

  • Updated the message prefix to WASDWarp

  • Preserved /warp set, /warp delete, /warp list, /warp info, /warp tp, /warp move, and /warp rename

Build a fresh JAR:

Shell
mvn clean package

Install this file:

Plain Text
target/wasdwarp-1.0.0.jar

Copy it into:

Plain Text
plugins/

Delete the old AdvancedWarp/WASDWarp JAR first, then fully restart the server.

Test in this order:

Plain Text
/warp set spawn
/warp list
/warp info spawn
/warp

As an operator, you can use every warp automatically. Regular players need:

Plain Text
advancedwarp.use
advancedwarp.warp.spawn

The generated plugin folder should be:

Plain Text
plugins/WASDWarp/

It should contain:

Plain Text
config.yml
INVENTORY GUI.yml
warps.yml

Use the newly built wasdwarp-1.0.0.jar; the previous JAR will still contain the broken code.

Kodari can make mistakes. Review important code before using.
Files
src
pom.xml
Code
17 1,739
src/main/java/com/kodari/advancedwarp/AdvancedWarpPlugin.java
package com.kodari.advancedwarp;

import com.kodari.advancedwarp.command.WarpCommand;
import com.kodari.advancedwarp.config.ConfigManager;
import com.kodari.advancedwarp.config.GuiConfig;
import com.kodari.advancedwarp.gui.WarpMenuManager;
import com.kodari.advancedwarp.listener.PluginListener;
import com.kodari.advancedwarp.service.LuckPermsIntegration;
import com.kodari.advancedwarp.service.MessageService;
import com.kodari.advancedwarp.service.PlaceholderService;
import com.kodari.advancedwarp.teleport.TeleportManager;
import com.kodari.advancedwarp.warp.WarpManager;
import org.bukkit.Bukkit;
import org.bukkit.command.PluginCommand;
import org.bukkit.plugin.java.JavaPlugin;

public final class AdvancedWarpPlugin extends JavaPlugin {
    private ConfigManager configManager;
    private GuiConfig guiConfig;
    private WarpManager warpManager;
    private TeleportManager teleportManager;
    private WarpMenuManager warpMenuManager;
    private MessageService messageService;
    private LuckPermsIntegration permissions;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        saveResource("INVENTORY GUI.yml", false);
        saveResource("warps.yml", false);

        this.configManager = new ConfigManager(this);
        this.guiConfig = new GuiConfig(this);
        this.messageService = new MessageService(this, new PlaceholderService(this));
        this.permissions = new LuckPermsIntegration();
        this.warpManager = new WarpManager(this);
        this.warpManager.load();
        this.teleportManager = new TeleportManager(this, configManager, messageService);
        this.warpMenuManager = new WarpMenuManager(this, configManager, guiConfig, warpManager, teleportManager, messageService, permissions);

        WarpCommand warpCommand = new WarpCommand(this, warpManager, warpMenuManager, teleportManager, messageService, permissions);
        PluginCommand command = getCommand("warp");
        if (command == null) {
            getLogger().severe("The warp command is missing from plugin.yml. Disabling WASDWarp.");
            getServer().getPluginManager().disablePlugin(this);
            return;
        }
        command.setExecutor(warpCommand);
        command.setTabCompleter(warpCommand);

        Bukkit.getPluginManager().registerEvents(new PluginListener(warpMenuManager, teleportManager), this);
        getLogger().info("WASDWarp enabled with " + warpManager.getWarps().size() + " warps.");
    }

    @Override
    public void onDisable() {
        if (teleportManager != null) {
            teleportManager.shutdown();
        }
        if (warpMenuManager != null) {
            warpMenuManager.shutdown();
        }
        if (warpManager != null) {
            warpManager.save();
        }
    }

    public void reloadEverything() {
        configManager.reload();
        guiConfig.reload();
        warpManager.load();
    }

    public ConfigManager getConfigManager() {
        return configManager;
    }

    public GuiConfig getGuiConfig() {
        return guiConfig;
    }

    public WarpManager getWarpManager() {
        return warpManager;
    }

    public TeleportManager getTeleportManager() {
        return teleportManager;
    }

    public WarpMenuManager getWarpMenuManager() {
        return warpMenuManager;
    }

    public MessageService getMessageService() {
        return messageService;
    }
}