Himel

AVERIX HOMES — ADVANCED PAPER PLUGIN

Create a complete, standalone Java plugin for AVERIX, inspired by the DonutSMP home system. The plugin must support Paper 1.21.11, use Java 21, and have a clean, compact, purple-themed GUI.

  1. Main GUI
  • GUI title: "&dᴀᴠᴇʀɪx &8| &dʜᴏᴍᴇs"
  • Use a 4-row chest GUI (36 slots).
  • Center the five home slots horizontally, arranged from left to right.
  • Each home must have its own bed icon with its corresponding dye directly below it.
  • Display exactly 5 home slots per player, never more.
  • Do not add team homes, navigation buttons, decorative function buttons, or extra home slots.
  • Keep all GUI text compact, lowercase, and visually consistent with the AVERIX "&d" theme.
  1. Home Slot Layout

Arrange the five home slots horizontally in the middle of the GUI.

Each home occupies two vertically adjacent slots:

  • Bed: The home slot itself.
  • Dye: Directly below that bed, indicating its status.

Use these materials:

  • "WHITE_BED" — the home has not been set.
  • "BLUE_BED" — the home has been set.
  • "WHITE_DYE" — the home is empty.
  • "RED_DYE" — the home is set and can be deleted.

The five beds must be positioned left to right, with each dye directly underneath its matching bed. Do not arrange homes vertically or place them one after another from top to bottom.

  1. Setting Homes
  • Clicking a "WHITE_BED" should save the player's current location in that home slot.
  • After successfully setting a home, change the bed to "BLUE_BED" and its dye to "RED_DYE".
  • Clicking an already-set "BLUE_BED" should begin teleporting the player to that home.
  • Support up to five saved homes per player.
  • Prevent players from overwriting an existing home accidentally.
  • Persist all home data across server restarts.
  1. Deleting Homes
  • Use the "RED_DYE" directly below a set home as its delete button.
  • Clicking the red dye should delete only the corresponding home.
  • After deletion, change the bed back to "WHITE_BED" and the dye back to "WHITE_DYE".
  • Do not delete a home when the player clicks another home's dye.
  • Do not add a separate global delete button.
  • Prevent other players from deleting someone else's homes.
  1. Teleportation System
  • Add a configurable 5-second teleport delay.
  • Display a compact countdown message.
  • Cancel teleportation if the player moves or takes damage.
  • Cancel pending teleportation if the player disconnects.
  • Validate that the destination world still exists before teleporting.
  • Never display home coordinates in the GUI, item names, item lore, chat messages, or tooltips.
  • Teleport the player to the exact saved location, including their original yaw and pitch.
  1. Commands
  • "/home" — open the AVERIX Homes GUI.
  • "/home <name>" — teleport directly to a saved home.
  • "/sethome <name>" — set a named home at the player's current location.
  • "/delhome <name>" — delete a named home.
  • "/homes" — open the Homes GUI.
  • "/averixhomes reload" — reload the configuration; administrators only.

All commands must validate player permissions, home limits, and invalid or missing home names.

  1. AVERIX Theme

Use compact, lowercase text throughout the plugin.

Example messages:

  • "&dᴀᴠᴇʀɪx &8» &fʜᴏᴍᴇ sᴀᴠᴇᴅ."
  • "&dᴀᴠᴇʀɪx &8» &fᴛᴇʟᴇᴘᴏʀᴛɪɴɢ ɪɴ 5s..."
  • "&dᴀᴠᴇʀɪx &8» &cᴛᴇʟᴇᴘᴏʀᴛ ᴄᴀɴᴄᴇʟʟᴇᴅ."
  • "&dᴀᴠᴇʀɪx &8» &fʜᴏᴍᴇ ᴅᴇʟᴇᴛᴇᴅ."
  • "&dᴀᴠᴇʀɪx &8» &cʏᴏᴜ ᴄᴀɴ ᴏɴʟʏ ʜᴀᴠᴇ 5 ʜᴏᴍᴇs."
  1. Permissions and Security
  • Default maximum: 5 homes per player.
  • Make the home limit configurable.
  • Provide permission-based home limits for ranks if required.
  • Validate inventory clicks so players cannot move or take GUI items.
  • Prevent inventory duplication exploits and unauthorized access.
  • Store data safely in a persistent file or database.
  • Do not expose saved coordinates to other players.
  1. Technical Requirements
  • Plugin name: "AverixHomes"
  • Main class: "com.averix.homes.AverixHomes"
  • Platform: Paper 1.21.11
  • Java: 21
  • Build system: Maven
  • Include "plugin.yml", "config.yml", and all required Java source files.
  • Include clear installation and configuration instructions.
  • Provide complete, compilable source code, not pseudocode or partial examples.
  • Ensure the plugin works without Skript, a proxy, or an external server. Plugin Name AverixHome
