tsgod5975

Create a simple minecraft plugin Named Set home with author TSGOD the plugin will work like to set home and teleport player to the saved location using commands /sethome <home name> and to teleport to the saved location the command is/home <home name> we can save upto 20 homes with different names the operator can control how much homes and player can set for that create command (for operators only) /playerhomeedit <player name> <amount of homes he can set> also add an command named /authorts (same like this) and if someone type this the player will get an notification telling him this sentence "TSGOD is my Devloper".

Kodari AI
KodariMar 16 at 2:24 pm 8,643 (v2)

I’ll create a home management plugin with customizable limits and operator controls.

SetHome
A comprehensive home teleportation system allowing players to set multiple named home locations and teleport back to them. Features include customizable home limits per player (default 20), operator commands to manage individual player limits, and persistent data storage. Players can create personalized home points with custom names and instantly travel between them using simple commands.

Plugin created successfully! Here’s what I’ve built:

Features:

  • /sethome <name> - Set a home location with custom name

  • /home <name> - Teleport to saved home

  • /playerhomeedit <player> <amount> - Operators can set custom home limits per player

  • /authorts - Displays “TSGOD is my Developer”

  • Default limit: 20 homes per player (configurable in config.yml)

  • Persistent data storage using YAML files

  • All messages customizable in config

Structure:

  • Main plugin class with DataManager

  • PlayerData class to store homes and limits

  • Separate command classes for each command

  • Automatic data saving on disable and per-action

  • Permission system (sethome.admin for operators)

tsgod5975

Add one more command/homes to see how many homes the player has set and if he touch the home he'll be teleported there

Kodari AI
KodariMar 16 at 2:27 pm 14,186 (v2)

I’ll add a /homes command that displays all set homes in a clickable GUI interface. Let me first read the existing files to understand the structure.

I’ll create a /homes command that opens a clickable GUI showing all set homes with teleportation on click.

Added /homes command with clickable GUI that displays all set homes with bed icons, shows home count/limit, and teleports players when they click on a home.

tsgod5975

Also add an file that the console owner can see in which all the set home data of players will be stored with highlighted coordinate stored of the saved home location

Kodari AI
KodariMar 16 at 2:35 pm 7,640 (v2)

I’ll read the existing files to understand the current structure, then add a human-readable storage file for viewing player home data.

I’ll add a human-readable consolidated file that shows all player home data with clearly formatted coordinates.

Done! I’ve added a human-readable homes-database.yml file that will be generated in the plugin folder. The file features:

  • Header explaining what the file is

  • Player sections with clear separators showing player names and UUIDs

  • Highlighted coordinates surrounded by comment lines with equals signs

  • Formatted numbers (rounded to 2 decimal places for readability)

  • Total home count for each player

  • Auto-generated whenever data is saved (plugin disable, manual saves)

The coordinates are visually highlighted with comment borders like:

YAML
# =============== COORDINATES ===============
x: 100.5
y: 64.0
z: -200.3
# ===========================================

This makes it easy for console owners to quickly scan and find specific home locations.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
12 702
src/main/java/com/tsgod/sethome/SetHome.java
package com.tsgod.sethome;

import com.tsgod.sethome.commands.AuthorTsCommand;
import com.tsgod.sethome.commands.HomeCommand;
import com.tsgod.sethome.commands.HomesCommand;
import com.tsgod.sethome.commands.PlayerHomeEditCommand;
import com.tsgod.sethome.commands.SetHomeCommand;
import com.tsgod.sethome.data.DataManager;
import com.tsgod.sethome.gui.HomesGUI;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class SetHome extends JavaPlugin {
    
    private DataManager dataManager;
    
    @Override
    public void onEnable() {
        saveDefaultConfig();
        
        this.dataManager = new DataManager(this);
        dataManager.loadAllData();
        
        getServer().getPluginManager().registerEvents(new HomesGUI(this, null), this);
        
        getCommand("sethome").setExecutor(new SetHomeCommand(this));
        getCommand("home").setExecutor(new HomeCommand(this));
        getCommand("homes").setExecutor(new HomesCommand(this));
        getCommand("playerhomeedit").setExecutor(new PlayerHomeEditCommand(this));
        getCommand("authorts").setExecutor(new AuthorTsCommand(this));
        
        getLogger().info("SetHome plugin has been enabled!");
    }
    
    @Override
    public void onDisable() {
        if (dataManager != null) {
            dataManager.saveAllData();
        }
        getLogger().info("SetHome plugin has been disabled!");
    }
    
    public String getMessage(String key) {
        return getConfig().getString("messages." + key, "&cMessage not found: " + key)
                .replace("&", "§");
    }
    
    public int getDefaultHomeLimit() {
        return getConfig().getInt("default-home-limit", 20);
    }
}