Edward Baco

simple house

Kodari AI
KodariAug 30 at 4:50 pm 1
SimpleHousePlugin
A Minecraft Bukkit plugin that allows players to create and manage simple houses. Players can claim a plot of land by placing a special block, which then protects the area from griefing by other players. The plugin provides commands to create, delete, and list houses, with configurable plot sizes and protection settings. House owners can add trusted players who are allowed to build within the claimed area. The plugin includes visual boundary indicators using particle effects and a GUI menu for managing house settings. All data is stored persistently in YAML files, ensuring houses remain intact across server restarts.

I’ll create a minimal SimpleHouse home plugin with /house set, /house, /house delete, persistent YAML storage, and tab completion.

Created SimpleHouse, a minimal personal home plugin.

Features:

  • /house or /home — teleport to your house

  • /house set — save your current location

  • /house delete — remove your house

  • /house info — display house coordinates

  • /house go — teleport alias

  • Persistent YAML storage

  • Tab completion

  • Configurable messages

Main class: com.kodari.simplehouse.SimpleHousePlugin

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
7 253
src/main/java/com/kodari/simplehouse/SimpleHousePlugin.java
package com.kodari.simplehouse;

import org.bukkit.command.PluginCommand;
import org.bukkit.plugin.java.JavaPlugin;

public final class SimpleHousePlugin extends JavaPlugin {

    private HomeManager homeManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();

        homeManager = new HomeManager(this);
        HouseCommand houseCommand = new HouseCommand(this, homeManager);
        PluginCommand command = getCommand("house");
        if (command != null) {
            command.setExecutor(houseCommand);
            command.setTabCompleter(houseCommand);
        }
    }

    public HomeManager getHomeManager() {
        return homeManager;
    }
}