Kodari AI
KodariOct 12 at 11:59 am 1
  1. Create the Maven/Paper 1.21.11 project metadata, configuration, and installation guide.

  2. Implement persistent named homes, the fixed five-slot GUI, commands, permissions, and cancellable teleport countdowns.

Created AverixHome for Paper 1.21.11 with Java 21 and Maven. It includes the fixed five-slot purple GUI, persistent named homes, configurable home limits and teleport delay, protected inventory interactions, cancellable teleports, commands, permissions, and configuration and installation instructions in README.md.

The GUI provides home1–home5 shortcuts; named homes beyond those shortcuts can be managed by command when the configured limit allows them.

Himel

Dont Show Coordinate when home set also add homesee to see player homes

Kodari AI
KodariOct 12 at 12:02 pm 1
  1. Remove coordinate details from home-set feedback and any home display text.

  2. Add /homesee <player> with permission checks and coordinate-free home listings.

Home-set feedback and GUI labels already omit coordinates. I’ll keep /homesee limited to home names, never locations.

  • Home-set confirmations and GUI labels already omit coordinates; /homesee also reveals home names only, never locations.

  • Added /homesee <player> for online players. It lists their saved home names, requires averixhomes.homesee (operators by default), and includes tab completion. Added its messages and documented it in the README.

Himel

change bed color to light gray and white dye color to gray when home set bed color light blue and dye red also add a menu when player try to delete home to confirm when player try to go in home snd click in bed then immediately close the gui and dont decline teleport in home when player looking around decline when player move

Kodari AI
KodariOct 12 at 2:28 pm 1
  1. Update the empty/set home icons to light-gray/gray and light-blue/red.

  2. Add a per-home delete confirmation menu.

  3. Close the GUI as soon as teleport starts, and cancel only when the player moves or takes damage—not when they look around.

Updated the GUI: empty homes now use light-gray beds with gray dyes, and saved homes use light-blue beds with red dyes. Clicking a saved home’s red dye opens a confirmation menu; confirming deletes only that home.

Clicking a saved bed now closes the GUI immediately and starts teleporting. Looking around does not cancel the countdown—only position changes do.

Himel

If the player moves within the same block, don't cancel the home teleport.

If the player moves to another block, cancel the home teleport.

Looking around or moving the camera should not cancel it.

Show a small &d message: ʜᴏᴍᴇ ᴛᴇʟᴇᴘᴏʀᴛ ᴄᴀɴᴄᴇʟʟᴇᴅ ʙᴇᴄᴀᴜsᴇ ʏᴏᴜ ᴍᴏᴠᴇᴅ

Kodari AI
KodariOct 13 at 1:04 am 1
  1. Cancel only when the player’s block coordinates or world changes; ignore fractional movement and camera turns.

  2. Send the requested purple movement-cancellation message, while keeping damage cancellation separate.

Teleport now cancels only when the player changes blocks or worlds. Moving within the same block and looking around won’t cancel it. Movement cancellation shows the requested purple message; damage cancellation keeps its existing message.

Himel

Add A Sound When Player Teleporting In Home and Make Homesee To Teleport into players homes only allow for operator player

Kodari AI
KodariOct 13 at 7:43 am 1
  1. Add a configurable sound when a player teleports to a home.

  2. Add operator-only /homesee <player> <home> teleport access to another player’s home.

Added a configurable teleport sound, played at the destination after a successful home teleport. Set teleport-sound: "" in config.yml to disable it.

Added /homesee <player> <home> for operators to teleport to an online player’s home. /homesee <player> still lists home names without revealing coordinates. Updated command usage and the README.

Himel

When player set home hby doing /sethome [name] then show the home in home gui and add /renamehome [name] and add a luckperm command averixhome.slot.[number] 5 max to give player permission to home also for default player set max home 2 when player dont have home permission then show red bed and in write &d&lʏᴏᴜ ɴᴇᴇᴅ ᴛᴏ ᴜᴘɢʀᴀᴅᴇ ʏᴏᴜʀ ʀᴀɴᴋ

Kodari AI
KodariOct 13 at 7:49 am 2
  1. Enforce the default two-home limit and LuckPerms slot permissions up to five, with a locked-home GUI state.

  2. Add /renamehome <name> and confirm set homes appear in the GUI.

  1. Done: named /sethome entries now appear in the menu; home limits default to two, with averixhome.slot.1–.5 unlocking up to five slots and locked slots showing the red-bed upgrade prompt.

  2. Add /renamehome <old> <new> with tab completion, permission checks, and a success message.

  • Homes created with /sethome <name> now appear in the homes GUI. The default limit is 2; LuckPerms nodes averixhome.slot.3 through .5 raise it to that many homes. Locked slots show a red bed with the requested upgrade message.

  • Added /renamehome <old> <new>; the averixhomes.renamehome permission defaults to true.

  • Grant 3 homes with /lp user <player> permission set averixhome.slot.3 true (use .4 or .5 for more).

