E

mahc mir ein minecraft plugin ich schick dir jz codes und du mahcts das plugin dann so

PluginName: xHomes

config.yml

#permissions #home.reload - reloads the plugin #home.4 - allows 4 homes #home.5 - allows 5 homes #home.bypass - no cooldown

#Plugin Placeholders #none

#Home options homes: teleport-delay: 5 teleport-distance: 0.3 default-max-homes: 3

Sounds: teleport-cooldown: "block.note_block.pling" teleport-complete: "entity.enderman.teleport" teleport-cancel: "entity.villager.no" no-permission: "entity.villager.no" reload-success: "entity.player.levelup" click-sound: "ui.button.click"

block-world: - "world_example" block-world-guard: - "region_example"

messages.yml ist in pasted-code-1777160612328.txt

INVENTORY GUI ordner

confirm.INVENTORY GUI.yml

title: "&8ᴄᴏɴꜰʀɪᴍ" rows: 3

items: home-info: slot: 13 material: "BLUE_DYE" name: "&#0044FCʜᴏᴍᴇ %home%" cancel: slot: 11 material: "RED_STAINED_GLASS_PANE" name: "&#FF0000ᴄᴀɴᴄᴇʟ" lore: - '&fClick to cancel' confirm: slot: 15 material: "LIME_STAINED_GLASS_PANE" name: "&#0bf52bᴄᴏɴꜰʀɪᴍ" lore: - '&fClick to delete'

main.INVENTORY GUI.yml

title: "&8ʜᴏᴍᴇꜱ" rows: 4

homes: slot-beds: "11,12,13,14,15" slot-dyes: "20,21,22,23,24"

home-set: bed: name: "&#0044FCʜᴏᴍᴇ %home%" material: "LIGHT_BLUE_BED" lore: - "&fClick to teleport" dye: name: "&#0044FCʜᴏᴍᴇ %home%" material: "BLUE_DYE" lore: - "&fClick to delete"

home-not-set: bed: name: "&7ɴᴏ ʜᴏᴍᴇ ꜱᴇᴛ" material: "LIGHT_GRAY_BED" lore: - "&fClick to save your location" dye: name: "&7ɴᴏ ʜᴏᴍᴇ ꜱᴇᴛ" material: "GRAY_DYE" lore: - "&fClick to save your location"

no-permission: bed: name: "&#FF0000ɴᴏ ᴘᴇʀᴍɪꜱꜱɪᴏɴ" material: "RED_BED" lore: - "&fBuy &#0044FCDonut+ &fin /store for more homes" dye: name: "&#FF0000ɴᴏ ᴘᴇʀᴍɪꜱꜱɪᴏɴ" material: "RED_DYE" lore: - "&fBuy &#0044FCDonut+ &fin /store for more homes"

plugin.yml

name: xHomes version: '1' main: wtf.xbytelol.xHomes.Main api-version: "1.21" author: [ xBytelol ]

commands: home: aliases: [homes] sethome: delhome:

permissions: home.reload: default: op home.bypass: default: op home.others: default: op resources: - "INVENTORY GUI/main.INVENTORY GUI.yml" - "INVENTORY GUI/confirm.INVENTORY GUI.yml" - "messages.yml" - "config.yml"

tue tab compalcehn hin

📎 1 file 2,274 chars
📄
pasted-code-1777160612328.txt
txt 57 lines
▶
#Here you can change all the messages and actions bars of the plugin

#Placeholders
#%home% - Home Name
#%player% - Player Name
#%count% - Countdown Number
#%max_homes% - Maximum Homes Allowed

#Here you can change the prefix of the plugin
prefix-enable: false
prefix: "&x&2&4&F&1&0&4&lHOMES &7»"

messages:
  no-permission: "&cYou don't have permission for this!"
  player-only: "&cOnly players can use this command!"
  reload-success: "&aHomes has been reloaded!"
  home-set: "&fHome &a%home% &fhas been set"
  home-deleted: "&fHome &c%home% &fhas been deleted"
  home-not-found: "&fHome &c%home% &fwas not found!"
  max-homes: "&cYou have reached the maximum number of homes! &7(%max_homes%)"
  home-already-set: "&fYou have already set a home at this position"
  premium-locked: "&fThis home can only be used with ,FCDonut+&f!"
  teleport-started: "&fTeleport in &b%count% &fseconds"
  teleport-cancelled: "&cTeleport cancelled!"
  teleport-completed: "&aYou have been teleported to home %home%!"
  already-teleporting: "&cYou are already teleporting!"
  invalid-home: "&cInvalid number!"
  player-not-found: "&cPlayer not found!"
  opening-others-INVENTORY GUI: "&fOpen the INVENTORY GUI for &c%player%"
  admin-home-set: "&fHome &a%home% &fhas been set for &c%player%"
  admin-teleport-completed: "&fYou have been teleported to home &a%home% of &c%player%!"
  world-blocked: "&cYou can´t to set a home here! &7(%world%)"
  region-blocked: "&cYou can´t to set a home here! &7(%region%)"
  rename-success: "&fHome &a%home% &fhas been renamed to &a%name%&f!"
  rename-too-long: "&cHome names can only be up to 20 characters long!"
  rename-invalid-chars: "&cInvaild name!"