Himel

change the command to averixhomes.slot.[number] max 5

Kodari AI
KodariOct 13 at 8:07 am 1

Updated the home-slot permission nodes to averixhomes.slot.1 through averixhomes.slot.5. For example, grant five homes with /lp user <player> permission set averixhomes.slot.5 true.

Himel

add sound on everything like when teleporting when set home delhome add more basic features

Kodari AI
KodariOct 14 at 1:45 am 1
  1. Add configurable feedback sounds to teleport, set-home, and delete-home actions.

  2. Review existing commands and add a couple of useful basic home-management features that fit the current plugin.

  • Added configurable sounds for teleport start/completion, setting and deleting homes, renaming homes, and opening the home menu. Edit the sounds section in config.yml; set a sound to "" to disable it.

  • Added /home list and tab completion for list. /sethome now saves a home named home by default; /sethome <name> still saves a named home.

Himel

Dont delete home action add sound on it

Kodari AI
KodariOct 14 at 1:46 am 1

Added a configurable delete-cancel sound when a player chooses Cancel in the home deletion confirmation. The home remains untouched; change or disable it in config.yml.

Kodari can make mistakes. Review important code before using.
Files
src
pom.xml
README.md
Code
9 1,047
src/main/java/com/averix/homes/AverixHomes.java
package com.averix.homes;

import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.entity.Player;
import org.bukkit.plugin.java.JavaPlugin;

public final class AverixHomes extends JavaPlugin {
    private HomeStorage homeStorage;
    private TeleportManager teleportManager;
    private HomeGuiListener homeGuiListener;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        homeStorage = new HomeStorage(this);
        teleportManager = new TeleportManager(this);
        homeGuiListener = new HomeGuiListener(this);

        Bukkit.getPluginManager().registerEvents(teleportManager, this);
        Bukkit.getPluginManager().registerEvents(homeGuiListener, this);

        HomeCommand commandExecutor = new HomeCommand(this);
        getCommand("home").setExecutor(commandExecutor);
        getCommand("home").setTabCompleter(commandExecutor);
        getCommand("homes").setExecutor(commandExecutor);
        getCommand("sethome").setExecutor(commandExecutor);
        getCommand("sethome").setTabCompleter(commandExecutor);
        getCommand("delhome").setExecutor(commandExecutor);
        getCommand("delhome").setTabCompleter(commandExecutor);
        getCommand("renamehome").setExecutor(commandExecutor);
        getCommand("renamehome").setTabCompleter(commandExecutor);
        getCommand("homesee").setExecutor(commandExecutor);
        getCommand("homesee").setTabCompleter(commandExecutor);
        getCommand("averixhomes").setExecutor(commandExecutor);
    }

    public HomeStorage getHomeStorage() {
        return homeStorage;
    }

    public TeleportManager getTeleportManager() {
        return teleportManager;
    }

    public HomeGuiListener getHomeGuiListener() {
        return homeGuiListener;
    }

    public int getHomeLimit(Player player) {
        int configuredLimit = Math.min(5, Math.max(0, getConfig().getInt("max-homes", 2)));
        for (int limit = 1; limit <= 5; limit++) {
            if (player.hasPermission("averixhomes.slot." + limit)) {
                configuredLimit = Math.max(configuredLimit, limit);
            }
        }
        var limits = getConfig().getConfigurationSection("permission-limits");
        if (limits == null) {
            return configuredLimit;
        }

        Integer permissionLimit = null;
        for (String permission : limits.getKeys(false)) {
            if (!player.hasPermission(permission)) {
                continue;
            }
            int value = Math.min(5, Math.max(0, limits.getInt(permission, configuredLimit)));
            if (permissionLimit == null || value > permissionLimit) {
                permissionLimit = value;
            }
        }
        return permissionLimit == null ? configuredLimit : Math.max(configuredLimit, permissionLimit);
    }

    public void sendMessage(Player player, String key) {
        sendMessage(player, key, "", "");
    }

    public void sendMessage(Player player, String key, String placeholder, String value) {
        String message = getConfig().getString("messages." + key, "&dᴀᴠᴇʀɪx &8» &cᴇʀʀᴏʀ.");
        message = message.replace(placeholder, value);
        player.sendMessage(ChatColor.translateAlternateColorCodes('&', message));
    }

    public void playConfiguredSound(Player player, String key) {
        String sound = getConfig().getString("sounds." + key, "");
        if (sound != null && !sound.isBlank()) {
            player.playSound(player.getLocation(), sound, 1.0f, 1.0f);
        }
    }
}