action-bars:
  reload-success: "&aHomes has been reloaded!"
  teleport-started: "&fTeleport in &b%count% &fseconds"
  teleport-cancelled: "&cTeleport cancelled!"
  teleport-completed: "&aYou have been teleported to home %home%!"
  already-teleporting: "&cYou are already teleporting!"


command-usage: |
  &x&2&4&F&1&0&4&lHOME
  &x&2&4&F&1&0&4➤ &f/home
  &x&2&4&F&1&0&4➤ &f/sethome <1-5>
  &x&2&4&F&1&0&4➤ &f/delhome <1-5>

command-usage-admin: |
  &#FF0000&lHome ADMIN
  &#FF0000➤ &f/home reload 
  &#FF0000➤ &f/home admin 
  
Kodari AI
KodariApr 25 at 11:53 pm 23,926 (v2)

I’ll create a comprehensive homes plugin with GUI system, teleport delays, WorldGuard integration, and admin features.

xHomes
A feature-rich home management plugin with GUI interface. Players can set multiple homes with configurable limits, teleport with delay and movement detection, delete homes via confirmation GUI, and manage homes through an interactive inventory. Includes admin tools, WorldGuard region blocking, sounds, hex color support, and permission-based home limits.

I’ll create a complete homes plugin with GUI menus, teleport delays, WorldGuard integration, and admin features based on your specifications.


xHomes plugin created successfully!

Features implemented:

  • GUI-based home management with main and confirmation menus

  • Teleport delays with movement detection and countdown

  • WorldGuard region blocking support

  • Permission-based home limits (3/4/5 homes)

  • Sound effects for all actions

  • Hex color support in messages

  • Admin commands to manage other players’ homes

  • Tab completion for all commands

  • Automatic data persistence

Commands: /home, /sethome <1-5>, /delhome <1-5>, /home reload, /home admin <player>

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
26 1,664
src/main/java/wtf/xbytelol/xHomes/Main.java
package wtf.xbytelol.xHomes;

import lombok.Getter;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;
import wtf.xbytelol.xHomes.commands.DelHomeCommand;
import wtf.xbytelol.xHomes.commands.HomeCommand;
import wtf.xbytelol.xHomes.commands.SetHomeCommand;
import wtf.xbytelol.xHomes.data.HomeManager;
import wtf.xbytelol.xHomes.gui.GUIListener;
import wtf.xbytelol.xHomes.gui.GUIManager;
import wtf.xbytelol.xHomes.listeners.TeleportListener;
import wtf.xbytelol.xHomes.managers.ConfigManager;
import wtf.xbytelol.xHomes.managers.MessageManager;
import wtf.xbytelol.xHomes.managers.SoundManager;
import wtf.xbytelol.xHomes.managers.TeleportManager;

@Getter
public class Main extends JavaPlugin {
    
    private ConfigManager configManager;
    private MessageManager messageManager;
    private SoundManager soundManager;
    private HomeManager homeManager;
    private TeleportManager teleportManager;
    private GUIManager guiManager;
    
    @Override
    public void onEnable() {
        this.configManager = new ConfigManager(this);
        this.messageManager = new MessageManager(this);
        this.soundManager = new SoundManager(this);
        this.homeManager = new HomeManager(this);
        this.teleportManager = new TeleportManager(this);
        this.guiManager = new GUIManager();
        
        registerCommands();
        registerListeners();
        
        getLogger().info("xHomes has been enabled!");
    }
    
    @Override
    public void onDisable() {
        if (teleportManager != null) {
            teleportManager.cancelAll();
        }
        if (homeManager != null) {
            homeManager.saveAll();
        }
        getLogger().info("xHomes has been disabled!");
    }
    
    private void registerCommands() {
        getCommand("home").setExecutor(new HomeCommand(this));
        getCommand("sethome").setExecutor(new SetHomeCommand(this));
        getCommand("delhome").setExecutor(new DelHomeCommand(this));
    }
    
    private void registerListeners() {
        Bukkit.getPluginManager().registerEvents(new GUIListener(guiManager), this);
        Bukkit.getPluginManager().registerEvents(new TeleportListener(this), this);
    }
    
    public void reload() {
        configManager.reload();
        messageManager.reload();
        homeManager.reload();
    }
}